EGF Engine
Release 0.1.0

org.eclipse.egf.core.ui.command
Class ChangeDescriptionWrapperCommand

java.lang.Object
  extended by AbstractOverrideableCommand
      extended by org.eclipse.egf.core.ui.command.ChangeDescriptionWrapperCommand

public class ChangeDescriptionWrapperCommand
extends AbstractOverrideableCommand

Implements a runnable command by the EMF command stack.
This command deals with modified model element objects described in a change description.


Constructor Summary
ChangeDescriptionWrapperCommand(EditingDomain domain_p)
          Constructor.
ChangeDescriptionWrapperCommand(EditingDomain domain_p, String label_p)
          Constructor.
ChangeDescriptionWrapperCommand(EditingDomain domain_p, String label_p, String description_p)
          Constructor.
 
Method Summary
 void doExecute()
           
 Collection<?> doGetAffectedObjects()
           
 void doRedo()
           
 void doUndo()
           
protected  boolean prepare()
           
protected  void setChangeDescription(ChangeDescription changeDescription_p)
          Set given change description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeDescriptionWrapperCommand

public ChangeDescriptionWrapperCommand(EditingDomain domain_p)
Constructor.

Parameters:
domain_p -

ChangeDescriptionWrapperCommand

public ChangeDescriptionWrapperCommand(EditingDomain domain_p,
                                       String label_p)
Constructor.

Parameters:
domain_p -
label_p -

ChangeDescriptionWrapperCommand

public ChangeDescriptionWrapperCommand(EditingDomain domain_p,
                                       String label_p,
                                       String description_p)
Constructor.

Parameters:
domain_p -
label_p -
description_p -
Method Detail

doExecute

public void doExecute()
See Also:
org.eclipse.emf.edit.command.AbstractOverrideableCommand#doExecute()

doRedo

public void doRedo()
See Also:
org.eclipse.emf.edit.command.AbstractOverrideableCommand#doRedo()

doUndo

public void doUndo()
See Also:
org.eclipse.emf.edit.command.AbstractOverrideableCommand#doUndo()

setChangeDescription

protected void setChangeDescription(ChangeDescription changeDescription_p)
Set given change description.

Parameters:
changeDescription_p - the changeDescription to set

prepare

protected boolean prepare()
See Also:
org.eclipse.emf.common.command.AbstractCommand#prepare()

doGetAffectedObjects

public Collection<?> doGetAffectedObjects()
See Also:
org.eclipse.emf.edit.command.AbstractOverrideableCommand#doGetAffectedObjects()

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.