Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Need to launch the "Generate Java Bean Skeleton" Wizard
Need to launch the "Generate Java Bean Skeleton" Wizard [message #212862] Wed, 23 April 2008 19:19
Jason Henriksen is currently offline 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
Previous Topic:Dynamic web projects
Next Topic:Difficulties with StructuredTextEditor in a MultiPageEditorPart
Goto Forum:
  


Current Time: Thu Oct 30 13:45:41 GMT 2014

Powered by FUDForum. Page generated in 0.07551 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software