EGF Engine
Release 0.1.0

org.eclipse.egf.model.edit.command.plugin.domain
Class AbstractDomainWrapperCommand

java.lang.Object
  extended by AbstractOverrideableCommand
      extended by org.eclipse.egf.model.edit.command.plugin.PluginChangeWrapperCommand
          extended by org.eclipse.egf.model.edit.command.plugin.domain.AbstractDomainWrapperCommand
Direct Known Subclasses:
RemoveDomainWrapperCommand, SetDomainWrapperCommand

public abstract class AbstractDomainWrapperCommand
extends PluginChangeWrapperCommand

Base class to implement command that wrap a domain modification in factoryComponent extension.


Constructor Summary
AbstractDomainWrapperCommand(EditingDomain domain_p, EObject modelElement_p, EStructuralFeature feature_p, Object value_p)
          Constructor.
 
Method Summary
protected  String getDomainPath(IProject project_p)
          Get the domain relative domain path to the workspace.
protected  List<IPluginChangesCommand> getExecutablePluginChangeCommand()
          Returns the extension changes command used in the execute call.
protected abstract  String getRelativeToProjectDomainPath()
          Return the relative path to project for managed domain.
protected abstract  void handleDomainFile(String workspaceRelativeDomainPath_p)
          Handle domain file for instance : either create or delete the file.
 
Methods inherited from class org.eclipse.egf.model.edit.command.plugin.PluginChangeWrapperCommand
doCanUndo, doExecute, doRedo, doUndo, getCommandRunner, getFeature, getMDSoFaPde, getModelElement, getPluginId, getRedoablePluginChangeCommand, getUndoablePluginChangeCommand, getValue, prepare, setPluginId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDomainWrapperCommand

public AbstractDomainWrapperCommand(EditingDomain domain_p,
                                    EObject modelElement_p,
                                    EStructuralFeature feature_p,
                                    Object value_p)
Constructor.

Parameters:
domain_p -
modelElement_p -
feature_p -
value_p -
Method Detail

handleDomainFile

protected abstract void handleDomainFile(String workspaceRelativeDomainPath_p)
Handle domain file for instance : either create or delete the file.

Parameters:
workspaceRelativeDomainPath_p -

getExecutablePluginChangeCommand

protected List<IPluginChangesCommand> getExecutablePluginChangeCommand()
Description copied from class: PluginChangeWrapperCommand
Returns the extension changes command used in the execute call.

Specified by:
getExecutablePluginChangeCommand in class PluginChangeWrapperCommand
Returns:
See Also:
PluginChangeWrapperCommand.getExecutablePluginChangeCommand()

getDomainPath

protected String getDomainPath(IProject project_p)
Get the domain relative domain path to the workspace.

Returns:

getRelativeToProjectDomainPath

protected abstract String getRelativeToProjectDomainPath()
Return the relative path to project for managed domain.

Returns:

EGF Engine
Release 0.1.0

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.