package seco.eclipse;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
/**
* Opens Seco Project View
* @see IWorkbenchWindowActionDelegate
*/
public class SecoProjectAction implements IWorkbenchWindowActionDelegate
{
private IWorkbenchWindow window;
/**
* The constructor.
*/
public SecoProjectAction()
{
}
/**
* @see IWorkbenchWindowActionDelegate#run
*/
public void run(IAction action)
{
PluginU.openSecoView();
}
/**
*
* @see IWorkbenchWindowActionDelegate#selectionChanged
*/
public void selectionChanged(IAction action, ISelection selection)
{
}
/**
* We can use this method to dispose of any system resources we previously
* allocated.
*
* @see IWorkbenchWindowActionDelegate#dispose
*/
public void dispose()
{
}
/**
* We will cache window object in order to be able to provide parent shell
* for the message dialog.
*
* @see IWorkbenchWindowActionDelegate#init
*/
public void init(IWorkbenchWindow window)
{
this.window = window;
}
}
|