Author: akazakov
Date: 2012-01-06 14:51:05 -0500 (Fri, 06 Jan 2012)
New Revision: 37696
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/CDIProjectWizard.java
Log:
https://issues.jboss.org/browse/JBIDE-8464 Ensure that the Seam Project wizard opens the
Seam perspective with the Web Development perspective as preferred
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/CDIProjectWizard.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/CDIProjectWizard.java 2012-01-06
19:49:53 UTC (rev 37695)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/CDIProjectWizard.java 2012-01-06
19:51:05 UTC (rev 37696)
@@ -15,6 +15,7 @@
import java.util.Set;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IExecutableExtension;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.jst.servlet.ui.project.facet.WebProjectFirstPage;
@@ -35,7 +36,7 @@
/**
* @author Alexey Kazakov
*/
-public class CDIProjectWizard extends WebProjectWizard {
+public class CDIProjectWizard extends WebProjectWizard implements IExecutableExtension {
private static final String CDI_TEMPALTE = "template.jboss.tools.cdi10";
private IPreset oldPreset;
@@ -113,6 +114,15 @@
return CDIImages.getImageDescriptor(CDIImages.WELD_WIZARD_IMAGE_PATH);
}
+ /*
+ * (non-Javadoc)
+ * @see
org.eclipse.jst.servlet.ui.project.facet.WebProjectWizard#getFinalPerspectiveID()
+ */
+ @Override
+ protected String getFinalPerspectiveID() {
+ return null;
+ }
+
class FirstPage extends WebProjectFirstPage {
public FirstPage(IDataModel model, String pageName) {