Modelers

org.topcased.modeler.extensions
Class TemplateDescriptor

java.lang.Object
  extended by org.topcased.modeler.extensions.TemplateDescriptor

public class TemplateDescriptor
extends java.lang.Object

Class that describes a Template


Field Summary
static java.lang.String ATT_DI
           
static java.lang.String ATT_EDITOR_ID
           
static java.lang.String ATT_ID
           
static java.lang.String ATT_MODEL
           
static java.lang.String ATT_NAME
           
static java.lang.String TAG_TEMPLATE
           
 
Method Summary
 org.eclipse.core.runtime.IConfigurationElement getConfigurationElement()
          Return the IConfigurationElement associated with the TemplateDescriptor
 java.lang.String getDI()
          Get the relativePath to the template of the di file
 java.lang.String getEditorId()
          Get the editorId of the template (This identify the Topcased editor on which the template is applicable)
 java.lang.String getId()
          Get the id of the diagram
 java.lang.String getModel()
          Get the relativePath to the template of the model file
 java.lang.String getName()
          Get the name of the diagram (This will be the text displayed in the contextual menu)
 Template getTemplateDI()
          Returns the Template object associated with a template id
 Template getTemplateModel()
          Returns the Template object associated with a template id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_TEMPLATE

public static final java.lang.String TAG_TEMPLATE
See Also:
Constant Field Values

ATT_ID

public static final java.lang.String ATT_ID
See Also:
Constant Field Values

ATT_NAME

public static final java.lang.String ATT_NAME
See Also:
Constant Field Values

ATT_EDITOR_ID

public static final java.lang.String ATT_EDITOR_ID
See Also:
Constant Field Values

ATT_MODEL

public static final java.lang.String ATT_MODEL
See Also:
Constant Field Values

ATT_DI

public static final java.lang.String ATT_DI
See Also:
Constant Field Values
Method Detail

getConfigurationElement

public org.eclipse.core.runtime.IConfigurationElement getConfigurationElement()
Return the IConfigurationElement associated with the TemplateDescriptor

Returns:

getId

public java.lang.String getId()
Get the id of the diagram

Returns:
String

getName

public java.lang.String getName()
Get the name of the diagram (This will be the text displayed in the contextual menu)

Returns:
String

getEditorId

public java.lang.String getEditorId()
Get the editorId of the template (This identify the Topcased editor on which the template is applicable)

Returns:
String

getModel

public java.lang.String getModel()
Get the relativePath to the template of the model file

Returns:
String

getDI

public java.lang.String getDI()
Get the relativePath to the template of the di file

Returns:
String

getTemplateModel

public Template getTemplateModel()
Returns the Template object associated with a template id

Returns:
the Template object associated

getTemplateDI

public Template getTemplateDI()
Returns the Template object associated with a template id

Returns:
the Template object associated

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.