### Eclipse Workspace Patch 1.0
#P org.eclipse.pde.core
Index: src/org/eclipse/pde/internal/core/schema/Schema.java
===================================================================
RCS file: /cvsroot/eclipse/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/schema/Schema.java,v
retrieving revision 1.75
diff -u -r1.75 Schema.java
--- src/org/eclipse/pde/internal/core/schema/Schema.java 30 Mar 2008 20:19:04 -0000 1.75
+++ src/org/eclipse/pde/internal/core/schema/Schema.java 21 Apr 2008 07:17:04 -0000
@@ -668,7 +668,7 @@
element.setTranslatableProperty(processTranslatable(getAttribute(meta, "translatable"))); //$NON-NLS-1$
element.setDeprecatedProperty(processDeprecated(getAttribute(meta, "deprecated"))); //$NON-NLS-1$
if (element instanceof ISchemaRootElement) {
- String depSug = getAttribute(meta, SchemaRootElement.P_DEP_REPLACEMENT);
+ String depSug = getAttribute(meta, ISchemaRootElement.P_DEP_REPLACEMENT);
((ISchemaRootElement) element).setDeprecatedSuggestion(depSug);
}
}
Index: src/org/eclipse/pde/internal/core/schema/SchemaRootElement.java
===================================================================
RCS file: /cvsroot/eclipse/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/schema/SchemaRootElement.java,v
retrieving revision 1.5
diff -u -r1.5 SchemaRootElement.java
--- src/org/eclipse/pde/internal/core/schema/SchemaRootElement.java 2 Jan 2008 15:56:15 -0000 1.5
+++ src/org/eclipse/pde/internal/core/schema/SchemaRootElement.java 21 Apr 2008 07:17:04 -0000
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2006 IBM Corporation and others.
+ * Copyright (c) 2005, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -16,8 +16,9 @@
public class SchemaRootElement extends SchemaElement implements ISchemaRootElement {
private static final long serialVersionUID = 1L;
- public static final String P_DEP_REPLACEMENT = "replacement"; //$NON-NLS-1$
+
private String fDeperecatedReplacement;
+ private boolean fInternal;
public SchemaRootElement(ISchemaObject parent, String name) {
super(parent, name);
@@ -38,4 +39,14 @@
return null;
return " " + P_DEP_REPLACEMENT + "=\"" + fDeperecatedReplacement + "\" "; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
+
+ public boolean isInternal() {
+ return fInternal;
+ }
+
+ public void setInternal(boolean value) {
+ boolean oldValue = fInternal;
+ fInternal = value;
+ getSchema().fireModelObjectChanged(this, P_INTERNAL, Boolean.valueOf(oldValue), Boolean.valueOf(fInternal));
+ }
}
Index: src/org/eclipse/pde/internal/core/ischema/ISchemaRootElement.java
===================================================================
RCS file: /cvsroot/eclipse/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/ischema/ISchemaRootElement.java,v
retrieving revision 1.5
diff -u -r1.5 ISchemaRootElement.java
--- src/org/eclipse/pde/internal/core/ischema/ISchemaRootElement.java 2 Jan 2008 15:56:19 -0000 1.5
+++ src/org/eclipse/pde/internal/core/ischema/ISchemaRootElement.java 21 Apr 2008 07:17:04 -0000
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2006 IBM Corporation and others.
+ * Copyright (c) 2005, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -12,7 +12,37 @@
public interface ISchemaRootElement extends ISchemaElement {
+ /**
+ * Property that indicates if an element has a replacement
+ */
+ public static final String P_DEP_REPLACEMENT = "replacement"; //$NON-NLS-1$
+
+ /**
+ * Property that indicates if an element is internal
+ */
+ public static final String P_INTERNAL = "internal"; //$NON-NLS-1$
+
+ /**
+ * Property that indicates if an element has friends
+ */
+ public static final String P_FRIENDS = "friends"; //$NON-NLS-1$
+
public void setDeprecatedSuggestion(String value);
+ /**
+ * Returns a value if the element has a replacement suggestion for its deprecated self.
+ */
public String getDeprecatedSuggestion();
+
+ /**
+ * Returns true if the element is internal; false otherwise.
+ */
+ public boolean isInternal();
+
+ /**
+ *
+ * @param value
+ */
+ public void setInternal(boolean value);
+
}