org.eclipse.gmt.umlx.mm.editor.regimes
Class EPackageRegime
java.lang.Object
org.eclipse.gmt.umlx.utils.ClassExtension<M>
org.eclipse.gmt.umlx.editor.regime.AbstractRegime<M,P>
org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo0<M,P>
org.eclipse.gmt.umlx.editor.regimes.ENamedElementRegime<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
org.eclipse.gmt.umlx.mm.editor.regimes.EPackageRegime
- All Implemented Interfaces:
- INodeRegimeCo0<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>, IRegime, IRegimeCo0<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>, IClassExtension
public class EPackageRegime
- extends ENamedElementRegime<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime |
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, 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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime |
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getCoModel, getCoModelClass, getCoModelParentClass, getSheetClass, getSource, getSourceModelClass, getTarget, getTargetModelClass |
INSTANCE
public static final EPackageRegime INSTANCE
createDeleteCommand
public DeleteCommand createDeleteCommand(DeleteDomain deleteDomain,
org.eclipse.emf.ecore.EPackage model)
- Specified by:
createDeleteCommand
in interface IRegimeCo0<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
- Overrides:
createDeleteCommand
in class AbstractRegime<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
createModelObject
public org.eclipse.emf.ecore.EPackage 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<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
- Overrides:
createModelObject
in class ENamedElementRegime<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
createOutline
public AbstractOutline createOutline(OutlineViewer viewer,
org.eclipse.emf.ecore.EPackage model)
- Specified by:
createOutline
in interface IRegimeCo0<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
- Overrides:
createOutline
in class AbstractRegime<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
createPropertySource
public AbstractPropertySource createPropertySource(org.eclipse.emf.ecore.EPackage model)
- Specified by:
createPropertySource
in interface IRegimeCo0<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
- Overrides:
createPropertySource
in class ENamedElementRegime<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
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<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
- Returns:
- prefix