summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosendo Martinez2013-03-05 17:30:06 (EST)
committer Roberto Sanchez2013-03-05 17:30:06 (EST)
commita36b7e51a562bdbeb739328819497e19ada44199 (patch)
tree1b4b77ea320b8e14758e76eabd6c63ce62a8ffa8
parentfa593ca356e3f890223efdc35b8d40e41653cc21 (diff)
downloadwebtools.javaee-a36b7e51a562bdbeb739328819497e19ada44199.zip
webtools.javaee-a36b7e51a562bdbeb739328819497e19ada44199.tar.gz
webtools.javaee-a36b7e51a562bdbeb739328819497e19ada44199.tar.bz2
[401742] Server starts unnecessarily when removing projects from the workspacev201303052300
-rw-r--r--plugins/org.eclipse.jst.j2ee/META-INF/MANIFEST.MF2
-rw-r--r--plugins/org.eclipse.jst.j2ee/ltkbasedrefactoring/org/eclipse/jst/javaee/ltk/core/participant/JavaEEServerRefRefactorParticipant.java7
2 files changed, 6 insertions, 3 deletions
diff --git a/plugins/org.eclipse.jst.j2ee/META-INF/MANIFEST.MF b/plugins/org.eclipse.jst.j2ee/META-INF/MANIFEST.MF
index 3c1dfd9..8a65733 100644
--- a/plugins/org.eclipse.jst.j2ee/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.jst.j2ee/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name.0
Bundle-SymbolicName: org.eclipse.jst.j2ee; singleton:=true
-Bundle-Version: 1.1.603.qualifier
+Bundle-Version: 1.1.604.qualifier
Bundle-Activator: org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin
Bundle-Vendor: %Bundle-Vendor.0
Bundle-Localization: plugin
diff --git a/plugins/org.eclipse.jst.j2ee/ltkbasedrefactoring/org/eclipse/jst/javaee/ltk/core/participant/JavaEEServerRefRefactorParticipant.java b/plugins/org.eclipse.jst.j2ee/ltkbasedrefactoring/org/eclipse/jst/javaee/ltk/core/participant/JavaEEServerRefRefactorParticipant.java
index c5284e4..88dbfb2 100644
--- a/plugins/org.eclipse.jst.j2ee/ltkbasedrefactoring/org/eclipse/jst/javaee/ltk/core/participant/JavaEEServerRefRefactorParticipant.java
+++ b/plugins/org.eclipse.jst.j2ee/ltkbasedrefactoring/org/eclipse/jst/javaee/ltk/core/participant/JavaEEServerRefRefactorParticipant.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010, 2012 IBM Corporation and others.
+ * Copyright (c) 2010, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -60,7 +60,10 @@ public class JavaEEServerRefRefactorParticipant extends DeleteParticipant {
try {
if (wc != null) {
IServer newServer = wc.saveAll(true, null);
- newServer.publish(IServer.PUBLISH_INCREMENTAL, new NullProgressMonitor()); // TODO use child progress?
+ int state = newServer.getServerState();
+ if(state == IServer.STATE_STARTED) {
+ newServer.publish(IServer.PUBLISH_INCREMENTAL, new NullProgressMonitor()); // TODO use child progress?
+ }
}
} catch (CoreException ce) {