Overview

 
Package  Use  Tree  Deprecated  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

org.eclipse.emf.edit.provider
Class DelegatingWrapperItemProvider.AffectedObjectsWrappingCommandActionDelegate

java.lang.Object
  extended byorg.eclipse.emf.common.command.AbstractCommand
      extended byorg.eclipse.emf.common.command.CommandWrapper
          extended byorg.eclipse.emf.edit.provider.DelegatingWrapperItemProvider.AffectedObjectsWrappingCommand
              extended byorg.eclipse.emf.edit.provider.DelegatingWrapperItemProvider.AffectedObjectsWrappingCommandActionDelegate

All Implemented Interfaces:
Command, CommandActionDelegate

Enclosing class:
DelegatingWrapperItemProvider


public class DelegatingWrapperItemProvider.AffectedObjectsWrappingCommandActionDelegate
extends DelegatingWrapperItemProvider.AffectedObjectsWrappingCommand
implements CommandActionDelegate

An AffectedObjectsWrappingCommandActionDelegate wraps another command that also implements CommandActionDelegate, to substitue this wrapper for its value and child wrappers for their corresonding child values, whenever they appear in the affected objects. Action delegate methods are delegated directly to the wrapped command.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.common.command.AbstractCommand
AbstractCommand.NonDirtying
 
Field Summary
 
Fields inherited from class org.eclipse.emf.common.command.CommandWrapper
command
 
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label
 
Constructor Summary
DelegatingWrapperItemProvider.AffectedObjectsWrappingCommandActionDelegate(CommandActionDelegate command)
          Returns a new AffectedObjectsWrappingCommandActionDelegate for the given command.
 
Method Summary
 boolean canExecute()
          This returns whether the action should be enabled.
 String getDescription()
          This returns the description, if any, of the action.
 Object getImage()
          This returns the decoration, if any, of the action.
 String getText()
          This returns the menu text, if any, of the action.
 String getToolTipText()
          This returns the tool tip text, if any, of the action.
 
Methods inherited from class org.eclipse.emf.edit.provider.DelegatingWrapperItemProvider.AffectedObjectsWrappingCommand
getAffectedObjects
 
Methods inherited from class org.eclipse.emf.common.command.CommandWrapper
canUndo, createCommand, dispose, execute, getCommand, getLabel, getResult, prepare, redo, toString, undo
 
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
chain, setDescription, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

 

 

DelegatingWrapperItemProvider.AffectedObjectsWrappingCommandActionDelegate

public DelegatingWrapperItemProvider.AffectedObjectsWrappingCommandActionDelegate(CommandActionDelegate command)

Returns a new AffectedObjectsWrappingCommandActionDelegate for the given command.

Throws:
ClassCastException - If the specified command does not implement Command.
Method Detail

 

 

canExecute

public boolean canExecute()

Description copied from interface: CommandActionDelegate
This returns whether the action should be enabled.

Specified by:
canExecute in interface CommandActionDelegate
Overrides:
canExecute in class AbstractCommand

Returns:
whether the command can execute.


 

 

getImage

public Object getImage()

Description copied from interface: CommandActionDelegate
This returns the decoration, if any, of the action.

Specified by:
getImage in interface CommandActionDelegate


 

 

getText

public String getText()

Description copied from interface: CommandActionDelegate
This returns the menu text, if any, of the action.

Specified by:
getText in interface CommandActionDelegate


 

 

getDescription

public String getDescription()

Description copied from interface: CommandActionDelegate
This returns the description, if any, of the action.

Specified by:
getDescription in interface CommandActionDelegate
Overrides:
getDescription in class CommandWrapper

Returns:
the description.


 

 

getToolTipText

public String getToolTipText()

Description copied from interface: CommandActionDelegate
This returns the tool tip text, if any, of the action.

Specified by:
getToolTipText in interface CommandActionDelegate


 

Overview

 
Package  Use  Tree  Deprecated  Index  Help 
Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD