aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2010-12-10 10:33:33 +0000
committerDamian Minkov <damencho@jitsi.org>2010-12-10 10:33:33 +0000
commita7d6c096611f515f3f1414206a127387c0e6171f (patch)
tree83f9ffbc204b6e8dfcb545baf84eb0fdb30be331
parent6e7b19d72b574a79b8d182a9d7f533419e37b70e (diff)
downloadjitsi-a7d6c096611f515f3f1414206a127387c0e6171f.zip
jitsi-a7d6c096611f515f3f1414206a127387c0e6171f.tar.gz
jitsi-a7d6c096611f515f3f1414206a127387c0e6171f.tar.bz2
Update macosx url handler.
-rw-r--r--src/net/java/sip/communicator/impl/argdelegation/ArgDelegationActivator.java19
-rw-r--r--src/net/java/sip/communicator/impl/argdelegation/argdelegation.manifest.mf1
2 files changed, 20 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/argdelegation/ArgDelegationActivator.java b/src/net/java/sip/communicator/impl/argdelegation/ArgDelegationActivator.java
index 49fbd96..0000aac 100644
--- a/src/net/java/sip/communicator/impl/argdelegation/ArgDelegationActivator.java
+++ b/src/net/java/sip/communicator/impl/argdelegation/ArgDelegationActivator.java
@@ -12,6 +12,9 @@ import net.java.sip.communicator.util.launchutils.*;
import org.osgi.framework.*;
+import com.apple.eawt.AppEvent.*;
+import com.apple.eawt.*;
+
/**
* Activates the <tt>ArgDelegationService</tt> and registers a URI delegation
* peer with the util package arg manager so that we would be notified when the
@@ -55,6 +58,22 @@ public class ArgDelegationActivator
//register our instance of delegation peer.
LaunchArgHandler.getInstance().setDelegationPeer(delegationPeer);
+
+ if(OSUtils.IS_MAC)
+ {
+ Application application = Application.getApplication();
+
+ if(application != null)
+ {
+ application.setOpenURIHandler(new OpenURIHandler() {
+
+ public void openURI(OpenURIEvent evt)
+ {
+ delegationPeer.handleUri(evt.getURI().toString());
+ }
+ });
+ }
+ }
}
/**
diff --git a/src/net/java/sip/communicator/impl/argdelegation/argdelegation.manifest.mf b/src/net/java/sip/communicator/impl/argdelegation/argdelegation.manifest.mf
index 2c01428..2ad388b 100644
--- a/src/net/java/sip/communicator/impl/argdelegation/argdelegation.manifest.mf
+++ b/src/net/java/sip/communicator/impl/argdelegation/argdelegation.manifest.mf
@@ -5,6 +5,7 @@ Bundle-Vendor: sip-communicator.org
Bundle-Version: 0.0.1
System-Bundle: yes
Import-Package: org.osgi.framework,
+ com.apple.eawt,
net.java.sip.communicator.util,
net.java.sip.communicator.util.launchutils,
net.java.sip.communicator.service.configuration,