[jbosstools-commits] JBoss Tools SVN: r39396 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Mar 8 19:54:06 EST 2012


Author: adietish
Date: 2012-03-08 19:54:06 -0500 (Thu, 08 Mar 2012)
New Revision: 39396

Modified:
   trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java
Log:
corrected erroneous instance of check (checking for IUser and casting to UserDelegate right afterwards)

Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java	2012-03-09 00:30:41 UTC (rev 39395)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java	2012-03-09 00:54:06 UTC (rev 39396)
@@ -44,7 +44,6 @@
 
 import com.openshift.express.client.IApplication;
 import com.openshift.express.client.IEmbeddableCartridge;
-import com.openshift.express.client.IUser;
 import com.openshift.express.client.OpenShiftEndpointException;
 import com.openshift.express.client.OpenShiftException;
 
@@ -118,7 +117,7 @@
 	@Override
 	public void init(IWorkbench workbench, IStructuredSelection selection) {
 		Object o = selection.getFirstElement();
-		if (o instanceof IUser) {
+		if (o instanceof UserDelegate) {
 			setUser((UserDelegate) o);
 		}
 	}
@@ -324,5 +323,4 @@
 	public void dispose() {
 		wizardModel.dispose();
 	}
-
 }



More information about the jbosstools-commits mailing list