Author: Grid.Qian
Date: 2011-04-07 05:36:46 -0400 (Thu, 07 Apr 2011)
New Revision: 30406
Modified:
trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java
Log:
JBDS-1573: disable the warning messagedialog when the server status is ok.
Modified:
trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java
===================================================================
---
trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java 2011-04-07
08:11:36 UTC (rev 30405)
+++
trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java 2011-04-07
09:36:46 UTC (rev 30406)
@@ -36,7 +36,6 @@
import org.eclipse.wst.server.core.model.IModuleResourceDelta;
import org.jboss.ide.eclipse.archives.webtools.modules.LocalZippedPublisherUtil;
import org.jboss.ide.eclipse.as.core.JBossServerCorePlugin;
-//import org.jboss.ide.eclipse.as.core.Messages;
import org.jboss.ide.eclipse.as.core.extensions.events.IEventCodes;
import org.jboss.ide.eclipse.as.core.publishers.LocalPublishMethod;
import org.jboss.ide.eclipse.as.core.publishers.PublishUtil;
@@ -107,11 +106,15 @@
//
if (status!=null) {
final IStatus s = status;
- Display.getDefault().syncExec( new Runnable() {
- public void run() {
- MessageDialog.openWarning(Display.getDefault().getActiveShell(),
Messages.DeployError, s.getMessage());
- }
- });
+ if (!s.isOK()) {
+ Display.getDefault().syncExec(new Runnable() {
+ public void run() {
+ MessageDialog.openWarning(Display.getDefault()
+ .getActiveShell(), Messages.DeployError, s
+ .getMessage());
+ }
+ });
+ }
}
return status == null ? Status.OK_STATUS : status;
}