Author: rob.stryker(a)jboss.com
Date: 2007-09-24 10:59:09 -0400 (Mon, 24 Sep 2007)
New Revision: 3769
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/ModuleViewProvider.java
Log:
error on remove module for non-jbossas servers
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/ModuleViewProvider.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/ModuleViewProvider.java 2007-09-24
14:53:24 UTC (rev 3768)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/ModuleViewProvider.java 2007-09-24
14:59:09 UTC (rev 3769)
@@ -75,12 +75,13 @@
Thread t = new Thread() { public void run() {
try {
IServerWorkingCopy server = selection.server.createWorkingCopy();
- IServer server2 = server.save(true, null);
if( ServerConverter.getDeployableServer(selection.server) != null ) {
ServerConverter.getDeployableServerBehavior(selection.server)
.publishOneModule(IServer.PUBLISH_FULL, selection.module,
ServerBehaviourDelegate.REMOVED, new NullProgressMonitor());
} else {
+ ServerUtil.modifyModules(server, new IModule[0], selection.module, new
NullProgressMonitor());
+ IServer server2 = server.save(true, null);
server2.publish(IServer.PUBLISH_INCREMENTAL, new NullProgressMonitor());
}
} catch (Exception e) {
Show replies by date