01: package nz.ac.massey.take.takeep.actionsSets.compileActions;
02:
03: import nz.ac.massey.take.takeep.actionsSets.TakeAbstractAction;
04: import nz.ac.massey.take.takeep.actionsSets.wizards.TakeCompilerWizard;
05:
06: import org.eclipse.jface.wizard.WizardDialog;
07: import org.eclipse.swt.widgets.Shell;
08: import org.eclipse.ui.PlatformUI;
09:
10: public class TakeCompileToInterfaces extends TakeAbstractAction {
11:
12: @Override
13: protected String getImageLocation() {
14: return "icons/fishhookInt.JPG";
15: }
16:
17: @Override
18: protected String getToolTip() {
19: return "Compile to Interfaces";
20: }
21:
22: @Override
23: public void run() {
24: TakeCompilerWizard wizard = new TakeCompilerWizard(true);
25: wizard.getWp().setTitle(getToolTip());
26: Shell shell = PlatformUI.getWorkbench()
27: .getActiveWorkbenchWindow().getShell();
28: WizardDialog dialog = new WizardDialog(shell, wizard);
29: dialog.create();
30: dialog.open();
31: }
32:
33: }
|