Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2018-01-30 01:01:04 -0500
committerLakshmi Shanmugam2018-01-30 01:01:04 -0500
commit52427fafaff0c4bede7c1758704c8800d97dba07 (patch)
treefa6e6f492f3fdc8fa8b5b4410dd3428aec3e12f3
parent6390a177267f546216042e4089f26238452c45a3 (diff)
downloadeclipse.platform.swt-52427fafaff0c4bede7c1758704c8800d97dba07.tar.gz
eclipse.platform.swt-52427fafaff0c4bede7c1758704c8800d97dba07.tar.xz
eclipse.platform.swt-52427fafaff0c4bede7c1758704c8800d97dba07.zip
Bug 525305: [API]Provide SWT.OpenUrl event
application:openUrls: is a custom selector, move it out of the auto-generated function. Otherwise, it'll be removed by the MacGenerator. Change-Id: Icbb26c1e0abc9340798dc1c39f2cbf217deceea2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/Selector.java4
2 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
index 0a5b9a36a7..3ab61a3d9d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
@@ -133,6 +133,9 @@ public class OS extends C {
public static final long /*int*/ sel_beginSheetModalForWindow_completionHandler_ = Selector.sel_beginSheetModalForWindow_completionHandler_.value;
+ /** custom selector for SWT.OpenUrl event, also used in the launcher **/
+ public static final long /*int*/ sel_application_openUrls_ = Selector.sel_application_openUrls_.value;
+
/** non-API selector for NSCursor **/
public static final long /*int*/ sel_busyButClickableCursor = Selector.sel_busyButClickableCursor.value;
@@ -1042,7 +1045,6 @@ public static final long /*int*/ sel_appendBezierPathWithRoundedRect_xRadius_yRa
public static final long /*int*/ sel_appendString_ = Selector.sel_appendString_.value;
public static final long /*int*/ sel_application_openFile_ = Selector.sel_application_openFile_.value;
public static final long /*int*/ sel_application_openFiles_ = Selector.sel_application_openFiles_.value;
-public static final long /*int*/ sel_application_openUrls_ = Selector.sel_application_openUrls_.value;
public static final long /*int*/ sel_applicationDidBecomeActive_ = Selector.sel_applicationDidBecomeActive_.value;
public static final long /*int*/ sel_applicationDidFinishLaunching_ = Selector.sel_applicationDidFinishLaunching_.value;
public static final long /*int*/ sel_applicationDidResignActive_ = Selector.sel_applicationDidResignActive_.value;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/Selector.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/Selector.java
index 1c098e2399..fa99603993 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/Selector.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/Selector.java
@@ -54,6 +54,9 @@ public enum Selector {
, sel_beginSheetModalForWindow_completionHandler_("beginSheetModalForWindow:completionHandler:")
+ /** custom selector for SWT.OpenUrl event, also used in the launcher **/
+ , sel_application_openUrls_("application:openUrls:")
+
/** non-API selector for NSCursor **/
, sel_busyButClickableCursor("busyButClickableCursor")
@@ -163,7 +166,6 @@ public enum Selector {
, sel_appendString_("appendString:")
, sel_application_openFile_("application:openFile:")
, sel_application_openFiles_("application:openFiles:")
- , sel_application_openUrls_("application:openUrls:")
, sel_applicationDidBecomeActive_("applicationDidBecomeActive:")
, sel_applicationDidFinishLaunching_("applicationDidFinishLaunching:")
, sel_applicationDidResignActive_("applicationDidResignActive:")

Back to the top