Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2005, 2006 IBM Corporation and others. |
2 |
* Copyright (c) 2005, 2008 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 16-23
Link Here
|
16 |
public class SchemaRootElement extends SchemaElement implements ISchemaRootElement { |
16 |
public class SchemaRootElement extends SchemaElement implements ISchemaRootElement { |
17 |
|
17 |
|
18 |
private static final long serialVersionUID = 1L; |
18 |
private static final long serialVersionUID = 1L; |
19 |
public static final String P_DEP_REPLACEMENT = "replacement"; //$NON-NLS-1$ |
19 |
|
20 |
private String fDeperecatedReplacement; |
20 |
private String fDeperecatedReplacement; |
|
|
21 |
private boolean fInternal; |
21 |
|
22 |
|
22 |
public SchemaRootElement(ISchemaObject parent, String name) { |
23 |
public SchemaRootElement(ISchemaObject parent, String name) { |
23 |
super(parent, name); |
24 |
super(parent, name); |
Lines 38-41
Link Here
|
38 |
return null; |
39 |
return null; |
39 |
return " " + P_DEP_REPLACEMENT + "=\"" + fDeperecatedReplacement + "\" "; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
40 |
return " " + P_DEP_REPLACEMENT + "=\"" + fDeperecatedReplacement + "\" "; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
40 |
} |
41 |
} |
|
|
42 |
|
43 |
public boolean isInternal() { |
44 |
return fInternal; |
45 |
} |
46 |
|
47 |
public void setInternal(boolean value) { |
48 |
boolean oldValue = fInternal; |
49 |
fInternal = value; |
50 |
getSchema().fireModelObjectChanged(this, P_INTERNAL, Boolean.valueOf(oldValue), Boolean.valueOf(fInternal)); |
51 |
} |
41 |
} |
52 |
} |