|
|||||||||
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>
org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo0<M,P>
org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo1<M,P,CM,CP>
public abstract class AbstractNodeRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
Method Summary | |
---|---|
IRegimeCo1<?,?,?,?> |
canCoChange(IActiveEditDomain editDomain,
java.lang.Object coModel,
java.lang.Object model)
|
boolean |
coModelIsOptional()
Returnb true if the coModel is optional (as is the case for a meta-model sheet). |
IAbstractCommand |
createChangeCoModelCommand(IActiveEditDomain editDomain,
M model,
CM coModel)
|
abstract CM |
getCoModel(java.lang.Object model)
Return the co-model of model if it has one. |
java.lang.Class<CM> |
getCoModelClass()
Return the co-model class if it has one. |
java.lang.Object |
getCoModelFor(java.lang.Object coModel)
Return the co-Model to be instantiated when coModel is being instantited. |
CM |
getCoModelFor(java.lang.Object coCoModel,
java.lang.Object parent)
|
java.lang.Class<CP> |
getCoModelParentClass()
Return the co-model parent class if it has one. |
abstract INodeRegimeCo0<CM,CP> |
getCoRegime()
Return the co-regime if it has one. |
java.lang.String |
getLabel()
Return a descriptive label for the managed object type |
abstract java.lang.Object |
getParentCoModel(IActiveEditDomain editDomain,
java.lang.Object parent)
Return the object to be coModel of the parent of a model created by this regime in editDomain. |
ILinkRegimeCo1<?,M,?,P,CM,CP> |
isLink()
|
INodeRegimeCo1<M,P,CM,CP> |
isNode()
|
INodeRegimeCo1<M,P,CM,CP> |
isRegimeCo1()
Return this non-null regime if it is suitable for use with one or more levels of co-model. |
INodeRegimeCo2<M,P,CM,CP> |
isRegimeCo2()
Return this non-null regime if it is suitable for use with two or more levels of co-model. |
boolean |
loadCoModelClass()
|
abstract void |
setCoModel(M model,
java.lang.Object coModel)
|
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo0 |
---|
cannotCreate, createFigure |
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime |
---|
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, createDeleteCommand, createFacets, createLinkEnd, createModelObject, createOutline, createPropertySource, createView, getBackElement, getBasicClass, getFacets, getModelClass, getNewNamePrefix, getParentModelClass, getSheetClass, getSource, getSourceModelClass, getTarget, getTargetModelClass, initialise, isRegimeCo0, load, refreshProblemMessage, 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, createModelObject, createOutline, createPropertySource, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage |
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime |
---|
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getIcon, getNewNamePrefix, getSheetClass, getSource, getSourceModelClass, getTarget, getTargetModelClass |
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension |
---|
getBasicClass, toDebugString, toUserString |
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.INodeRegimeCo0 |
---|
cannotCreate, createFigure |
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo0 |
---|
canCopy, canDelete, computeProblemMessage, createDeleteCommand, createModelObject, createOutline, createPropertySource, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage |
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime |
---|
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getIcon, getNewNamePrefix, getSheetClass, getSource, getSourceModelClass, getTarget, getTargetModelClass |
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension |
---|
getBasicClass, toDebugString, toUserString |
Method Detail |
---|
public IRegimeCo1<?,?,?,?> canCoChange(IActiveEditDomain editDomain, java.lang.Object coModel, java.lang.Object model)
canCoChange
in interface IRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
public boolean coModelIsOptional()
IRegimeCo1
coModelIsOptional
in interface IRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
public IAbstractCommand createChangeCoModelCommand(IActiveEditDomain editDomain, M model, CM coModel)
createChangeCoModelCommand
in interface IRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
public abstract CM getCoModel(java.lang.Object model)
IRegime
getCoModel
in interface IRegime
getCoModel
in interface IRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
getCoModel
in class AbstractRegime<M extends org.eclipse.emf.common.notify.Notifier,P>
model
- model
public final CM getCoModelFor(java.lang.Object coCoModel, java.lang.Object parent)
public java.lang.Class<CM> getCoModelClass()
IRegime
getCoModelClass
in interface IRegime
getCoModelClass
in interface IRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
getCoModelClass
in class AbstractRegime<M extends org.eclipse.emf.common.notify.Notifier,P>
public java.lang.Class<CP> getCoModelParentClass()
IRegime
getCoModelParentClass
in interface IRegime
getCoModelParentClass
in class AbstractRegime<M extends org.eclipse.emf.common.notify.Notifier,P>
public java.lang.Object getCoModelFor(java.lang.Object coModel)
IRegimeCo1
getCoModelFor
in interface IRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
coModel
- required co-model
public abstract INodeRegimeCo0<CM,CP> getCoRegime()
IRegime
getCoRegime
in interface INodeRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
getCoRegime
in interface IRegime
getCoRegime
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
getCoRegime
in interface IRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
getCoRegime
in class AbstractNodeRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public java.lang.String getLabel()
IRegime
getLabel
in interface IRegime
public abstract java.lang.Object getParentCoModel(IActiveEditDomain editDomain, java.lang.Object parent)
IRegimeCo1
getParentCoModel
in interface IRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
editDomain
- edit domain containing objectsparent
- parent of graphical model
public ILinkRegimeCo1<?,M,?,P,CM,CP> isLink()
isLink
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
isLink
in interface IRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
isLink
in class AbstractRegime<M extends org.eclipse.emf.common.notify.Notifier,P>
public INodeRegimeCo1<M,P,CM,CP> isNode()
isNode
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
isNode
in interface IRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
isNode
in class AbstractNodeRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public INodeRegimeCo1<M,P,CM,CP> isRegimeCo1()
IRegime
isRegimeCo1
in interface INodeRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
isRegimeCo1
in interface INodeRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
isRegimeCo1
in interface IRegime
isRegimeCo1
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
isRegimeCo1
in class AbstractNodeRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public INodeRegimeCo2<M,P,CM,CP> isRegimeCo2()
IRegime
isRegimeCo2
in interface INodeRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
isRegimeCo2
in interface INodeRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
isRegimeCo2
in interface IRegime
isRegimeCo2
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
isRegimeCo2
in class AbstractNodeRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
public boolean loadCoModelClass()
loadCoModelClass
in interface IRegimeCo1<M extends org.eclipse.emf.common.notify.Notifier,P,CM extends org.eclipse.emf.common.notify.Notifier,CP>
public abstract void setCoModel(M model, java.lang.Object coModel)
setCoModel
in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
setCoModel
in class AbstractRegime<M extends org.eclipse.emf.common.notify.Notifier,P>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |