|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egf.pattern.ecore.PatternHandler
org.eclipse.egf.pattern.refactoring.internal.move.change.RefactoringPatternHandler
public class RefactoringPatternHandler
Enhance the PatternHandler
with refactoring specific functions.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.egf.pattern.ecore.PatternHandler |
---|
PatternHandler.PatternData, PatternHandler.ProductionOptionsHandler |
Constructor Summary | |
---|---|
RefactoringPatternHandler()
|
Method Summary | |
---|---|
protected boolean |
recomputeOperationsPaths(String previousFcId_p,
String newFcId_p)
Recompute operations paths for current pattern, swapping from previous factory component id to new one. |
void |
refactorContainingFactoryComponent(String previousFcId_p,
String destinationFcId_p)
Refactor pattern containing factory component (from id). |
void |
refactorFullId(String newPatternFullId_p,
boolean updateExtensions_p)
Refactor pattern full id. |
protected void |
updatePatternModel(PatternModel patternModel_p,
PatternHandler.PatternData patternData_p)
Update pattern model with new pattern name, path and id. |
Methods inherited from class org.eclipse.egf.pattern.ecore.PatternHandler |
---|
cleanGeneratedStructures, createPattern, delete, ensurePluginDependencies, getAllParameters, getCallParameters, getGenerateOperation, getPatternData, handleSaveProductionOptions, isEditable, load, postSave, readProductionContext, recomputeAllParameters, recomputeCallParameters, recomputeConditionStructures, reloadPatternAndUpdateModel, save, save, setFileRelativePath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RefactoringPatternHandler()
Method Detail |
---|
public void refactorFullId(String newPatternFullId_p, boolean updateExtensions_p) throws Exception
IllegalArgumentException
is thrown.
newPatternFullId_p
- updateExtensions_p
- true to update the associated extensions, false otherwise. If an update is required, then it is assumed that the containing
factory component (and thus its plug-in) has not changed.
IllegalArgumentException
- if given new full id is not compliant with the pattern deployment.
Exception
public void refactorContainingFactoryComponent(String previousFcId_p, String destinationFcId_p) throws Exception
previousFcId_p
- destinationFcId_p
-
Exception
protected boolean recomputeOperationsPaths(String previousFcId_p, String newFcId_p)
previousFcId_p
- newFcId_p
-
protected void updatePatternModel(PatternModel patternModel_p, PatternHandler.PatternData patternData_p)
PatternHandler
updatePatternModel
in class PatternHandler
PatternHandler.updatePatternModel(org.eclipse.egf.model.PatternModel,
org.eclipse.egf.pattern.ecore.PatternHandler.PatternData)
|
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.