Author: adietish
Date: 2012-01-09 05:25:30 -0500 (Mon, 09 Jan 2012)
New Revision: 37715
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/appimport/ImportProjectWizard.java
Log:
corrected message that was displayed when project is already present from warning to error
message
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/appimport/ImportProjectWizard.java
===================================================================
---
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/appimport/ImportProjectWizard.java 2012-01-09
09:44:24 UTC (rev 37714)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/appimport/ImportProjectWizard.java 2012-01-09
10:25:30 UTC (rev 37715)
@@ -93,16 +93,6 @@
return confirmed[0];
}
- private void openWarning(final String title, final String message) {
- getShell().getDisplay().syncExec(new Runnable() {
-
- @Override
- public void run() {
- MessageDialog.openWarning(getShell(), title, message);
- }
- });
- }
-
@Override
public void addPages() {
this.model = new ImportProjectWizardModel();
@@ -152,7 +142,7 @@
return Status.OK_STATUS;
} catch (final WontOverwriteException e) {
- openWarning("Project already present", e.getMessage());
+ openError("Project already present", e.getMessage());
return Status.CANCEL_STATUS;
} catch (final ImportFailedException e) {
return OpenShiftUIActivator.createErrorStatus(
@@ -188,4 +178,15 @@
}
}
}
+
+ private void openError(final String title, final String message) {
+ getShell().getDisplay().syncExec(new Runnable() {
+
+ @Override
+ public void run() {
+ MessageDialog.openError(getShell(), title, message);
+ }
+ });
+ }
+
}
Show replies by date