Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Georgi2017-09-04 05:15:32 -0400
committerLakshmi Shanmugam2018-01-17 07:02:01 -0500
commit247d7f9a4fdc740d6f8a82838c37cd93fd029b14 (patch)
tree3e9591deb59d101f8aed5182018a7cb02fb85fcc /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa
parent11509fa4f109d7a79da5f9e9fce6d3b1fd75d9b5 (diff)
downloadeclipse.platform.swt-247d7f9a4fdc740d6f8a82838c37cd93fd029b14.tar.gz
eclipse.platform.swt-247d7f9a4fdc740d6f8a82838c37cd93fd029b14.tar.xz
eclipse.platform.swt-247d7f9a4fdc740d6f8a82838c37cd93fd029b14.zip
Bug 525305 - [API]Provide SWT.OpenUrl event
Introduces new SWT.OpenUrl event type. On Mac, the SWT.OpenUrl event will be generated whenever Equinox calls the application:openUrls: selector. One event will be generated for each URL received from OS X. On Windows we emit the OpenUrl event if a valid URL is passed in, otherwise the OpenDocument event is sent, preserving compatibility. (Linux implementation is not included) Bug: 351303 Change-Id: Ic0cce76ce21fed0f2b182d24a29e51b821264093 Signed-off-by: Mads Mætzke Tandrup <mads@maetzke-tandrup.dk> Signed-off-by: Christian Georgi <christian.georgi@sap.com> Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java1
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/Selector.java1
2 files changed, 2 insertions, 0 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 bafc609bfc..0a5b9a36a7 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
@@ -1042,6 +1042,7 @@ 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 a022f3974a..1c098e2399 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
@@ -163,6 +163,7 @@ 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