Need to launch the "Generate Java Bean Skeleton" Wizard [message #212862] |
Wed, 23 April 2008 19:19 |
Jason Henriksen Messages: 231 Registered: July 2009 |
Senior Member |
|
|
Hi All,
For creating a new Dynamic Web Project I can just launch the wizard.
This is nice because sometimes in my tooling I need the user to select a
project and if they want to start a new project I just launch the wizard.
Now I'm in the same position with generating the bean skeleton. I've
done all the tooling for my WSDL, I need to launch the skeleton wizard
and then handle some tasks when that is done.
The problem is that I can't figure out how to launch the blinking wizard!
Here's how I do it for the Dynamic Web Project:
========================
try{
//org.eclipse.jst.servlet.ui.project.facet.
WebProjectWizard wpw = new WebProjectWizard();
org.eclipse.wst.common.frameworks.datamodel.IDataModel dm =
wpw.getDataModel();
dm.setProperty("IProjectCreationPropertiesNew.PROJECT_NAME", inputName);
dm.setProperty(" IJ2EEFacetProjectCreationDataModelProperties.EAR_PROJECT_NAM E ",inputName+"EAR");
final Listener l = new Listener () {
public void handleEvent (Event event) {
WSDLTool.confirmedSetProject(projectName);
}
};
WizardDialog dialog = new WizardDialog(shell, wpw) {
@Override
protected void createButtonsForButtonBar(Composite parent) {
super.createButtonsForButtonBar(parent);
Button finishButton = getButton(IDialogConstants.FINISH_ID);
finishButton.setText(IDialogConstants.OK_LABEL);
finishButton.addListener(SWT.Selection,l);
}
};
dialog.open();
}
catch(Exception e){
e.printStackTrace();
}
========================
Thanks!
Jason
|
|
|
Powered by
FUDForum. Page generated in 0.01416 seconds