Author: rob.stryker(a)jboss.com
Date: 2012-05-04 01:22:09 -0400 (Fri, 04 May 2012)
New Revision: 40780
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/DeployAction.java
Log:
JBIDE-10551 using MessageDialog.openConfirm()
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/DeployAction.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/DeployAction.java 2012-05-04
02:48:22 UTC (rev 40779)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/DeployAction.java 2012-05-04
05:22:09 UTC (rev 40780)
@@ -51,7 +51,6 @@
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.ui.IObjectActionDelegate;
@@ -169,14 +168,10 @@
projs += i.next().getName() + ", "; //$NON-NLS-1$
projs = projs.substring(0, projs.length() - 2);
- int style = SWT.OK | SWT.CANCEL;
- MessageBox messageBox = new MessageBox(Display.getCurrent().getActiveShell(), style);
- messageBox.setText(ServerActionMessages.DeployActionMessageBoxTitle);
- messageBox.setMessage(ServerActionMessages.DeployActionMessageBoxMsg);
- if (messageBox.open() == SWT.OK) {
- return true;
- }
- return false;
+ boolean ret = MessageDialog.openConfirm(Display.getCurrent().getActiveShell(),
+ ServerActionMessages.DeployActionMessageBoxTitle,
+ ServerActionMessages.DeployActionMessageBoxMsg);
+ return ret;
}
protected void makeUndeployable() {
Show replies by date