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:
authorjlanuti2006-04-12 14:04:17 +0000
committerjlanuti2006-04-12 14:04:17 +0000
commit8621ac790169b97a872307bf1c99912bbb3c34e7 (patch)
treef0f9247468f095d2ab4aacaa61c5a5cb8afa20fc /plugins/org.eclipse.wst.web.ui/static_web_ui/org/eclipse/wst/web/ui/internal/wizards/NewProjectDataModelFacetWizard.java
parent1b924b87ae1f51e6e30318950512fda99b0d1f0b (diff)
downloadwebtools.javaee-8621ac790169b97a872307bf1c99912bbb3c34e7.tar.gz
webtools.javaee-8621ac790169b97a872307bf1c99912bbb3c34e7.tar.xz
webtools.javaee-8621ac790169b97a872307bf1c99912bbb3c34e7.zip
[136213] fix for perspective switching
Diffstat (limited to 'plugins/org.eclipse.wst.web.ui/static_web_ui/org/eclipse/wst/web/ui/internal/wizards/NewProjectDataModelFacetWizard.java')
-rw-r--r--plugins/org.eclipse.wst.web.ui/static_web_ui/org/eclipse/wst/web/ui/internal/wizards/NewProjectDataModelFacetWizard.java38
1 files changed, 19 insertions, 19 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 7e2cbbb5d..d4169df08 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
@@ -27,7 +27,6 @@ import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.IWizardPage;
-import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.ui.INewWizard;
@@ -196,16 +195,26 @@ public abstract class NewProjectDataModelFacetWizard extends AddRemoveFacetsWiza
final Set fixed = this.template.getFixedProjectFacets();
this.fproj.setFixedProjectFacets(fixed);
-
- try {
- postPerformFinish();
- } catch (InvocationTargetException e) {
- Logger.logException(e);
- }
} finally {
monitor.done();
}
}
+
+ public boolean performFinish()
+ {
+ if( super.performFinish() == false )
+ {
+ return false;
+ }
+
+ try {
+ postPerformFinish();
+ } catch (InvocationTargetException e) {
+ Logger.logException(e);
+ }
+
+ return true;
+ }
/**
* <p>
@@ -299,18 +308,9 @@ public abstract class NewProjectDataModelFacetWizard extends AddRemoveFacetsWiza
return super.getAttribute(aName);
}
};
- Display.getDefault().asyncExec(new Runnable() {
- public void run() {
- BasicNewProjectResourceWizard.updatePerspective(element);
- }
- });
- } else {
- Display.getDefault().asyncExec(new Runnable() {
- public void run() {
- BasicNewProjectResourceWizard.updatePerspective(configurationElement);
- }
- });
- }
+ BasicNewProjectResourceWizard.updatePerspective(element);
+ } else
+ BasicNewProjectResourceWizard.updatePerspective(configurationElement);
String projName = getProjectName();
BasicNewResourceWizard.selectAndReveal(ResourcesPlugin.getWorkspace().getRoot().getProject(projName), WSTWebUIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow());

Back to the top