org.eclipse.gmt.umlx.editor.facets
Class CoModelFacet<M>
java.lang.Object
org.eclipse.gmt.umlx.editor.facets.AbstractFacet<M>
org.eclipse.gmt.umlx.editor.facets.CoModelFacet<M>
- All Implemented Interfaces:
- IFacet<M>
public class CoModelFacet<M>
- extends AbstractFacet<M>
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static <T> CoModelFacet<? super T> getInstance(java.lang.Class<T> modelClass)
change
public <T> void change(FacetIterator<T> facetIterator,
FacetIterator<? extends M> modelIterator)
- Specified by:
change
in interface IFacet<M>
- Specified by:
change
in class AbstractFacet<M>
getNewCoModel
public java.lang.Object getNewCoModel(IModelState modelState)
getOldCoModel
public java.lang.Object getOldCoModel(IModelState modelState)
prepare
public void prepare(ModelState<? extends M> modelState,
M newModel)
- Specified by:
prepare
in interface IFacet<M>
- Specified by:
prepare
in class AbstractFacet<M>
requestModifications
public void requestModifications(ModelState<? extends M> modelState,
IAbstractCommand rootCommand)
- Specified by:
requestModifications
in interface IFacet<M>
- Specified by:
requestModifications
in class AbstractFacet<M>
setNewCoModel
public void setNewCoModel(IModelState modelState,
java.lang.Object newCoModel)
setOldModel
public void setOldModel(ModelState<? extends M> modelState,
M oldModel)
- Specified by:
setOldModel
in interface IFacet<M>
- Specified by:
setOldModel
in class AbstractFacet<M>