|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmt.umlx.utils.ClassExtension<M>
org.eclipse.gmt.umlx.editor.regime.AbstractRegime<M,P>
public abstract class AbstractRegime<M extends org.eclipse.emf.common.notify.Notifier,P>
Method Summary | |
---|---|
boolean |
canCopy(IRegimeContext regimeContext,
M selectedObject)
|
boolean |
canDelete(IRegimeContext regimeContext,
M selectedObject)
|
IProblemMessage<?> |
computeProblemMessage(M model)
Return a non-null message describing a problem with model. |
IAbstractCommand |
createCreateChildLinkCommand(IActiveEditDomain editDomain,
java.lang.Object coChild,
java.lang.Object child,
java.lang.Object parent)
Create a command to create a graphical link between a newly created graphical child and its graphical parent. |
CreateCommand |
createCreateCommand(IActiveEditDomain editDomain,
java.lang.Object coModel,
java.lang.Object context)
Create a command to create an instance of the model element managed by this regime, with the created element a child of parent, and instantiating coModel. |
DeleteCommand |
createDeleteCommand(DeleteDomain deleteDomain,
M model)
|
void |
createFacets(java.util.List<IFacet<? super M>> facetList)
|
ILinkEnd |
createLinkEnd(java.lang.Object object)
Create an object to describe the end of a link terminating at object. |
M |
createModelObject()
Create a new and uninitialised EMF object of the type managed by this regime. |
AbstractOutline |
createOutline(OutlineViewer viewer,
M model)
|
AbstractPropertySource |
createPropertySource(M model)
|
org.eclipse.gef.EditPart |
createView(SheetViewer viewer,
M model)
|
GModelElement |
getBackElement(java.lang.Object editModel)
Return the non-opaque model element behind the graphical editModel. |
java.lang.Class<M> |
getBasicClass()
|
java.lang.Object |
getCoModel(java.lang.Object model)
Return the co-model of model if it has one. |
java.lang.Class<?> |
getCoModelClass()
Return the co-model class if it has one. |
java.lang.Class<?> |
getCoModelParentClass()
Return the co-model parent class if it has one. |
abstract IRegimeCo0<?,?> |
getCoRegime()
Return the co-regime if it has one. |
IFacet<? super M>[] |
getFacets()
|
java.lang.Class<M> |
getModelClass()
Return the model class. |
java.lang.String |
getNewNamePrefix()
Return a prefix for autogenerated names. |
java.lang.Class<P> |
getParentModelClass()
Return the class of the parent |
java.lang.Class<? extends GSheet> |
getSheetClass()
Return the class of the sheet that this regime supports |
java.lang.Object |
getSource(java.lang.Object model)
Return the source node of model if it is a link. |
java.lang.Class<?> |
getSourceModelClass()
Return the class of source nodes if appropriate |
java.lang.Object |
getTarget(java.lang.Object model)
Return the target node of model if it is a link. |
java.lang.Class<?> |
getTargetModelClass()
Return the class of target nodes if appropriate |
void |
initialise(IModelState rawState)
|
ILinkRegimeCo0<?,M,?,P> |
isLink()
|
INodeRegimeCo0<M,P> |
isNode()
|
IRegimeCo0<M,P> |
isRegimeCo0()
Return this non-null regime if it is suitable for use with zero or more levels of co-model. |
IRegimeCo1<M,P,?,?> |
isRegimeCo1()
Return this non-null regime if it is suitable for use with one or more levels of co-model. |
IRegimeCo2<M,P,?,?> |
isRegimeCo2()
Return this non-null regime if it is suitable for use with two or more levels of co-model. |
static void |
load()
|
IProblemMessage<?> |
refreshProblemMessage(ActiveEditDomain domain,
M model)
Recompute and return the error message for model within domain. |
void |
setCoModel(M model,
java.lang.Object coModel)
|
java.lang.String |
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.IRegime |
---|
getIcon, getLabel |
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension |
---|
toDebugString, toUserString |
Method Detail |
---|
public static void load()
public boolean canCopy(IRegimeContext regimeContext, M selectedObject)
canCopy
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public boolean canDelete(IRegimeContext regimeContext, M selectedObject)
canDelete
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public final IProblemMessage<?> computeProblemMessage(M model)
IRegimeCo0
computeProblemMessage
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public IAbstractCommand createCreateChildLinkCommand(IActiveEditDomain editDomain, java.lang.Object coChild, java.lang.Object child, java.lang.Object parent)
IRegime
createCreateChildLinkCommand
in interface IRegime
public CreateCommand createCreateCommand(IActiveEditDomain editDomain, java.lang.Object coModel, java.lang.Object context)
IRegime
createCreateCommand
in interface IRegime
public DeleteCommand createDeleteCommand(DeleteDomain deleteDomain, M model)
createDeleteCommand
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public void createFacets(java.util.List<IFacet<? super M>> facetList)
public ILinkEnd createLinkEnd(java.lang.Object object)
IRegime
createLinkEnd
in interface IRegime
public M createModelObject()
IRegime
createModelObject
in interface IRegime
createModelObject
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public AbstractOutline createOutline(OutlineViewer viewer, M model)
createOutline
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public AbstractPropertySource createPropertySource(M model)
createPropertySource
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public org.eclipse.gef.EditPart createView(SheetViewer viewer, M model)
createView
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public GModelElement getBackElement(java.lang.Object editModel)
IRegime
getBackElement
in interface IRegime
public java.lang.Class<M> getBasicClass()
getBasicClass
in interface IClassExtension
getBasicClass
in class ClassExtension<M extends org.eclipse.emf.common.notify.Notifier>
public java.lang.Object getCoModel(java.lang.Object model)
IRegime
getCoModel
in interface IRegime
model
- model
public java.lang.Class<?> getCoModelClass()
IRegime
getCoModelClass
in interface IRegime
public java.lang.Class<?> getCoModelParentClass()
IRegime
getCoModelParentClass
in interface IRegime
public abstract IRegimeCo0<?,?> getCoRegime()
IRegime
getCoRegime
in interface IRegime
getCoRegime
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public IFacet<? super M>[] getFacets()
getFacets
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public final java.lang.Class<M> getModelClass()
IRegime
getModelClass
in interface IRegime
getModelClass
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public java.lang.String getNewNamePrefix()
IRegime
getNewNamePrefix
in interface IRegime
public final java.lang.Class<P> getParentModelClass()
IRegime
getParentModelClass
in interface IRegime
getParentModelClass
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public java.lang.Class<? extends GSheet> getSheetClass()
IRegime
getSheetClass
in interface IRegime
public java.lang.Object getSource(java.lang.Object model)
IRegime
getSource
in interface IRegime
model
- model
public java.lang.Class<?> getSourceModelClass()
IRegime
getSourceModelClass
in interface IRegime
public java.lang.Object getTarget(java.lang.Object model)
IRegime
getTarget
in interface IRegime
model
- model
public java.lang.Class<?> getTargetModelClass()
IRegime
getTargetModelClass
in interface IRegime
public void initialise(IModelState rawState)
public ILinkRegimeCo0<?,M,?,P> isLink()
isLink
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public INodeRegimeCo0<M,P> isNode()
isNode
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public IRegimeCo0<M,P> isRegimeCo0()
IRegime
isRegimeCo0
in interface IRegime
isRegimeCo0
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public IRegimeCo1<M,P,?,?> isRegimeCo1()
IRegime
isRegimeCo1
in interface IRegime
isRegimeCo1
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public IRegimeCo2<M,P,?,?> isRegimeCo2()
IRegime
isRegimeCo2
in interface IRegime
isRegimeCo2
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public IProblemMessage<?> refreshProblemMessage(ActiveEditDomain domain, M model)
IRegimeCo0
refreshProblemMessage
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public void setCoModel(M model, java.lang.Object coModel)
setCoModel
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |