blob: 7790a8b35b656f1e12bfc882afee28e10d630e99 [file] [log] [blame]
package org.eclipse.opencert.lines.actions;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.opencert.lines.wizards.OpenWizard;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
import org.eclipse.ui.PlatformUI;
/**
* Invokes the Publish Method Configuration wizard.
*
* @author Kelvin Low
* @author Jinhua Xi
* @since 1.0
*/
public class OpenLibraryAction implements IWorkbenchWindowActionDelegate {
/**
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(IWorkbenchWindow)
*/
public void init(IWorkbenchWindow window) {
}
/**
* @see org.eclipse.ui.IActionDelegate#run(IAction)
*/
public void run(IAction action) {
try {
OpenWizard wizard = new OpenWizard();
wizard.init(PlatformUI.getWorkbench(), null);
// Instantiate the wizard container with the wizard and open it.
WizardDialog dialog = new WizardDialog(Display.getCurrent()
.getActiveShell(), wizard);
dialog.create();
dialog.open();
} catch (Exception e) {
}
}
/**
* @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
*/
public void selectionChanged(IAction action, ISelection selection) {
}
/**
* @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
*/
public void dispose() {
}
}