com.ibm.jdg2e.view.files.popup.actions
Class OpenFileView

java.lang.Object
  extended bycom.ibm.jdg2e.view.files.popup.actions.OpenFileView
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IObjectActionDelegate

public class OpenFileView
extends java.lang.Object
implements org.eclipse.ui.IObjectActionDelegate

Action to open additional instances of the FileView part. This allows for unique lists of file content as well as views that are managed differently in other perspectives.


Constructor Summary
OpenFileView()
          Constructor for OpenFileView.
 
Method Summary
 void run(org.eclipse.jface.action.IAction action)
          Obtains an IContainer reference from the selection.
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
          Save selection for use in run if invoked.
 void setActivePart(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenFileView

public OpenFileView()
Constructor for OpenFileView.

Method Detail

run

public void run(org.eclipse.jface.action.IAction action)
Obtains an IContainer reference from the selection. Extension for this pop-up restricts this action to objects than can adapt to IContainer objects. But if the selection contains something that is not already an IContainer then the reference must be converted to an IContainer.

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

selectionChanged

public void selectionChanged(org.eclipse.jface.action.IAction action,
                             org.eclipse.jface.viewers.ISelection selection)
Save selection for use in run if invoked.

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

setActivePart

public void setActivePart(org.eclipse.jface.action.IAction action,
                          org.eclipse.ui.IWorkbenchPart targetPart)
Specified by:
setActivePart in interface org.eclipse.ui.IObjectActionDelegate
See Also:
IObjectActionDelegate.setActivePart(IAction, IWorkbenchPart)