public class TransformationDescriptor extends BaseDescriptor implements ITransformationDescriptor
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
E_EXECUTION_LIST
Define the names of the XML elements that are parsed.
|
protected static java.lang.String |
E_USE_TRANSFORM |
protected static java.lang.String |
E_USE_UTILITY |
E_LICENSE, E_PROPERTY, E_TRANSFORMATION, licenseTable, propertyTable
AUTHOR, DESCRIPTION, DOCUMENT, EXECUTION_LIST, EXTENSIBLE, GROUP_PATH, GROUP_PATH_DELIMITERS, ICON, ID, KEYWORDS, KEYWORDS_DELIMITERS, LICENSE_ID, LICENSE_VERSION, MODEL_TYPE_DELIMITERS, NAME, PROFILES, PROFILES_DELIMITERS, PROVIDER, PUBLIC, REVERSE_TRANSFORM_ID, SOURCE_MODEL_TYPE, SOURCE_MODEL_TYPE_DELIMITERS, SUPPORTS_SILENT, SUPPORTS_SOURCE_OVERRIDE, TARGET_MODEL_TYPE, TARGET_MODEL_TYPE_DELIMITERS, TRANSFORM_GUI, VERSION
Constructor and Description |
---|
TransformationDescriptor(org.eclipse.core.runtime.IConfigurationElement element,
java.lang.String providerClass)
Transformation Descriptor Constructor
This constructor creates a transformation descriptor from a plug-in
configuration element.
|
TransformationDescriptor(org.eclipse.gmf.runtime.common.core.service.IProvider provider)
Generic Transformation Descriptor Constructor
This constructor is designed for subclasses so that they can create
transformation descriptors dynamically where the information is not
stored in a plug-in configuration element.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addExecutionList()
Calculate the execution list for this transformation and add it to the property
table of the transformation.
|
protected void |
addPredefinedProperties()
Add the predefined properties from the configuration element.
|
protected java.lang.String |
getDelimiters(java.lang.String propertyId)
Determine which properties are lists of values
|
java.lang.String[] |
getExecutionList()
Get the execution list for this transformation.
|
org.eclipse.swt.graphics.Image |
getIconImage()
Return the image corresponding to the ICON property.
|
org.eclipse.jface.resource.ImageDescriptor |
getIconImageDescriptor()
Return the image descriptor of the icon of this transformation.
|
boolean |
isValid()
Verfiy the descriptor
|
java.lang.Object |
loadPropertyClass(java.lang.String propertyId)
Load a class corresponding to the given transformation descriptor
property.
|
addCustomProperties, addElementProperty, addLicense, addLicenses, addProperty, checkProperty, equals, getDescription, getElement, getId, getLicense, getLicenseIds, getLicenses, getName, getProperties, getProperty, getPropertyIds, hashCode, isPublic, removeProperty
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getProperties, getProperty, getPropertyIds, isPublic
getDescription, getId, getName
protected static final java.lang.String E_EXECUTION_LIST
protected static final java.lang.String E_USE_UTILITY
protected static final java.lang.String E_USE_TRANSFORM
public TransformationDescriptor(org.eclipse.gmf.runtime.common.core.service.IProvider provider)
provider
- A transformation provider.public TransformationDescriptor(org.eclipse.core.runtime.IConfigurationElement element, java.lang.String providerClass)
element
- The XML configuration element for this transformation.providerClass
- A transform provider class name.protected void addPredefinedProperties()
addPredefinedProperties
in class BaseDescriptor
protected void addExecutionList()
public java.lang.String[] getExecutionList()
protected java.lang.String getDelimiters(java.lang.String propertyId)
getDelimiters
in class BaseDescriptor
propertyId
- the property identifierpublic org.eclipse.swt.graphics.Image getIconImage()
public org.eclipse.jface.resource.ImageDescriptor getIconImageDescriptor()
public boolean isValid()
BaseDescriptor
isValid
in class BaseDescriptor
public java.lang.Object loadPropertyClass(java.lang.String propertyId) throws org.eclipse.core.runtime.CoreException
propertyId
- the ID of the property containing the class nameorg.eclipse.core.runtime.CoreException