summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosendo Martinez2013-02-27 17:51:57 (EST)
committer Roberto Sanchez2013-02-27 17:51:57 (EST)
commit968520705ed7d621ef7f37155a1d3f74a58d6979 (patch)
treeff1fddb52530cdead9de98b8f2caf6f28315d0c2
parent638c52c3b12600f6a3b0ef2e3995c623e8f452f2 (diff)
downloadwebtools.javaee-968520705ed7d621ef7f37155a1d3f74a58d6979.zip
webtools.javaee-968520705ed7d621ef7f37155a1d3f74a58d6979.tar.gz
webtools.javaee-968520705ed7d621ef7f37155a1d3f74a58d6979.tar.bz2
[401128] Server starts unnecessarily when removing projects from the workspacev201302272330
-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..cea0553 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.700.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) {