private String getSchemaDescription(IPluginAttribute attr, ISchemaElement sEle) { String description = XMLComponentRegistry.Instance().getDescription(attr.getValue(), XMLComponentRegistry.F_SCHEMA_COMPONENT); if (description == null) { URL url = sEle.getSchema().getURL(); SchemaAnnotationHandler handler = new SchemaAnnotationHandler(); SchemaUtil.parseURL(url, handler); description = handler.getDescription(); XMLComponentRegistry.Instance().putDescription(attr.getValue(), description, XMLComponentRegistry.F_SCHEMA_COMPONENT); } return description; }
private String getSchemaDescription(IPluginExtensionPoint point) { String description = null; if (point != null) { description = XMLComponentRegistry.Instance().getDescription(point.getFullId(), XMLComponentRegistry.F_SCHEMA_COMPONENT); if (description == null) { URL url = SchemaRegistry.getSchemaURL(point); if (url != null) { SchemaAnnotationHandler handler = new SchemaAnnotationHandler(); SchemaUtil.parseURL(url, handler); description = handler.getDescription(); XMLComponentRegistry.Instance().putDescription(point.getFullId(), description, XMLComponentRegistry.F_SCHEMA_COMPONENT); } } } return description; }
public PDEFormEditor() { PDEPlugin.getDefault().getLabelProvider().connect(this); XMLComponentRegistry.Instance().connect(this); fInputContextManager = createInputContextManager(); }
@Override public String getDescription() { if (super.getDescription() != null) { return super.getDescription(); } ISchema schema = getSchema(); if ((schema == null) || (schema.getURL() == null)) { // This can happen when creating a new extension point schema return null; } String hashkey = schema.getURL().hashCode() + "_" + getName(); //$NON-NLS-1$ String description = XMLComponentRegistry.Instance().getDescription(hashkey, XMLComponentRegistry.F_ELEMENT_COMPONENT); if (description == null) { SchemaElementHandler handler = new SchemaElementHandler(getName()); SchemaUtil.parseURL(schema.getURL(), handler); description = handler.getDescription(); XMLComponentRegistry.Instance().putDescription(hashkey, description, XMLComponentRegistry.F_ELEMENT_COMPONENT); } return description; }
String fullPointID = IdUtil.getFullId(fCurrentPoint, fModel); String description = XMLComponentRegistry.Instance().getDescription(fullPointID, XMLComponentRegistry.F_SCHEMA_COMPONENT); String name = XMLComponentRegistry.Instance().getName(fullPointID, XMLComponentRegistry.F_SCHEMA_COMPONENT); URL url = null; if ((description == null) || (name == null)) { setPageComplete(true); XMLComponentRegistry.Instance().putDescription(fullPointID, description, XMLComponentRegistry.F_SCHEMA_COMPONENT); XMLComponentRegistry.Instance().putName(fullPointID, name, XMLComponentRegistry.F_SCHEMA_COMPONENT);
public String getDescription() { if (super.getDescription() != null) { return super.getDescription(); } ISchema schema = getSchema(); if ((schema == null) || (schema.getURL() == null)) { // This can happen when creating a new extension point schema return null; } String hashkey = schema.getURL().hashCode() + "_" + getName(); //$NON-NLS-1$ String description = XMLComponentRegistry.Instance().getDescription( hashkey, XMLComponentRegistry.F_ELEMENT_COMPONENT); if (description == null) { SchemaElementHandler handler = new SchemaElementHandler(getName()); SchemaUtil.parseURL(schema.getURL(), handler); description = handler.getDescription(); XMLComponentRegistry.Instance().putDescription(hashkey, description, XMLComponentRegistry.F_ELEMENT_COMPONENT); } return description; } }
@Override public String getDescription() { if (super.getDescription() != null) { return super.getDescription(); } ISchema schema = getSchema(); if ((schema == null) || (schema.getURL() == null)) { return null; } String elementName = null; if (getParent() instanceof ISchemaElement) { elementName = ((ISchemaElement) getParent()).getName(); if (elementName == null) { return null; } } String hashkey = schema.getURL().hashCode() + "_" + elementName + "_" + getName(); //$NON-NLS-1$ //$NON-NLS-2$ String description = XMLComponentRegistry.Instance().getDescription(hashkey, XMLComponentRegistry.F_ATTRIBUTE_COMPONENT); if (description == null) { SchemaAttributeHandler handler = new SchemaAttributeHandler(elementName, getName()); SchemaUtil.parseURL(schema.getURL(), handler); description = handler.getDescription(); XMLComponentRegistry.Instance().putDescription(hashkey, description, XMLComponentRegistry.F_ATTRIBUTE_COMPONENT); } return description; }
XMLComponentRegistry.Instance().getDescription( hashkey, XMLComponentRegistry.F_ATTRIBUTE_COMPONENT); if (description == null) { SchemaUtil.parseURL(schema.getURL(), handler); description = handler.getDescription(); XMLComponentRegistry.Instance().putDescription(hashkey, description, XMLComponentRegistry.F_ATTRIBUTE_COMPONENT);
@Override public void dispose() { storeDefaultPage(); if (fEditorSelectionChangedListener != null) { fEditorSelectionChangedListener.uninstall(getSite().getSelectionProvider()); fEditorSelectionChangedListener = null; } //setSelection(new StructuredSelection()); PDEPlugin.getDefault().getLabelProvider().disconnect(this); XMLComponentRegistry.Instance().disconnect(this); PDEModelUtility.disconnect(this); if (clipboard != null) { clipboard.dispose(); clipboard = null; } super.dispose(); fInputContextManager.dispose(); fInputContextManager = null; }