|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.topcased.modeler.extensions.DiagramDescriptor
public class DiagramDescriptor
Class that describes a Diagram
Field Summary | |
---|---|
static java.lang.String |
ATT_CLASS
The class attribute |
static java.lang.String |
ATT_CONFIGURATION
The configuration attribute |
static java.lang.String |
ATT_CREATION_COMMAND
The creationCommand attribute |
static java.lang.String |
ATT_EDITOR_ID
The editorID attribute |
static java.lang.String |
ATT_ICON
The icon attribute |
static java.lang.String |
ATT_ID
The id attribute |
static java.lang.String |
ATT_NAME
The name attribute |
static java.lang.String |
TAG_DIAGRAM
The diagram tag |
static java.lang.String |
TAG_ENABLE_FOR
The enableFor tag |
Method Summary | |
---|---|
boolean |
canCreateDiagramOn(EObject model)
Deprecated. Use the method with editorID as additional input parameter instead. |
boolean |
canCreateDiagramOn(EObject model,
java.lang.String theEditorID)
This method is used to check if a Diagram may be created on this model object in the given editor |
IConfiguration |
getConfiguration()
Get the configuration associated with this extension |
org.eclipse.gef.commands.Command |
getCreationCommand(EObject model)
This method retrieve the creation command that may be associated with the current Diagram when the creation is requested on a model object that will not be the real container of the diagram |
org.eclipse.swt.graphics.Image |
getIcon()
Get the icon associated with this diagram |
org.eclipse.jface.resource.ImageDescriptor |
getIconDescriptor()
Get the icon associated with this diagram |
java.lang.String |
getId()
Get the id of the diagram |
java.lang.String |
getName()
Get the name of the diagram (This will be the text displayed in the contextual menu) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TAG_DIAGRAM
public static final java.lang.String ATT_ID
public static final java.lang.String ATT_NAME
public static final java.lang.String ATT_ICON
public static final java.lang.String ATT_EDITOR_ID
public static final java.lang.String ATT_CONFIGURATION
public static final java.lang.String TAG_ENABLE_FOR
public static final java.lang.String ATT_CLASS
public static final java.lang.String ATT_CREATION_COMMAND
Method Detail |
---|
public IConfiguration getConfiguration() throws org.eclipse.core.runtime.CoreException
null
if not found
org.eclipse.core.runtime.CoreException
public org.eclipse.jface.resource.ImageDescriptor getIconDescriptor()
null
if not foundpublic org.eclipse.swt.graphics.Image getIcon()
null
if not foundpublic boolean canCreateDiagramOn(EObject model)
model
- the model object that should be associated with the diagram
public boolean canCreateDiagramOn(EObject model, java.lang.String theEditorID)
model
- the model object that should be associated with the diagramtheEditorID
- the editorID
public org.eclipse.gef.commands.Command getCreationCommand(EObject model)
model
- the model object on which the creation is requested
public java.lang.String getId()
public java.lang.String getName()
|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.