| author | Rosendo Martinez | 2013-02-27 17:51:57 (EST) |
|---|---|---|
| committer | Roberto Sanchez | 2013-02-27 17:51:57 (EST) |
| commit | 968520705ed7d621ef7f37155a1d3f74a58d6979 (patch) (side-by-side diff) | |
| tree | ff1fddb52530cdead9de98b8f2caf6f28315d0c2 | |
| parent | 638c52c3b12600f6a3b0ef2e3995c623e8f452f2 (diff) | |
| download | webtools.javaee-968520705ed7d621ef7f37155a1d3f74a58d6979.zip webtools.javaee-968520705ed7d621ef7f37155a1d3f74a58d6979.tar.gz webtools.javaee-968520705ed7d621ef7f37155a1d3f74a58d6979.tar.bz2 | |
[401128] Server starts unnecessarily when removing projects from the workspacev201302272330
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) { |

