Author: adietish
Date: 2012-05-16 18:14:27 -0400 (Wed, 16 May 2012)
New Revision: 41094
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/SelectExistingProjectDialog.java
Log:
removed comments
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/SelectExistingProjectDialog.java
===================================================================
---
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/SelectExistingProjectDialog.java 2012-05-16
22:13:50 UTC (rev 41093)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/SelectExistingProjectDialog.java 2012-05-16
22:14:27 UTC (rev 41094)
@@ -15,7 +15,6 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.graphics.Image;
@@ -23,7 +22,6 @@
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.ElementListSelectionDialog;
import org.eclipse.ui.ide.IDE.SharedImages;
-import org.eclipse.wst.common.componentcore.internal.util.IModuleConstants;
import org.jboss.tools.openshift.egit.core.EGitUtils;
/**
@@ -35,7 +33,6 @@
super(shell, new ProjectLabelProvider());
setTitle("Select Existing Project");
setMessage(NLS.bind(
-// "Select an existing project for {0}.\nOnly Dynamic Web/Eclipse WTP projects
can be used.",
"Select an existing project for {0}.\nOnly non-shared projects or Git projects
allowed.",
openShiftAppName));
setMultipleSelection(false);
@@ -60,22 +57,9 @@
}
}
-// we now accept all projects, not just WTP
-// if (!hasModuleNature(project)) {
-// return false;
-// }
-
return true;
}
- private boolean hasModuleNature(IProject project) {
- try {
- return project.hasNature(IModuleConstants.MODULE_NATURE_ID);
- } catch (CoreException e) {
- return false;
- }
- }
-
private static class ProjectLabelProvider extends LabelProvider {
@Override
Show replies by date