diff options
author | Chris Goldthorpe | 2010-12-16 20:51:22 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2010-12-16 20:51:22 +0000 |
commit | 6bc0207e10521e35f647a1ff79c4a363145e1867 (patch) | |
tree | 6f6a98271af1fe586c8b8461d15f8236a787d39e /org.eclipse.help.base/src/org/eclipse/help | |
parent | 58e494c7ff385f30a1a4e160474ca9fd519b8462 (diff) | |
download | eclipse.platform.ua-6bc0207e10521e35f647a1ff79c4a363145e1867.tar.gz eclipse.platform.ua-6bc0207e10521e35f647a1ff79c4a363145e1867.tar.xz eclipse.platform.ua-6bc0207e10521e35f647a1ff79c4a363145e1867.zip |
Bug 57331 - [Help] Closing help browser should shut down standalone help
Diffstat (limited to 'org.eclipse.help.base/src/org/eclipse/help')
-rw-r--r-- | org.eclipse.help.base/src/org/eclipse/help/internal/base/HelpApplication.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/base/HelpApplication.java b/org.eclipse.help.base/src/org/eclipse/help/internal/base/HelpApplication.java index 48fcbf898..7d2aeffed 100644 --- a/org.eclipse.help.base/src/org/eclipse/help/internal/base/HelpApplication.java +++ b/org.eclipse.help.base/src/org/eclipse/help/internal/base/HelpApplication.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2007 IBM Corporation and others. + * Copyright (c) 2000, 2010 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 @@ -37,6 +37,7 @@ public class HelpApplication implements IApplication, IExecutableExtension { private static final int STATE_RUNNING = 1; private static final int STATE_RESTARTING = 2; private static int status = STATE_RUNNING; + private static boolean shutdownOnClose = false; // Shutdown help when the embedded browser is closed private File metadata; private FileLock lock; @@ -167,4 +168,12 @@ public class HelpApplication implements IApplication, IExecutableExtension { public static boolean isRunning() { return status == STATE_RUNNING; } + + public static boolean isShutdownOnClose() { + return shutdownOnClose; + } + + public static void setShutdownOnClose(boolean shutdownOnClose) { + HelpApplication.shutdownOnClose = shutdownOnClose; + } } |