Author: adietish
Date: 2011-06-01 09:21:55 -0400 (Wed, 01 Jun 2011)
New Revision: 31730
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBoss7ServerBehavior.java
Log:
[JBIDE-9050] added possible solution to the comments
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBoss7ServerBehavior.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBoss7ServerBehavior.java 2011-06-01
12:07:03 UTC (rev 31729)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBoss7ServerBehavior.java 2011-06-01
13:21:55 UTC (rev 31730)
@@ -110,6 +110,17 @@
@Override
protected void publishModule(int kind, int deltaKind, IModule[] module, IProgressMonitor
monitor)
throws CoreException {
+/* fix for JBIDE-
+* if (method == null)
+* throw new CoreException(new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID,
"Not publishing")); //$NON-NLS-1$
+* try {
+* int result = method.publishModule(this, kind, deltaKind, module, monitor);
+* setModulePublishState(module, result);
+* } catch(CoreException e) {
+* setModulePublishState(module, IServer.PUBLISH_STATE_FULL);
+* throw e;
+* }
+*/
if (method == null)
throw new CoreException(new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID,
"Not publishing")); //$NON-NLS-1$
int result = method.publishModule(this, kind, deltaKind, module, monitor);
Show replies by date