org.eclipse.gmt.umlx.tx.editor.regimes
Class UTypedModelRegime

java.lang.Object
  extended by org.eclipse.gmt.umlx.utils.ClassExtension<M>
      extended by org.eclipse.gmt.umlx.editor.regime.AbstractRegime<M,P>
          extended by org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo0<M,P>
              extended by org.eclipse.gmt.umlx.editor.regimes.ENamedElementRegime<UTypedModel,UTransformation>
                  extended by org.eclipse.gmt.umlx.tx.editor.regimes.UTypedModelRegime
All Implemented Interfaces:
INodeRegimeCo0<UTypedModel,UTransformation>, IRegime, IRegimeCo0<UTypedModel,UTransformation>, IClassExtension

public class UTypedModelRegime
extends ENamedElementRegime<UTypedModel,UTransformation>


Field Summary
static UTypedModelRegime INSTANCE
           
 
Method Summary
 UTypedModel createModelObject()
          Create a new and uninitialised EMF object of the type managed by this regime.
 AbstractOutline createOutline(OutlineViewer viewer, UTypedModel coModel)
           
 AbstractPropertySource createPropertySource(UTypedModel coModel)
           
 java.lang.Enum getIcon()
          Return the icon to be shown in the construction context (the Palette for GCore objects, the Outline for ECore objects).
 java.lang.String getLabel()
          Return a descriptive label for the managed object type
 java.lang.String getNewNamePrefix()
          Return a prefix for autogenerated names.
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regimes.ENamedElementRegime
createFacets, createView
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo0
cannotCreate, createFigure, getCoRegime, isNode, isRegimeCo1, isRegimeCo2
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, createDeleteCommand, createLinkEnd, getBackElement, getBasicClass, getCoModel, getCoModelClass, getCoModelParentClass, getFacets, getModelClass, getParentModelClass, getSheetClass, getSource, getSourceModelClass, getTarget, getTargetModelClass, initialise, isLink, isRegimeCo0, load, refreshProblemMessage, setCoModel, toString
 
Methods inherited from class org.eclipse.gmt.umlx.utils.ClassExtension
toDebugString, toUserString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo0
canCopy, canDelete, computeProblemMessage, createDeleteCommand, getFacets, getModelClass, getParentModelClass, isLink, isRegimeCo0, refreshProblemMessage, setCoModel
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getCoModel, getCoModelClass, getCoModelParentClass, getSheetClass, getSource, getSourceModelClass, getTarget, getTargetModelClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Field Detail

INSTANCE

public static final UTypedModelRegime INSTANCE
Method Detail

createModelObject

public UTypedModel createModelObject()
Description copied from interface: IRegime
Create a new and uninitialised EMF object of the type managed by this regime.

Specified by:
createModelObject in interface IRegime
Specified by:
createModelObject in interface IRegimeCo0<UTypedModel,UTransformation>
Overrides:
createModelObject in class ENamedElementRegime<UTypedModel,UTransformation>

createOutline

public AbstractOutline createOutline(OutlineViewer viewer,
                                     UTypedModel coModel)
Specified by:
createOutline in interface IRegimeCo0<UTypedModel,UTransformation>
Overrides:
createOutline in class AbstractRegime<UTypedModel,UTransformation>

createPropertySource

public AbstractPropertySource createPropertySource(UTypedModel coModel)
Specified by:
createPropertySource in interface IRegimeCo0<UTypedModel,UTransformation>
Overrides:
createPropertySource in class ENamedElementRegime<UTypedModel,UTransformation>

getIcon

public java.lang.Enum getIcon()
Description copied from interface: IRegime
Return the icon to be shown in the construction context (the Palette for GCore objects, the Outline for ECore objects).

Returns:
the icon

getLabel

public java.lang.String getLabel()
Description copied from interface: IRegime
Return a descriptive label for the managed object type

Returns:
label

getNewNamePrefix

public java.lang.String getNewNamePrefix()
Description copied from interface: IRegime
Return a prefix for autogenerated names.

Specified by:
getNewNamePrefix in interface IRegime
Overrides:
getNewNamePrefix in class AbstractRegime<UTypedModel,UTransformation>
Returns:
prefix