Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-02-05 11:40:23 -0500
committerCamille Letavernier2014-02-05 11:40:23 -0500
commit3d1f1f7e8dc12e4c27ef2d2c243a1473e8185d61 (patch)
tree52a97f6dbbecee554b23258bea0ac089c1a7805a
parentb2dae07ce495f90e19a6e4486d7b0d1a6fca56d0 (diff)
downloadorg.eclipse.papyrus-3d1f1f7e8dc12e4c27ef2d2c243a1473e8185d61.tar.gz
org.eclipse.papyrus-3d1f1f7e8dc12e4c27ef2d2c243a1473e8185d61.tar.xz
org.eclipse.papyrus-3d1f1f7e8dc12e4c27ef2d2c243a1473e8185d61.zip
[Tests jobs] Tentative to fix maintenance tests job on Hudson. Avoid
restarting an editor when the platform is shutting down
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/services/ResourceUpdateService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/services/ResourceUpdateService.java b/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/services/ResourceUpdateService.java
index 5c9429e4afd..6f8789309ad 100644
--- a/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/services/ResourceUpdateService.java
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/services/ResourceUpdateService.java
@@ -122,7 +122,7 @@ public class ResourceUpdateService implements IService, IPartListener {
Runnable closeEditorRunnable = new Runnable() {
public void run() {
- if (PlatformUI.getWorkbench() == null || PlatformUI.getWorkbench().isClosing()){
+ if (! PlatformUI.isWorkbenchRunning()){
return;
}
final IWorkbenchPage page = editor.getSite().getPage();
@@ -139,7 +139,7 @@ public class ResourceUpdateService implements IService, IPartListener {
Display.getCurrent().asyncExec(new Runnable() {
public void run() {
- if (PlatformUI.getWorkbench() == null || PlatformUI.getWorkbench().isClosing()){
+ if (! PlatformUI.isWorkbenchRunning()){
return;
}
try {

Back to the top