| java.lang.Object org.eclipse.pde.internal.ui.editor.contentassist.XMLInsertionComputer
XMLInsertionComputer | public class XMLInsertionComputer (Code) | | XMLInsertionComputer
|
Method Summary | |
public static void | computeInsertion(ISchemaElement sElement, IPluginParent pElement) | protected static void | computeInsertionAllAttributes(IPluginParent pElement, ISchemaElement sElement) | protected static void | computeInsertionElement(IPluginParent pElement, HashSet visited, ISchemaElement schemaElement) | protected static void | computeInsertionObject(IPluginParent pElement, HashSet visited, ISchemaObject schemaObject) | protected static void | computeInsertionParent(ISchemaElement sElement, IPluginParent pElement, HashSet visited) | protected static void | computeInsertionSequence(ISchemaCompositor compositor, IPluginParent pElement, HashSet visited) | protected static void | computeInsertionType(ISchemaElement sElement, IPluginParent pElement, HashSet visited) | protected static void | computeInsertionZeroElementEdgeCase(ISchemaElement sElement, IPluginParent pElement, HashSet visited) Edge Case:
Extension element has a sequence compositor containing one child element
whose min occurs is 0. | protected static IPluginElement | createElement(IPluginParent pElement, ISchemaElement schemaElement) Important: Element is created but not added as a child to the plug-in
parent. | protected static String | generateAttributeValue(IProject project, int counter, ISchemaAttribute attribute) | public static String | generateAttributeValue(ISchemaAttribute attribute, IBaseModel baseModel, String defaultValue) | public static boolean | hasOptionalAttributes(ISchemaElement ele) | public static boolean | hasOptionalChildren(ISchemaObject obj, boolean onChild, HashSet set) | protected static boolean | isSequenceCompositor(ISchemaCompositor compositor) | protected static boolean | isSingleZeroElementEdgeCase(ISchemaElement sElement, IPluginParent pElement) | protected static void | setAttribute(IPluginParent parent, String attName, String attValue, int counter) |
computeInsertionAllAttributes | protected static void computeInsertionAllAttributes(IPluginParent pElement, ISchemaElement sElement)(Code) | | Parameters: pElement - Parameters: type - Parameters: attributes - |
computeInsertionElement | protected static void computeInsertionElement(IPluginParent pElement, HashSet visited, ISchemaElement schemaElement) throws CoreException(Code) | | Parameters: pElement - Parameters: visited - Parameters: schemaElement - throws: CoreException - |
computeInsertionObject | protected static void computeInsertionObject(IPluginParent pElement, HashSet visited, ISchemaObject schemaObject) throws CoreException(Code) | | Parameters: pElement - Parameters: visited - Parameters: schemaObject - throws: CoreException - |
computeInsertionParent | protected static void computeInsertionParent(ISchemaElement sElement, IPluginParent pElement, HashSet visited) throws CoreException(Code) | | Parameters: sElement - Parameters: pElement - Parameters: visited - throws: CoreException - |
computeInsertionSequence | protected static void computeInsertionSequence(ISchemaCompositor compositor, IPluginParent pElement, HashSet visited) throws CoreException(Code) | | Parameters: compositor - Parameters: pElement - Parameters: visited - |
computeInsertionType | protected static void computeInsertionType(ISchemaElement sElement, IPluginParent pElement, HashSet visited) throws CoreException(Code) | | Parameters: sElement - Parameters: pElement - Parameters: visited - throws: CoreException - |
computeInsertionZeroElementEdgeCase | protected static void computeInsertionZeroElementEdgeCase(ISchemaElement sElement, IPluginParent pElement, HashSet visited) throws CoreException(Code) | | Edge Case:
Extension element has a sequence compositor containing one child element
whose min occurs is 0.
This is an extension point schema bug. However, to mask this bug and make
life easier for the user, interpret the child element min occurs as 1;
since, it makes no sense for an extension not to have any child elements
In essence, we auto-generate the child element when none should have
been.
See Bug # 162379 for details.
Parameters: sElement - Parameters: pElement - Parameters: visited - throws: CoreException - |
createElement | protected static IPluginElement createElement(IPluginParent pElement, ISchemaElement schemaElement) throws CoreException(Code) | | Important: Element is created but not added as a child to the plug-in
parent. Callers responsibility to add the child element to the parent.
Parameters: pElement - Parameters: schemaElement - throws: CoreException - |
generateAttributeValue | protected static String generateAttributeValue(IProject project, int counter, ISchemaAttribute attribute)(Code) | | Parameters: project - Parameters: counter - Parameters: attribute - |
isSequenceCompositor | protected static boolean isSequenceCompositor(ISchemaCompositor compositor)(Code) | | Parameters: pElement - Parameters: compositor - |
isSingleZeroElementEdgeCase | protected static boolean isSingleZeroElementEdgeCase(ISchemaElement sElement, IPluginParent pElement)(Code) | | Parameters: sElement - Parameters: pElement - |
setAttribute | protected static void setAttribute(IPluginParent parent, String attName, String attValue, int counter) throws CoreException(Code) | | Parameters: parent - Parameters: attName - Parameters: attValue - Parameters: counter - throws: CoreException - |
|
|