View | Details | Raw Unified | Return to bug 230172
Collapse All | Expand All

(-)src/org/eclipse/pde/internal/core/ischema/ISchema.java (-2 / +8 lines)
Lines 11-17 Link Here
11
package org.eclipse.pde.internal.core.ischema;
11
package org.eclipse.pde.internal.core.ischema;
12
12
13
import java.net.URL;
13
import java.net.URL;
14
15
import org.eclipse.core.runtime.CoreException;
14
import org.eclipse.core.runtime.CoreException;
16
import org.eclipse.pde.core.IBaseModel;
15
import org.eclipse.pde.core.IBaseModel;
17
import org.eclipse.pde.core.IModelChangeProvider;
16
import org.eclipse.pde.core.IModelChangeProvider;
Lines 154-166 Link Here
154
	ISchemaInclude[] getIncludes();
153
	ISchemaInclude[] getIncludes();
155
154
156
	/**
155
	/**
157
	 * Returns whether the root schema element ( the <exension> element)
156
	 * Returns whether the root schema element (the <extension> element)
158
	 * has been marked deprecated, making this schema deprecated.
157
	 * has been marked deprecated, making this schema deprecated.
159
	 * @return true if this schema is deprecated
158
	 * @return true if this schema is deprecated
160
	 */
159
	 */
161
	public boolean isDeperecated();
160
	public boolean isDeperecated();
162
161
163
	/**
162
	/**
163
	 * Returns whether the root schema element (the <extension> element)
164
	 * has been marked internal, making this schema internal.
165
	 * @return true if this schema is internal
166
	 */
167
	public boolean isInternal();
168
169
	/**
164
	 * Returns replacement schema in case this one is deprecated.
170
	 * Returns replacement schema in case this one is deprecated.
165
	 * @return the replacement schema 
171
	 * @return the replacement schema 
166
	 */
172
	 */
(-)src/org/eclipse/pde/internal/core/schema/Schema.java (+9 lines)
Lines 1016-1019 Link Here
1016
		return null;
1016
		return null;
1017
	}
1017
	}
1018
1018
1019
	public boolean isInternal() {
1020
		Iterator it = fElements.iterator();
1021
		while (it.hasNext()) {
1022
			Object next = it.next();
1023
			if (next instanceof SchemaRootElement)
1024
				return ((SchemaRootElement) next).isInternal();
1025
		}
1026
		return false;
1027
	}
1019
}
1028
}
(-)src/org/eclipse/pde/internal/core/builders/SchemaTransformer.java (+5 lines)
Lines 119-124 Link Here
119
				fWriter.print(", use <i>" + suggestion + "</i> as a replacement."); //$NON-NLS-1$ //$NON-NLS-2$
119
				fWriter.print(", use <i>" + suggestion + "</i> as a replacement."); //$NON-NLS-1$ //$NON-NLS-2$
120
			fWriter.println("</div>"); //$NON-NLS-1$
120
			fWriter.println("</div>"); //$NON-NLS-1$
121
		}
121
		}
122
		if (fSchema.isInternal()) {
123
			fWriter.print("<div style=\"border: 1px solid #990000; padding: 5px; text-align: center; color: red;\">"); //$NON-NLS-1$
124
			fWriter.print("This extension point is internal"); //$NON-NLS-1$
125
			fWriter.println("</div>"); //$NON-NLS-1$
126
		}
122
		fWriter.println("<p></p>"); //$NON-NLS-1$
127
		fWriter.println("<p></p>"); //$NON-NLS-1$
123
		fWriter.print("<h6 class=\"CaptionFigColumn SchemaHeader\">Identifier: </h6>"); //$NON-NLS-1$
128
		fWriter.print("<h6 class=\"CaptionFigColumn SchemaHeader\">Identifier: </h6>"); //$NON-NLS-1$
124
		fWriter.print(fSchema.getQualifiedPointId());
129
		fWriter.print(fSchema.getQualifiedPointId());

Return to bug 230172