JBoss Community

Re: How to create seam web project programmatically?

created by Tamas Szabo in JBoss Tools - View the full discussion

Hi!

 

I have created my web project with this code segment finally:

 

SeamProjectWizard wizard = new SeamProjectWizard();

wizard.init(PlatformUI.getWorkbench(), null);

WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wizard);

dialog.open();

       

        if (dialog.getReturnCode() == Dialog.OK) {

           

            try {

                ejbProjectName = wizard.getDataModel().getStringProperty(ISeamFacetDataModelProperties.SEAM_EJB_PROJECT);

                System.out.println("ejb project name "+ejbProjectName);

            }

...

 

I want to retrieve the ejb project's name, but I get an exception using the above. Can someone suggest a solution?

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community