Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcbridgha2005-11-15 20:26:11 +0000
committercbridgha2005-11-15 20:26:11 +0000
commit19023a446a64db539a09614f4b0092083029b791 (patch)
tree26d142bfd04ef0dd3540e7c2986501ec10b3c38e /plugins/org.eclipse.wst.web.ui/static_web_ui/org/eclipse/wst
parent19543323b0b9b6b30fd1643213b9881b6f650e39 (diff)
downloadwebtools.javaee-19023a446a64db539a09614f4b0092083029b791.tar.gz
webtools.javaee-19023a446a64db539a09614f4b0092083029b791.tar.xz
webtools.javaee-19023a446a64db539a09614f4b0092083029b791.zip
[nobug] JS set fixed facets.
Diffstat (limited to 'plugins/org.eclipse.wst.web.ui/static_web_ui/org/eclipse/wst')
-rw-r--r--plugins/org.eclipse.wst.web.ui/static_web_ui/org/eclipse/wst/web/ui/internal/wizards/NewProjectDataModelFacetWizard.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/org.eclipse.wst.web.ui/static_web_ui/org/eclipse/wst/web/ui/internal/wizards/NewProjectDataModelFacetWizard.java b/plugins/org.eclipse.wst.web.ui/static_web_ui/org/eclipse/wst/web/ui/internal/wizards/NewProjectDataModelFacetWizard.java
index 556402d23..de76d72ef 100644
--- a/plugins/org.eclipse.wst.web.ui/static_web_ui/org/eclipse/wst/web/ui/internal/wizards/NewProjectDataModelFacetWizard.java
+++ b/plugins/org.eclipse.wst.web.ui/static_web_ui/org/eclipse/wst/web/ui/internal/wizards/NewProjectDataModelFacetWizard.java
@@ -20,6 +20,7 @@ import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
+import org.eclipse.jem.util.logger.proxy.Logger;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.IWizardPage;
@@ -142,7 +143,12 @@ public abstract class NewProjectDataModelFacetWizard extends AddRemoveFacetsWiza
try {
FacetProjectCreationOperation operation = new FacetProjectCreationOperation(model);
this.fproj = operation.createProject(new NullProgressMonitor());
- return super.performFinish();
+ boolean success = super.performFinish();
+ if(success){
+ final Set fixed = this.template.getFixedProjectFacets();
+ this.fproj.setFixedProjectFacets( fixed );
+ }
+ return success;
} catch (CoreException e) {
e.printStackTrace();
@@ -150,8 +156,7 @@ public abstract class NewProjectDataModelFacetWizard extends AddRemoveFacetsWiza
try {
postPerformFinish();
} catch (InvocationTargetException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ Logger.getLogger().logError(e);
}
}
}

Back to the top