Author: rob.stryker(a)jboss.com
Date: 2007-09-20 19:26:55 -0400 (Thu, 20 Sep 2007)
New Revision: 3740
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/ModuleViewProvider.java
Log:
Ensuring modules are added appropriately to the list of modules
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-20
23:26:50 UTC (rev 3739)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/ModuleViewProvider.java 2007-09-20
23:26:55 UTC (rev 3740)
@@ -72,20 +72,22 @@
deleteModuleAction = new Action() {
public void run() {
if (MessageDialog.openConfirm(new Shell(), Messages.ServerDialogHeading,
Messages.DeleteModuleConfirm)) {
- try {
- IServerWorkingCopy server = selection.server.createWorkingCopy();
- ServerUtil.modifyModules(server, null, selection.module, new
NullProgressMonitor());
- 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 {
- server2.publish(IServer.PUBLISH_INCREMENTAL, new NullProgressMonitor());
+ 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 {
+ server2.publish(IServer.PUBLISH_INCREMENTAL, new NullProgressMonitor());
+ }
+ } catch (Exception e) {
+ // ignore
}
- } catch (Exception e) {
- // ignore
- }
+ }};
+ t.start();
}
}
};
@@ -171,7 +173,7 @@
}
return ms2;
} catch (Exception e) {
- return null;
+ return new Object[]{};
}
}
@@ -186,7 +188,7 @@
}
return ms;
}
- return null;
+ return new Object[] {};
}
public Object getParent(Object element) {
Show replies by date