EGF Engine
Release 0.1.0

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

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
              extended by org.eclipse.egf.model.edit.command.plugin.domain.RemoveDomainWrapperCommand

public class RemoveDomainWrapperCommand
extends AbstractDomainWrapperCommand

Implements a command that wraps a domain modification in factoryComponent extension.
This command handles domain ecore file delete.


Constructor Summary
RemoveDomainWrapperCommand(EditingDomain domain_p, EObject modelElement_p, EStructuralFeature feature_p, Object value_p)
          Constructor.
 
Method Summary
protected  String getRelativeToProjectDomainPath()
          Return the relative path to project for managed domain.
protected  List<IPluginChangesCommand> getUndoablePluginChangeCommand()
          Returns the extension changes command used in the undo call.
protected  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.domain.AbstractDomainWrapperCommand
getDomainPath, getExecutablePluginChangeCommand
 
Methods inherited from class org.eclipse.egf.model.edit.command.plugin.PluginChangeWrapperCommand
doCanUndo, doExecute, doRedo, doUndo, getCommandRunner, getFeature, getMDSoFaPde, getModelElement, getPluginId, getRedoablePluginChangeCommand, getValue, prepare, setPluginId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveDomainWrapperCommand

public RemoveDomainWrapperCommand(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 void handleDomainFile(String workspaceRelativeDomainPath_p)
Description copied from class: AbstractDomainWrapperCommand
Handle domain file for instance : either create or delete the file.

Specified by:
handleDomainFile in class AbstractDomainWrapperCommand
See Also:
AbstractDomainWrapperCommand.handleDomainFile(java.lang.String)

getRelativeToProjectDomainPath

protected String getRelativeToProjectDomainPath()
Description copied from class: AbstractDomainWrapperCommand
Return the relative path to project for managed domain.

Specified by:
getRelativeToProjectDomainPath in class AbstractDomainWrapperCommand
Returns:
See Also:
AbstractDomainWrapperCommand.getRelativeToProjectDomainPath()

getUndoablePluginChangeCommand

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

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

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.