org.eclipse.emf.edit.ui.action
Class DelegatingCommandAction

org.eclipse.emf.edit.ui.action.DelegatingCommandAction
All Implemented Interfaces:
org.eclipse.ui.ISelectionListener

public class DelegatingCommandAction
implements org.eclipse.ui.ISelectionListener

This class wraps an IEditorActionDelegate, e.g., a CommandAction, to make it into an Action.


Field Summary
protected  org.eclipse.ui.IEditorActionDelegate editorActionDelegate
          This is the delegate;
protected  org.eclipse.ui.IEditorPart editorPart
          This is the current editor.
 
Constructor Summary
DelegatingCommandAction(org.eclipse.ui.IEditorActionDelegate editorActionDelegate)
          This constructs an instance.
 
Method Summary
protected  void handleSelection(org.eclipse.jface.viewers.ISelection selection)
           
protected  void registerSelectionListener(org.eclipse.ui.IEditorPart editorPart)
           
 void run()
           
protected  void selectionChanged(org.eclipse.jface.viewers.ISelection selection)
           
 void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
           
 void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
           
 void setActiveEditor(org.eclipse.ui.IEditorPart editorPart)
           
protected  void unregisterSelectionListener(org.eclipse.ui.IEditorPart editorPart)
           
 

Field Detail

editorActionDelegate

protected org.eclipse.ui.IEditorActionDelegate editorActionDelegate
This is the delegate;

editorPart

protected org.eclipse.ui.IEditorPart editorPart
This is the current editor.
Constructor Detail

DelegatingCommandAction

public DelegatingCommandAction(org.eclipse.ui.IEditorActionDelegate editorActionDelegate)
This constructs an instance.
Method Detail

selectionChanged

public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)

selectionChanged

public void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
                             org.eclipse.jface.viewers.ISelection selection)
Specified by:
selectionChanged in interface org.eclipse.ui.ISelectionListener

selectionChanged

protected void selectionChanged(org.eclipse.jface.viewers.ISelection selection)

handleSelection

protected void handleSelection(org.eclipse.jface.viewers.ISelection selection)

registerSelectionListener

protected void registerSelectionListener(org.eclipse.ui.IEditorPart editorPart)

unregisterSelectionListener

protected void unregisterSelectionListener(org.eclipse.ui.IEditorPart editorPart)

setActiveEditor

public void setActiveEditor(org.eclipse.ui.IEditorPart editorPart)

run

public void run()

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