pl.edu.agh.cast.backward.editor.action
Class AbstractOpenEditorAction

java.lang.Object
  extended by pl.edu.agh.cast.backward.editor.action.AbstractOpenEditorAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate

public abstract class AbstractOpenEditorAction
extends Object
implements org.eclipse.ui.IWorkbenchWindowActionDelegate

Abstract action for opening editors.

Author:
AGH CAST Team

Constructor Summary
AbstractOpenEditorAction(String id)
          Initializes the action with Id of the editor to open.
 
Method Summary
 void dispose()
          
 void init(org.eclipse.ui.IWorkbenchWindow window)
          
 void run(org.eclipse.jface.action.IAction action)
          
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOpenEditorAction

public AbstractOpenEditorAction(String id)
Initializes the action with Id of the editor to open.

Parameters:
id - Id of the editor to open
Method Detail

dispose

public void dispose()

Specified by:
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
See Also:
IWorkbenchWindowActionDelegate.dispose()

init

public void init(org.eclipse.ui.IWorkbenchWindow window)

Specified by:
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
See Also:
IWorkbenchWindowActionDelegate.init(org.eclipse.ui.IWorkbenchWindow)

run

public void run(org.eclipse.jface.action.IAction action)

Specified by:
run in interface org.eclipse.ui.IActionDelegate
See Also:
IActionDelegate.run(org.eclipse.jface.action.IAction)

selectionChanged

public void selectionChanged(org.eclipse.jface.action.IAction action,
                             org.eclipse.jface.viewers.ISelection selection)

Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate
See Also:
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.