Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Voormann2014-01-30 10:48:03 +0000
committerSilenio Quarti2014-04-11 19:54:08 +0000
commitf5cc9d2132b31e7eb4fce3d0c8605640f77f7f41 (patch)
tree18b65aa31d98f61a033e2b1f1e1d0981f1260552
parenta297f15ba2a0c91dc0664dd7af461e239c7b413e (diff)
downloadrt.equinox.framework-f5cc9d2132b31e7eb4fce3d0c8605640f77f7f41.tar.gz
rt.equinox.framework-f5cc9d2132b31e7eb4fce3d0c8605640f77f7f41.tar.xz
rt.equinox.framework-f5cc9d2132b31e7eb4fce3d0c8605640f77f7f41.zip
Bug 384950 - Windows 7: if open a file via --launcher.openFile in an
already running application, the window isn't brought to front Adding "SetForegroundWindow(window);" at the end of "sendOpenFileMessage(HWND window)" solves this issue. A fixed version of "eclipse_1503.dll" was created by Silenio Quarti (see http://eclip.se/384950#c5) and has been successfully tested and used in production by Advantest (with an Eclipse RCP Windows 32-bit application) for more than a year. Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=384950 Signed-off-by: Holger Voormann <eclipse@voormann.de>
-rw-r--r--features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c b/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c
index 387576994..1e9c1c8e0 100644
--- a/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c
+++ b/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c
@@ -8,6 +8,7 @@
* Contributors:
* IBM Corporation - initial API and implementation
* Kevin Cornell (Rational Software Corporation)
+ * Holger Voormann - fix for bug 384950 (http://eclip.se/384950)
*******************************************************************************/
#include "eclipseOS.h"
@@ -111,6 +112,7 @@ static void sendOpenFileMessage(HWND window) {
}
destroySharedData(id);
free(id);
+ SetForegroundWindow(window);
}
static HWND findSWTMessageWindow() {

Back to the top