org.eclipse.gmt.umlx.editor.regimes
Class GSheetLinkRegimeCo1<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EModelElement,CP>
java.lang.Object
org.eclipse.gmt.umlx.utils.ClassExtension<M>
org.eclipse.gmt.umlx.editor.regime.AbstractRegime<LM,P>
org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo0<SM,LM,TM,P>
org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo1<SM,LM,TM,P,CM,CP>
org.eclipse.gmt.umlx.editor.regimes.GSheetLinkRegimeCo1<SM,LM,TM,P,CM,CP>
- All Implemented Interfaces:
- ILinkRegimeCo0<SM,LM,TM,P>, ILinkRegimeCo1<SM,LM,TM,P,CM,CP>, ILinkRegimeEnums, IRegime, IRegimeCo0<LM,P>, IRegimeCo1<LM,P,CM,CP>, IClassExtension
- Direct Known Subclasses:
- AbstractAutoGLinkRegime, GAssociationRegime, GSheetTransientLinkRegimeCo1, TxAttributeVariable2TxExpressionVariableRegime, TxBindingRegime
public abstract class GSheetLinkRegimeCo1<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EModelElement,CP>
- extends AbstractLinkRegimeCo1<SM,LM,TM,P,CM,CP>
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo1 |
canCoChange, coModelIsOptional, createChangeCoModelCommand, getCoModelClass, getCoModelFor, getCoModelParentClass, getCoRegime, getParentCoModel, getParentCoModel, isLink, isNode, isRegimeCo1, isRegimeCo2, loadCoModelClass |
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo0 |
addConnection, canBeReversed, cannotConnectBetween, cannotConnectFrom, cannotConnectTo, createCreateCommand, createFigure, createLinkEnd, createModelObject, createReconnectCommand, getActualConnection, getActualConnectionsBetween, getCoCoModelsFor, getPotentialCoConnection, getPotentialCoConnectionsBetween, getPotentialConnection, getPotentialConnectionsBetween, getSource, getSourceLinkEnd, getSourceModelClass, getSourceNode, getTarget, getTargetLinkEnd, getTargetModelClass, getTargetNode, isContainment, resolveRegime, sourceIsOptional, targetIsOptional |
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime |
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, createDeleteCommand, createModelObject, createOutline, createView, getBackElement, getBasicClass, getFacets, getModelClass, getNewNamePrefix, getParentModelClass, initialise, isRegimeCo0, load, refreshProblemMessage, 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.IRegimeCo0 |
canCopy, canDelete, computeProblemMessage, createDeleteCommand, createModelObject, createOutline, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage |
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.ILinkRegimeCo0 |
addConnection, canBeReversed, cannotConnectBetween, cannotConnectFrom, cannotConnectTo, createCreateCommand, createFigure, createModelObject, createReconnectCommand, getActualConnection, getActualConnectionsBetween, getCoCoModelsFor, getPotentialCoConnection, getPotentialConnection, getPotentialConnectionsBetween, getSource, getSourceLinkEnd, getSourceModelClass, getSourceNode, getTarget, getTargetLinkEnd, getTargetModelClass, getTargetNode, isContainment, resolveRegime, sourceIsOptional, targetIsOptional |
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo0 |
canCopy, canDelete, computeProblemMessage, createDeleteCommand, createModelObject, createOutline, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage |
cannotCoCreate
public IErrorMessage cannotCoCreate(IActiveEditDomain editDomain,
java.lang.Object coModel,
java.lang.Object context)
- Description copied from interface:
ILinkRegimeCo1
- Return the reason why an instanceof coModel cannot be created, or null if it can.
- Specified by:
cannotCoCreate
in interface ILinkRegimeCo1<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EModelElement,CP>
- Overrides:
cannotCoCreate
in class AbstractLinkRegimeCo1<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EModelElement,CP>
- Parameters:
editDomain
- domain in which to createcoModel
- coModel to instantiatecontext
- context of instantiation
- Returns:
- non-null reason for creation failure
createFacets
public void createFacets(java.util.List<IFacet<? super LM>> facetList)
- Overrides:
createFacets
in class AbstractLinkRegimeCo0<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet>
createPropertySource
public AbstractPropertySource createPropertySource(LM model)
- Specified by:
createPropertySource
in interface IRegimeCo0<LM extends GSheetLink,P extends GSheet>
- Overrides:
createPropertySource
in class AbstractRegime<LM extends GSheetLink,P extends GSheet>
getBendpoints
public java.util.List<org.eclipse.draw2d.Bendpoint> getBendpoints(java.lang.Object model)
- Specified by:
getBendpoints
in interface ILinkRegimeCo0<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet>
- Overrides:
getBendpoints
in class AbstractLinkRegimeCo0<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet>
getCoModel
public CM getCoModel(java.lang.Object model)
- Description copied from interface:
IRegime
- Return the co-model of model if it has one.
- Specified by:
getCoModel
in interface IRegime
- Specified by:
getCoModel
in interface IRegimeCo1<LM extends GSheetLink,P extends GSheet,CM extends org.eclipse.emf.ecore.EModelElement,CP>
- Specified by:
getCoModel
in class AbstractLinkRegimeCo1<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EModelElement,CP>
- Parameters:
model
- model
- Returns:
- co-model or null
getSheetClass
public java.lang.Class<? extends GSheet> getSheetClass()
- Description copied from interface:
IRegime
- Return the class of the sheet that this regime supports
- Specified by:
getSheetClass
in interface IRegime
- Overrides:
getSheetClass
in class AbstractRegime<LM extends GSheetLink,P extends GSheet>
- Returns:
- sheet class or null.
getSource0
public SM getSource0(LM model)
- Specified by:
getSource0
in interface ILinkRegimeCo0<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet>
- Specified by:
getSource0
in class AbstractLinkRegimeCo0<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet>
getSourceConnections
public java.util.List<? super LM> getSourceConnections(java.lang.Object target)
- Specified by:
getSourceConnections
in interface ILinkRegimeCo0<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet>
- Overrides:
getSourceConnections
in class AbstractLinkRegimeCo0<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet>
getTarget0
public TM getTarget0(LM model)
- Specified by:
getTarget0
in interface ILinkRegimeCo0<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet>
- Specified by:
getTarget0
in class AbstractLinkRegimeCo0<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet>
getTargetConnections
public java.util.List<? super LM> getTargetConnections(java.lang.Object target)
- Specified by:
getTargetConnections
in interface ILinkRegimeCo0<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet>
- Overrides:
getTargetConnections
in class AbstractLinkRegimeCo0<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet>
removeConnection
public java.lang.Integer[] removeConnection(SM source,
LM link,
TM target)
- Specified by:
removeConnection
in interface ILinkRegimeCo0<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet>
- Overrides:
removeConnection
in class AbstractLinkRegimeCo0<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet>
setCoModel
public void setCoModel(LM model,
java.lang.Object coModel)
- Specified by:
setCoModel
in interface IRegimeCo0<LM extends GSheetLink,P extends GSheet>
- Specified by:
setCoModel
in class AbstractLinkRegimeCo1<SM extends GSheetNode,LM extends GSheetLink,TM extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EModelElement,CP>