JBoss Community

Re: How to create seam web project programmatically?

created by Alexey Kazakov in JBoss Tools - View the full discussion

You should use model of Seam facet instead of Seam wizard:

...

Set<Action> actions = wizard.getFacetedProjectWorkingCopy().getProjectFacetActions();

for (Action action : actions) {

       if(ISeamFacetDataModelProperties.SEAM_FACET_ID.equals(action.getProjectFacetVersion().getProjectFacet().getId())) {

            IDataModel seamFacetModel = (IDataModel)action.getConfig();

            ejbProjectName = seamFacetModel.getStringProperty(ISeamFacetDataModelProperties.SEAM_EJB_PROJECT);

            break;

       }

}

 

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community