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.mapping.action
Class CreateOneSidedMappingAction

java.lang.Object
  extended byorg.eclipse.emf.edit.ui.action.CommandAction
      extended byorg.eclipse.emf.mapping.action.CreateOneSidedMappingAction

All Implemented Interfaces:
CommandStackListener, IActionDelegate, IEditorActionDelegate


public class CreateOneSidedMappingAction
extends CommandAction
implements CommandStackListener


Nested Class Summary
static class CreateOneSidedMappingAction.DelegateCommand
           
 
Field Summary
 
Fields inherited from class org.eclipse.emf.edit.ui.action.CommandAction
action, collection, command, editingDomain, editorPart
 
Constructor Summary
CreateOneSidedMappingAction()
           
 
Method Summary
 void commandStackChanged(EventObject event)
          Called when the CommandStack's state has changed.
protected  Command createActionCommand(EditingDomain editingDomain, Collection collection)
          Create the command for this action
protected  Object getDefaultImage()
          This returns the image that is used if the command does not provide an override.
protected  ImageDescriptor objectToImageDescriptor(Object object)
           
 void setActiveEditor(IAction action, IEditorPart editorPart)
          The framework calls this so that we can register against this editor.
 
Methods inherited from class org.eclipse.emf.edit.ui.action.CommandAction
getDefaultImageDescriptor, run, selectionChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

 

 

CreateOneSidedMappingAction

public CreateOneSidedMappingAction()

Method Detail

 

 

setActiveEditor

public void setActiveEditor(IAction action,
                            IEditorPart editorPart)

Description copied from class: CommandAction
The framework calls this so that we can register against this editor. We use this as an opportunity to record the action and the editor part for later use.

Specified by:
setActiveEditor in interface IEditorActionDelegate
Overrides:
setActiveEditor in class CommandAction


 

 

commandStackChanged

public void commandStackChanged(EventObject event)

Description copied from interface: CommandStackListener
Called when the CommandStack's state has changed.

Specified by:
commandStackChanged in interface CommandStackListener

Parameters:
event - the event.


 

 

getDefaultImage

protected Object getDefaultImage()

This returns the image that is used if the command does not provide an override.


 

 

objectToImageDescriptor

protected ImageDescriptor objectToImageDescriptor(Object object)

Overrides:
objectToImageDescriptor in class CommandAction


 

 

createActionCommand

protected Command createActionCommand(EditingDomain editingDomain,
                                      Collection collection)

Create the command for this action

Overrides:
createActionCommand in class CommandAction


 

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