KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > bull > eclipse > jonas > CreateEAR


1
2 package com.bull.eclipse.jonas;
3
4 import org.eclipse.jface.viewers.StructuredSelection;
5 import org.eclipse.jface.wizard.WizardDialog;
6 import org.eclipse.ui.PlatformUI;
7
8 import com.bull.eclipse.jonas.actions.JonasProjectAbstractActionDelegate;
9 import com.bull.eclipse.jonas.wizard.CreateEARWizard;
10
11
12 public class CreateEAR extends JonasProjectAbstractActionDelegate
13 {
14     public boolean doActionOn( JonasProject p )
15     {
16         CreateEARWizard wiz = new CreateEARWizard();
17         wiz.init( PlatformUI.getWorkbench(), new StructuredSelection(p) );
18         WizardDialog dialog = new WizardDialog(
19             PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
20             wiz );
21         dialog.open();
22         return false;
23     }
24
25 }
26
27
Popular Tags