Author: dennyxu
Date: 2008-10-07 01:19:09 -0400 (Tue, 07 Oct 2008)
New Revision: 10701
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/project/facet/JBossWSPropertyPage.java
Log:
JBIDE-2794: Fix the ws runtime property page and preference error
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/project/facet/JBossWSPropertyPage.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/project/facet/JBossWSPropertyPage.java 2008-10-07
03:26:52 UTC (rev 10700)
+++
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/project/facet/JBossWSPropertyPage.java 2008-10-07
05:19:09 UTC (rev 10701)
@@ -2,6 +2,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.dialogs.PropertyPage;
@@ -26,7 +27,13 @@
@Override
protected Control createContents(Composite parent) {
- project = (IProject)this.getElement();
+ if(this.getElement() instanceof IJavaProject){
+ IJavaProject javaProject = (IJavaProject)this.getElement();
+ project = javaProject.getProject();
+ }else if(this.getElement() instanceof IProject){
+ project = (IProject)this.getElement();
+ }
+
model = (IDataModel)new JBossWSFacetInstallDataModelProvider().create();
try {
String isDeploy =
project.getPersistentProperty(IJBossWSFacetDataModelProperties.PERSISTENCE_PROPERTY_ISDEPLOYED);
Show replies by date