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; }
@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; }
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; }
SchemaUtil.parseURL(schema.getURL(), handler); description = handler.getDescription(); XMLComponentRegistry.Instance().putDescription(hashkey, description, XMLComponentRegistry.F_ATTRIBUTE_COMPONENT);