From 0a7ed83f299b1227740a8755b0b87f1557500a37 Mon Sep 17 00:00:00 2001 From: vjrj Date: Tue, 2 Oct 2012 20:04:41 +0200 Subject: [PATCH] Links interceptor (partial #366) --- COPYRIGHT.txt | 199 +++++++++++++++++- debian-experimental/copyright | 199 +++++++++++++++++- debian/copyright | 199 +++++++++++++++++- .../cc/kune/client/KuneLinkInterceptor.java | 78 +++++++ .../cc/kune/core/client/CoreGinModule.java | 8 + .../java/cc/kune/core/client/CoreParts.java | 7 +- 6 files changed, 686 insertions(+), 4 deletions(-) mode change 120000 => 100644 COPYRIGHT.txt mode change 120000 => 100644 debian-experimental/copyright mode change 120000 => 100644 debian/copyright create mode 100644 src/main/java/cc/kune/client/KuneLinkInterceptor.java diff --git a/COPYRIGHT.txt b/COPYRIGHT.txt deleted file mode 120000 index cf3af40f3..000000000 --- a/COPYRIGHT.txt +++ /dev/null @@ -1 +0,0 @@ -COPYRIGHT \ No newline at end of file diff --git a/COPYRIGHT.txt b/COPYRIGHT.txt new file mode 100644 index 000000000..448c8d6ec --- /dev/null +++ b/COPYRIGHT.txt @@ -0,0 +1,198 @@ +LICENSES +-------------------------------------------------------------------------------- + +All programs are either under the AGPL, GPL, LGPL, Artistic or BSD licenses, see +below for details. + +On Debian systems, the complete text of these licenses can be found in: + +/usr/share/common-licenses/AGPL +/usr/share/common-licenses/GPL-3 +/usr/share/common-licenses/Artistic +/usr/share/common-licenses/BSD +/usr/share/common-licenses/LGPL + +When in doubt, check the individual file, they should all have license +headings and other identifying marks. + +kune software +-------------------------------------------------------------------------------- + +Copyright + +(c) 2007-2012 The kune development team (see CREDITS for details) + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . + +See COPYRIGHT-AGPLv3 for a complete text. + +other stuff (libraries, etc) +-------------------------------------------------------------------------------- + +#wave / wave in a box# + +* http://www.waveprotocol.org +* http://www.apache.org/licenses/LICENSE-2.0 +* http://www.waveprotocol.org/patent-license + +#emite libray# + +http://emite.googlecode.com + +Copyright: under GNU Lesser General Public License +http://www.gnu.org/licenses/lgpl.html + +#fonts-min.css and reset.css# + +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt + +#ext-gwt gxt library# + +http://www.sencha.com/products/extgwt/ + +Copyright: under GNU General Public License +http://www.gnu.org/copyleft/gpl.html + +#gwt-ext (use deprecated) library# + +http://code.google.com/p/gwt-ext/ + +Copyright under GNU Lesser General Public License +http://www.gnu.org/licenses/lgpl.html + +#google-gin library# + +https://code.google.com/p/google-gin/ + +Copyright under Apache License 2.0 +http://www.apache.org/licenses/LICENSE-2.0 + +#gwt-platform library# + +https://code.google.com/p/gwt-platform/ + +Copyright under Apache License 2.0 +http://www.apache.org/licenses/LICENSE-2.0 + +#dom region library# + +XWiki Platform http://www.xwiki.org/ + +Copyright under GNU Lesser General Public License +http://www.gnu.org/licenses/lgpl.html + +#cortado applet# + +A video player java applet (Ogg Theora, Ogg Vorbis) +http://www.flumotion.net/cortado/ +Copyright: (C) 2004 Fluendo S.L under GNU General Public License + +#video embed dialog# + +Some ideas and embedded video code from + * http://www.jovelstefan.de/embedded-video/ (GPL) + * http://www.daburna.de/blog/2006/12/13/wordpress-video-plugin/ + +#some license descriptions# + +from Wikipedia (English) http://en.wikipedia.org/ +Copyright under GFDL http://www.gnu.org/copyleft/fdl.html + +#some Action classes# + +from GNU Classpath +Copyright under GNU General Public License +http://www.gnu.org/licenses/gpl.html + +kune documentation +-------------------------------------------------------------------------------- + +Copyright + +(c) The kune development team (see CREDITS an individual docs for details) +This work is licensed under the Creative Commons Attribution-Share Alike 3.0 +License. To view a copy of this license, visit +http://creativecommons.org/licenses/by-sa/3.0/ +or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San +Francisco, California, 94105, USA. + +kune graphics +-------------------------------------------------------------------------------- + +Copyright + +(c) Vicente J. Ruiz Jurado +This work is licensed under the Creative Commons Attribution-Share Alike 3.0 +License. To view a copy of this license, visit +http://creativecommons.org/licenses/by-sa/3.0/ +or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San +Francisco, California, 94105, USA. + +other icons +-------------------------------------------------------------------------------- + +#some from Tango# + +http://tango.freedesktop.org/ + +Creative Commons Attribution-ShareAlike 2.5 License Agreement +http://creativecommons.org/licenses/by-sa/2.5/ + +#others from famfamfam# + +http://www.famfamfam.com/lab/icons/silk/ + +Creative Commons Attribution 2.5 License Agreement +http://creativecommons.org/licenses/by/2.5/ + +#some xmpp icons from pidgin# + +Purple/Pidgin/Finch is the legal property of its developers. +Copyright (C) 1998-2007 under the terms of the GNU General Public License as +published by the Free Software Foundation; either version 2 of +the License, or (at your option) any later version. + +#emoticons from Adium and Kopete theme# + +kopete adium theme by robotangel and original "Adiumicons" by Oscar Gruno +under GNU GPL license +http://www.gnu.org/copyleft/gpl.html + +#and other icons from openoffice.org-style-human debian package# + +Copyright 2002-2007 Sun Microsystems, Inc. +This product is made available subject to the terms of GNU Lesser General +Public License Version 2.1. A copy of the LGPL license can be found +http://www.openoffice.org/project/www/license.html + +#Default background of Public Space# + +Jean-Pol GRANDMONT +http://creativecommons.org/licenses/by/3.0/deed.en +Creative Commons Attribution 3.0 Unported license +https://secure.wikimedia.org/wikipedia/commons/wiki/File:Acer_japonicum_Vitifolium_JPG1fu.jpg + +#Cursor# +https://secure.wikimedia.org/wikipedia/commons/wiki/File:Black_Cursor.svg +Ort43v +Creative Commons Attribution-Share Alike 3.0 Unported license +http://creativecommons.org/licenses/by-sa/3.0/deed.en + +#Iconic# +http://somerandomdude.com/work/iconic/ +Creative Commons Share Alike 3.0 +http://creativecommons.org/licenses/by-sa/3.0/us/ +More info in: http://thenounproject.com/ diff --git a/debian-experimental/copyright b/debian-experimental/copyright deleted file mode 120000 index dc5f40a22..000000000 --- a/debian-experimental/copyright +++ /dev/null @@ -1 +0,0 @@ -../COPYRIGHT \ No newline at end of file diff --git a/debian-experimental/copyright b/debian-experimental/copyright new file mode 100644 index 000000000..448c8d6ec --- /dev/null +++ b/debian-experimental/copyright @@ -0,0 +1,198 @@ +LICENSES +-------------------------------------------------------------------------------- + +All programs are either under the AGPL, GPL, LGPL, Artistic or BSD licenses, see +below for details. + +On Debian systems, the complete text of these licenses can be found in: + +/usr/share/common-licenses/AGPL +/usr/share/common-licenses/GPL-3 +/usr/share/common-licenses/Artistic +/usr/share/common-licenses/BSD +/usr/share/common-licenses/LGPL + +When in doubt, check the individual file, they should all have license +headings and other identifying marks. + +kune software +-------------------------------------------------------------------------------- + +Copyright + +(c) 2007-2012 The kune development team (see CREDITS for details) + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . + +See COPYRIGHT-AGPLv3 for a complete text. + +other stuff (libraries, etc) +-------------------------------------------------------------------------------- + +#wave / wave in a box# + +* http://www.waveprotocol.org +* http://www.apache.org/licenses/LICENSE-2.0 +* http://www.waveprotocol.org/patent-license + +#emite libray# + +http://emite.googlecode.com + +Copyright: under GNU Lesser General Public License +http://www.gnu.org/licenses/lgpl.html + +#fonts-min.css and reset.css# + +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt + +#ext-gwt gxt library# + +http://www.sencha.com/products/extgwt/ + +Copyright: under GNU General Public License +http://www.gnu.org/copyleft/gpl.html + +#gwt-ext (use deprecated) library# + +http://code.google.com/p/gwt-ext/ + +Copyright under GNU Lesser General Public License +http://www.gnu.org/licenses/lgpl.html + +#google-gin library# + +https://code.google.com/p/google-gin/ + +Copyright under Apache License 2.0 +http://www.apache.org/licenses/LICENSE-2.0 + +#gwt-platform library# + +https://code.google.com/p/gwt-platform/ + +Copyright under Apache License 2.0 +http://www.apache.org/licenses/LICENSE-2.0 + +#dom region library# + +XWiki Platform http://www.xwiki.org/ + +Copyright under GNU Lesser General Public License +http://www.gnu.org/licenses/lgpl.html + +#cortado applet# + +A video player java applet (Ogg Theora, Ogg Vorbis) +http://www.flumotion.net/cortado/ +Copyright: (C) 2004 Fluendo S.L under GNU General Public License + +#video embed dialog# + +Some ideas and embedded video code from + * http://www.jovelstefan.de/embedded-video/ (GPL) + * http://www.daburna.de/blog/2006/12/13/wordpress-video-plugin/ + +#some license descriptions# + +from Wikipedia (English) http://en.wikipedia.org/ +Copyright under GFDL http://www.gnu.org/copyleft/fdl.html + +#some Action classes# + +from GNU Classpath +Copyright under GNU General Public License +http://www.gnu.org/licenses/gpl.html + +kune documentation +-------------------------------------------------------------------------------- + +Copyright + +(c) The kune development team (see CREDITS an individual docs for details) +This work is licensed under the Creative Commons Attribution-Share Alike 3.0 +License. To view a copy of this license, visit +http://creativecommons.org/licenses/by-sa/3.0/ +or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San +Francisco, California, 94105, USA. + +kune graphics +-------------------------------------------------------------------------------- + +Copyright + +(c) Vicente J. Ruiz Jurado +This work is licensed under the Creative Commons Attribution-Share Alike 3.0 +License. To view a copy of this license, visit +http://creativecommons.org/licenses/by-sa/3.0/ +or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San +Francisco, California, 94105, USA. + +other icons +-------------------------------------------------------------------------------- + +#some from Tango# + +http://tango.freedesktop.org/ + +Creative Commons Attribution-ShareAlike 2.5 License Agreement +http://creativecommons.org/licenses/by-sa/2.5/ + +#others from famfamfam# + +http://www.famfamfam.com/lab/icons/silk/ + +Creative Commons Attribution 2.5 License Agreement +http://creativecommons.org/licenses/by/2.5/ + +#some xmpp icons from pidgin# + +Purple/Pidgin/Finch is the legal property of its developers. +Copyright (C) 1998-2007 under the terms of the GNU General Public License as +published by the Free Software Foundation; either version 2 of +the License, or (at your option) any later version. + +#emoticons from Adium and Kopete theme# + +kopete adium theme by robotangel and original "Adiumicons" by Oscar Gruno +under GNU GPL license +http://www.gnu.org/copyleft/gpl.html + +#and other icons from openoffice.org-style-human debian package# + +Copyright 2002-2007 Sun Microsystems, Inc. +This product is made available subject to the terms of GNU Lesser General +Public License Version 2.1. A copy of the LGPL license can be found +http://www.openoffice.org/project/www/license.html + +#Default background of Public Space# + +Jean-Pol GRANDMONT +http://creativecommons.org/licenses/by/3.0/deed.en +Creative Commons Attribution 3.0 Unported license +https://secure.wikimedia.org/wikipedia/commons/wiki/File:Acer_japonicum_Vitifolium_JPG1fu.jpg + +#Cursor# +https://secure.wikimedia.org/wikipedia/commons/wiki/File:Black_Cursor.svg +Ort43v +Creative Commons Attribution-Share Alike 3.0 Unported license +http://creativecommons.org/licenses/by-sa/3.0/deed.en + +#Iconic# +http://somerandomdude.com/work/iconic/ +Creative Commons Share Alike 3.0 +http://creativecommons.org/licenses/by-sa/3.0/us/ +More info in: http://thenounproject.com/ diff --git a/debian/copyright b/debian/copyright deleted file mode 120000 index dc5f40a22..000000000 --- a/debian/copyright +++ /dev/null @@ -1 +0,0 @@ -../COPYRIGHT \ No newline at end of file diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..448c8d6ec --- /dev/null +++ b/debian/copyright @@ -0,0 +1,198 @@ +LICENSES +-------------------------------------------------------------------------------- + +All programs are either under the AGPL, GPL, LGPL, Artistic or BSD licenses, see +below for details. + +On Debian systems, the complete text of these licenses can be found in: + +/usr/share/common-licenses/AGPL +/usr/share/common-licenses/GPL-3 +/usr/share/common-licenses/Artistic +/usr/share/common-licenses/BSD +/usr/share/common-licenses/LGPL + +When in doubt, check the individual file, they should all have license +headings and other identifying marks. + +kune software +-------------------------------------------------------------------------------- + +Copyright + +(c) 2007-2012 The kune development team (see CREDITS for details) + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . + +See COPYRIGHT-AGPLv3 for a complete text. + +other stuff (libraries, etc) +-------------------------------------------------------------------------------- + +#wave / wave in a box# + +* http://www.waveprotocol.org +* http://www.apache.org/licenses/LICENSE-2.0 +* http://www.waveprotocol.org/patent-license + +#emite libray# + +http://emite.googlecode.com + +Copyright: under GNU Lesser General Public License +http://www.gnu.org/licenses/lgpl.html + +#fonts-min.css and reset.css# + +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt + +#ext-gwt gxt library# + +http://www.sencha.com/products/extgwt/ + +Copyright: under GNU General Public License +http://www.gnu.org/copyleft/gpl.html + +#gwt-ext (use deprecated) library# + +http://code.google.com/p/gwt-ext/ + +Copyright under GNU Lesser General Public License +http://www.gnu.org/licenses/lgpl.html + +#google-gin library# + +https://code.google.com/p/google-gin/ + +Copyright under Apache License 2.0 +http://www.apache.org/licenses/LICENSE-2.0 + +#gwt-platform library# + +https://code.google.com/p/gwt-platform/ + +Copyright under Apache License 2.0 +http://www.apache.org/licenses/LICENSE-2.0 + +#dom region library# + +XWiki Platform http://www.xwiki.org/ + +Copyright under GNU Lesser General Public License +http://www.gnu.org/licenses/lgpl.html + +#cortado applet# + +A video player java applet (Ogg Theora, Ogg Vorbis) +http://www.flumotion.net/cortado/ +Copyright: (C) 2004 Fluendo S.L under GNU General Public License + +#video embed dialog# + +Some ideas and embedded video code from + * http://www.jovelstefan.de/embedded-video/ (GPL) + * http://www.daburna.de/blog/2006/12/13/wordpress-video-plugin/ + +#some license descriptions# + +from Wikipedia (English) http://en.wikipedia.org/ +Copyright under GFDL http://www.gnu.org/copyleft/fdl.html + +#some Action classes# + +from GNU Classpath +Copyright under GNU General Public License +http://www.gnu.org/licenses/gpl.html + +kune documentation +-------------------------------------------------------------------------------- + +Copyright + +(c) The kune development team (see CREDITS an individual docs for details) +This work is licensed under the Creative Commons Attribution-Share Alike 3.0 +License. To view a copy of this license, visit +http://creativecommons.org/licenses/by-sa/3.0/ +or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San +Francisco, California, 94105, USA. + +kune graphics +-------------------------------------------------------------------------------- + +Copyright + +(c) Vicente J. Ruiz Jurado +This work is licensed under the Creative Commons Attribution-Share Alike 3.0 +License. To view a copy of this license, visit +http://creativecommons.org/licenses/by-sa/3.0/ +or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San +Francisco, California, 94105, USA. + +other icons +-------------------------------------------------------------------------------- + +#some from Tango# + +http://tango.freedesktop.org/ + +Creative Commons Attribution-ShareAlike 2.5 License Agreement +http://creativecommons.org/licenses/by-sa/2.5/ + +#others from famfamfam# + +http://www.famfamfam.com/lab/icons/silk/ + +Creative Commons Attribution 2.5 License Agreement +http://creativecommons.org/licenses/by/2.5/ + +#some xmpp icons from pidgin# + +Purple/Pidgin/Finch is the legal property of its developers. +Copyright (C) 1998-2007 under the terms of the GNU General Public License as +published by the Free Software Foundation; either version 2 of +the License, or (at your option) any later version. + +#emoticons from Adium and Kopete theme# + +kopete adium theme by robotangel and original "Adiumicons" by Oscar Gruno +under GNU GPL license +http://www.gnu.org/copyleft/gpl.html + +#and other icons from openoffice.org-style-human debian package# + +Copyright 2002-2007 Sun Microsystems, Inc. +This product is made available subject to the terms of GNU Lesser General +Public License Version 2.1. A copy of the LGPL license can be found +http://www.openoffice.org/project/www/license.html + +#Default background of Public Space# + +Jean-Pol GRANDMONT +http://creativecommons.org/licenses/by/3.0/deed.en +Creative Commons Attribution 3.0 Unported license +https://secure.wikimedia.org/wikipedia/commons/wiki/File:Acer_japonicum_Vitifolium_JPG1fu.jpg + +#Cursor# +https://secure.wikimedia.org/wikipedia/commons/wiki/File:Black_Cursor.svg +Ort43v +Creative Commons Attribution-Share Alike 3.0 Unported license +http://creativecommons.org/licenses/by-sa/3.0/deed.en + +#Iconic# +http://somerandomdude.com/work/iconic/ +Creative Commons Share Alike 3.0 +http://creativecommons.org/licenses/by-sa/3.0/us/ +More info in: http://thenounproject.com/ diff --git a/src/main/java/cc/kune/client/KuneLinkInterceptor.java b/src/main/java/cc/kune/client/KuneLinkInterceptor.java new file mode 100644 index 000000000..875619f5c --- /dev/null +++ b/src/main/java/cc/kune/client/KuneLinkInterceptor.java @@ -0,0 +1,78 @@ +/* + * + * Copyright (C) 2007-2012 The kune development team (see CREDITS for details) + * This file is part of kune. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +package cc.kune.client; + +import com.google.gwt.core.client.GWT; +import com.google.gwt.user.client.DOM; +import com.google.gwt.user.client.Element; +import com.google.gwt.user.client.Event; +import com.google.gwt.user.client.Event.NativePreviewEvent; +import com.google.gwt.user.client.Event.NativePreviewHandler; +import com.google.inject.Singleton; + +@Singleton +public class KuneLinkInterceptor implements NativePreviewHandler { + + public KuneLinkInterceptor() { + Event.addNativePreviewHandler(this); + } + + private native String getTagName(final Element element) /*-{ +                 return element.tagName; +         }-*/; + + boolean isLocal(final String href, final String base) { + final String baseHashbang = base + "#!"; + final String baseHash = base + "#"; + final boolean startsWithURLandHashbang = href.startsWith(baseHashbang); + final boolean startsWithURLandHash = href.startsWith(baseHash); + return href.startsWith("#") || startsWithURLandHashbang || startsWithURLandHash; + } + + @Override + public void onPreviewNativeEvent(final NativePreviewEvent nativeEventPreview) { + final Event event = Event.as(nativeEventPreview.getNativeEvent()); + final String base = GWT.getHostPageBaseURL(); + if (nativeEventPreview.getTypeInt() == Event.ONCLICK) { + final Element target = DOM.eventGetTarget(event); + if ("a".equalsIgnoreCase(getTagName(target))) { + GWT.log("HREF base: " + base); + final String href = DOM.getElementAttribute(target, "href"); + GWT.log("HREF href: " + href); + if (isLocal(href, base)) { + GWT.log("HREF true"); + // if (startsWithURLandHashbang) { + // History.newItem(href.replace(baseHashbang, "")); + // nativeEventPreview.cancel(); + // } + // if (startsWithURLandHash) { + // History.newItem(href.replace(baseHash, "")); + // nativeEventPreview.cancel(); + // } + } else { + GWT.log("HREF false"); + // FIXME this should be removed + nativeEventPreview.cancel(); + } + } + } + } +} diff --git a/src/main/java/cc/kune/core/client/CoreGinModule.java b/src/main/java/cc/kune/core/client/CoreGinModule.java index 8681dc5ce..b8b830e6d 100644 --- a/src/main/java/cc/kune/core/client/CoreGinModule.java +++ b/src/main/java/cc/kune/core/client/CoreGinModule.java @@ -22,7 +22,10 @@ */ package cc.kune.core.client; + import cc.kune.client.KunePlaceManager; +import cc.kune.common.client.actions.gxtui.GxtGuiProvider; +import cc.kune.client.KuneLinkInterceptor; import cc.kune.common.client.actions.ui.DefaultGuiProvider; import cc.kune.common.client.actions.ui.GuiProvider; import cc.kune.common.client.events.EventBusInstance; @@ -63,6 +66,7 @@ import cc.kune.core.client.groups.newgroup.NewGroupPanel; import cc.kune.core.client.groups.newgroup.NewGroupPresenter; import cc.kune.core.client.groups.newgroup.NewGroupView; +import cc.kune.core.client.i18n.I18n; import cc.kune.core.client.i18n.I18nUITranslationService; import cc.kune.core.client.init.AppStarter; import cc.kune.core.client.init.AppStarterDefault; @@ -71,6 +75,7 @@ import cc.kune.core.client.notify.confirm.UserConfirmPresenter; import cc.kune.core.client.notify.spiner.SpinerPanel; import cc.kune.core.client.notify.spiner.SpinerPresenter; +import cc.kune.core.client.notify.spiner.SpinerPanel; import cc.kune.core.client.registry.ContentCapabilitiesRegistry; import cc.kune.core.client.registry.NewMenusForTypeIdsRegistry; import cc.kune.core.client.rpcservices.AsyncCallbackSimple; @@ -124,6 +129,8 @@ import cc.kune.core.client.ws.entheader.EntityHeaderPanel; import cc.kune.core.client.ws.entheader.EntityHeaderPresenter; import cc.kune.core.shared.dto.ReservedWordsRegistryDTO; +import cc.kune.msgs.client.UserMessagesPanel; +import cc.kune.msgs.client.UserMessagesPresenter; import com.google.gwt.event.shared.EventBus; import com.google.inject.Singleton; @@ -174,6 +181,7 @@ protected void configure() { bind(GlobalShortcuts.class).in(Singleton.class); s(AnonUsersManager.class); + s(KuneLinkInterceptor.class); // DnD s(KuneDragController.class); diff --git a/src/main/java/cc/kune/core/client/CoreParts.java b/src/main/java/cc/kune/core/client/CoreParts.java index 07875eb9a..7d4e4aa69 100644 --- a/src/main/java/cc/kune/core/client/CoreParts.java +++ b/src/main/java/cc/kune/core/client/CoreParts.java @@ -22,7 +22,9 @@ */ package cc.kune.core.client; +import cc.kune.client.KuneLinkInterceptor; import cc.kune.common.client.shortcuts.GlobalShortcuts; +import cc.kune.common.shared.i18n.I18nTranslationService; import cc.kune.core.client.auth.AnonUsersManager; import cc.kune.core.client.auth.EmailNotVerifiedReminder; import cc.kune.core.client.auth.Register; @@ -118,7 +120,9 @@ public CoreParts(final Session session, final Provider groupMe final GlobalShortcuts shortcuts, final I18nUITranslationService i18n, final Provider tutorialViewer, final Provider websocketChecker, final Provider emailNotVerifiedReminder, - final Provider siteInvitation, final InvitationClientManager invitationManager) { + final Provider siteInvitation, final InvitationClientManager invitationManager, + final Provider linkInterceptor +) { session.onAppStart(true, new AppStartHandler() { @Override public void onAppStart(final AppStartEvent event) { @@ -133,6 +137,7 @@ public void onAppStart(final AppStartEvent event) { emailNotVerifiedReminder.get(); websocketChecker.get(); siteInvitation.get(); + linkInterceptor.get(); } }); tokenListener.put(SiteTokens.SIGN_IN, new HistoryTokenAuthNotNeededCallback() {