diff options
3 files changed, 0 insertions, 18 deletions
diff --git a/features/org.eclipse.equinox.executable.feature/library/cocoa/build.sh b/features/org.eclipse.equinox.executable.feature/library/cocoa/build.sh index c457ba75a..c457ba75a 100644..100755 --- a/features/org.eclipse.equinox.executable.feature/library/cocoa/build.sh +++ b/features/org.eclipse.equinox.executable.feature/library/cocoa/build.sh diff --git a/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c b/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c index cc8e9c100..e93adb197 100644 --- a/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c +++ b/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c @@ -100,8 +100,6 @@ static NSWindow* window = nil; } + (int)show: (NSString *) featureImage { - [[NSApplication sharedApplication] setActivationPolicy: NSApplicationActivationPolicyRegular]; - [[NSRunningApplication currentApplication] activateWithOptions: NSApplicationActivateIgnoringOtherApps]; if (window != NULL) return 0; /*already showing */ if (featureImage == NULL) diff --git a/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaCommon.c b/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaCommon.c index 91fb2cb98..34aadbaf2 100644 --- a/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaCommon.c +++ b/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaCommon.c @@ -29,17 +29,6 @@ char pathSeparator = ':'; static CFBundleRef javaVMBundle = NULL; -int initialized = 0; - -static void init() { - if (!initialized) { - [[NSApplication sharedApplication] setActivationPolicy: NSApplicationActivationPolicyRegular]; - [[NSRunningApplication currentApplication] activateWithOptions: NSApplicationActivateIgnoringOtherApps]; - initialized= true; - } -} - - /* Initialize Window System * * Initialize Cocoa. @@ -51,9 +40,6 @@ int initWindowSystem( int* pArgc, char* argv[], int showSplash ) if (homeDir != NULL) chdir(homeDir); - if (showSplash) - init(); - return 0; } @@ -79,8 +65,6 @@ void displayMessage(char *title, char *message) inError= CFStringCreateWithCString(kCFAllocatorDefault, message, kCFStringEncodingUTF8); } - init(); - NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; NSAlert* alert = [NSAlert alertWithMessageText: (NSString*)(inDescription != nil ? inError : nil) defaultButton: nil alternateButton: nil otherButton: nil informativeTextWithFormat: (NSString*)(inDescription != nil ? inDescription : inError)]; [[alert window] setTitle: [NSString stringWithUTF8String: title]]; |