|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectChange
org.eclipse.egf.pattern.refactoring.internal.move.change.PatternElementChange
public class PatternElementChange
Constructor Summary | |
---|---|
protected |
PatternElementChange(MoveInfo info_p)
Constructor. |
Method Summary | |
---|---|
protected Command |
createAddCommandToContainer(EditingDomain editingDomain_p,
NamedModelElementWithId destinationContainer_p,
AbstractPatternElement elementToMove_p)
Create a new command for adding the element to a new container. |
static Change |
createPatternElementChange(NamedModelElementWithId destinationElement_p,
AbstractPatternElement patternElement_p)
Create a new pattern element change with given parameters. |
protected Command |
createRemoveFromContainerCommand(EditingDomain editingDomain_p,
NamedModelElementWithId container_p,
AbstractPatternElement elementToMove_p)
Create a new command for removing the element from its container. |
Object |
getModifiedElement()
|
String |
getName()
|
protected EReference |
getReferenceForContainer(NamedModelElementWithId container_p)
Get containing reference for given container, that is hosting the element to move. |
void |
initializeValidationData(IProgressMonitor pm_p)
|
RefactoringStatus |
isValid(IProgressMonitor pm_p)
|
Change |
perform(IProgressMonitor pm_p)
|
protected void |
updateElement(AbstractPatternElement patternElement_p,
String parentFullId_p,
String previousFcId_p,
String destinationFcId_p)
Update pattern element, including its subtree (if any). |
protected void |
updateModels(AbstractPatternElement elementToMove_p,
NamedModelElementWithId previousContainingElement_p,
NamedModelElementWithId destinationElement_p)
Update models. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PatternElementChange(MoveInfo info_p)
info_p
- The information data describing the move to perform.Method Detail |
---|
public Object getModifiedElement()
org.eclipse.ltk.core.refactoring.Change#getModifiedElement()
public String getName()
org.eclipse.ltk.core.refactoring.Change#getName()
public void initializeValidationData(IProgressMonitor pm_p)
org.eclipse.ltk.core.refactoring.Change#initializeValidationData(org.eclipse.core.runtime.IProgressMonitor)
public RefactoringStatus isValid(IProgressMonitor pm_p) throws CoreException, OperationCanceledException
CoreException
OperationCanceledException
org.eclipse.ltk.core.refactoring.Change#isValid(org.eclipse.core.runtime.IProgressMonitor)
public Change perform(IProgressMonitor pm_p) throws CoreException
CoreException
org.eclipse.ltk.core.refactoring.Change#perform(org.eclipse.core.runtime.IProgressMonitor)
protected EReference getReferenceForContainer(NamedModelElementWithId container_p)
container_p
-
protected Command createRemoveFromContainerCommand(EditingDomain editingDomain_p, NamedModelElementWithId container_p, AbstractPatternElement elementToMove_p)
editingDomain_p
- container_p
- elementToMove_p
-
protected Command createAddCommandToContainer(EditingDomain editingDomain_p, NamedModelElementWithId destinationContainer_p, AbstractPatternElement elementToMove_p)
editingDomain_p
- destinationContainer_p
- elementToMove_p
-
protected void updateModels(AbstractPatternElement elementToMove_p, NamedModelElementWithId previousContainingElement_p, NamedModelElementWithId destinationElement_p)
elementToMove_p
- previousContainingElement_p
- destinationElement_p
- protected void updateElement(AbstractPatternElement patternElement_p, String parentFullId_p, String previousFcId_p, String destinationFcId_p)
patternElement_p
- parentFullId_p
- public static Change createPatternElementChange(NamedModelElementWithId destinationElement_p, AbstractPatternElement patternElement_p)
destinationElement_p
- A not null destination element. Should be either a pattern library or the pattern viewpoint.patternElement_p
- A not null pattern element to move.
|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.