org.eclipse.emf.examples.extlibrary.actions
Class AddLibraryCommand

java.lang.Object
  extended by org.eclipse.emf.common.command.AbstractCommand
      extended by org.eclipse.emf.edit.command.AbstractOverrideableCommand
          extended by org.eclipse.emf.edit.command.AddCommand
              extended by org.eclipse.emf.examples.extlibrary.actions.AddLibraryCommand
All Implemented Interfaces:
Command, CommandActionDelegate, OverrideableCommand

public class AddLibraryCommand
extends AddCommand
implements CommandActionDelegate

The extended library example supports multi-rooted resources and therefore this command will add a library to the resource.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
AbstractCommand.NonDirtying
 
Field Summary
 
Fields inherited from class org.eclipse.emf.edit.command.AddCommand
affectedObjects, collection, DESCRIPTION, DESCRIPTION_FOR_LIST, feature, index, LABEL, owner, ownerList
 
Fields inherited from class org.eclipse.emf.edit.command.AbstractOverrideableCommand
domain, overrideCommand
 
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label
 
Constructor Summary
AddLibraryCommand(EditingDomain domain, EList<?> list, java.lang.Object value)
          Constructor
 
Method Summary
 java.lang.Object getImage()
          This returns the decoration, if any, of the action.
 java.lang.String getText()
          This returns the menu text, if any, of the action.
 java.lang.String getToolTipText()
          This returns the tool tip text, if any, of the action.
 
Methods inherited from class org.eclipse.emf.edit.command.AddCommand
create, create, create, create, doExecute, doGetAffectedObjects, doGetResult, doRedo, doUndo, getCollection, getFeature, getIndex, getOwner, getOwnerList, isUserElement, prepare, toString
 
Methods inherited from class org.eclipse.emf.edit.command.AbstractOverrideableCommand
canExecute, canUndo, dispose, doCanExecute, doCanUndo, doDispose, doGetChildrenToCopy, doGetDescription, doGetLabel, execute, getAffectedObjects, getChildrenToCopy, getDescription, getDomain, getLabel, getOverride, getOwnerList, getResult, redo, setOverride, undo, updateEMap
 
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
 
Methods inherited from interface org.eclipse.emf.edit.command.CommandActionDelegate
canExecute, getDescription
 
Methods inherited from interface org.eclipse.emf.common.command.Command
chain
 

Constructor Detail

AddLibraryCommand

public AddLibraryCommand(EditingDomain domain,
                         EList<?> list,
                         java.lang.Object value)
Constructor

Parameters:
domain - the editing domain
list - the list to add to
value - the value to add
Method Detail

getImage

public java.lang.Object getImage()
Description copied from interface: CommandActionDelegate
This returns the decoration, if any, of the action.

Specified by:
getImage in interface CommandActionDelegate

getText

public java.lang.String getText()
Description copied from interface: CommandActionDelegate
This returns the menu text, if any, of the action.

Specified by:
getText in interface CommandActionDelegate

getToolTipText

public java.lang.String getToolTipText()
Description copied from interface: CommandActionDelegate
This returns the tool tip text, if any, of the action.

Specified by:
getToolTipText in interface CommandActionDelegate

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.