[kune-commits] r1578 - in trunk/src/main/java/cc/kune: barters/client blogs/client chat/client docs/client events/client gspace/client gspace/client/tool gspace/client/tool/selector lists/client tasks/client wiki/client

Vicente J. Ruiz Jurado vjrj_ at ourproject.org
Wed Nov 2 23:41:46 CET 2011


Author: vjrj_
Date: 2011-11-02 23:41:46 +0100 (Wed, 02 Nov 2011)
New Revision: 1578

Modified:
   trunk/src/main/java/cc/kune/barters/client/BartersClientTool.java
   trunk/src/main/java/cc/kune/blogs/client/BlogsClientTool.java
   trunk/src/main/java/cc/kune/chat/client/ChatClientTool.java
   trunk/src/main/java/cc/kune/docs/client/DocsClientTool.java
   trunk/src/main/java/cc/kune/events/client/EventsClientTool.java
   trunk/src/main/java/cc/kune/gspace/client/GSpaceArmorImpl.java
   trunk/src/main/java/cc/kune/gspace/client/tool/AbstractClientTool.java
   trunk/src/main/java/cc/kune/gspace/client/tool/FoldableAbstractClientTool.java
   trunk/src/main/java/cc/kune/gspace/client/tool/selector/ToolSelectorItemPanel.java
   trunk/src/main/java/cc/kune/gspace/client/tool/selector/ToolSelectorItemPresenter.java
   trunk/src/main/java/cc/kune/lists/client/ListsClientTool.java
   trunk/src/main/java/cc/kune/tasks/client/TasksClientTool.java
   trunk/src/main/java/cc/kune/wiki/client/WikiClientTool.java
Log:
NEW - # 114: Explain properly the tools 
http://kune.ourproject.org/issues/ticket/114
CLOSED - # 146: General Home page should now be # instead of #home 
http://kune.ourproject.org/issues/ticket/146

Modified: trunk/src/main/java/cc/kune/barters/client/BartersClientTool.java
===================================================================
--- trunk/src/main/java/cc/kune/barters/client/BartersClientTool.java	2011-11-02 22:01:44 UTC (rev 1577)
+++ trunk/src/main/java/cc/kune/barters/client/BartersClientTool.java	2011-11-02 22:41:46 UTC (rev 1578)
@@ -36,7 +36,7 @@
   @Inject
   public BartersClientTool(final I18nTranslationService i18n, final ToolSelector toolSelector,
       final ContentCapabilitiesRegistry cntCapRegistry, final NavResources navResources) {
-    super(NAME, i18n.t("barters"), toolSelector, cntCapRegistry, i18n, navResources);
+    super(NAME, i18n.t("barters"), i18n.t(""), toolSelector, cntCapRegistry, i18n, navResources);
 
     // registerAclEditableTypes(TYPE_DOCUMENT, TYPE_UPLOADEDFILE);
     registerAuthorableTypes(TYPE_BARTER);

Modified: trunk/src/main/java/cc/kune/blogs/client/BlogsClientTool.java
===================================================================
--- trunk/src/main/java/cc/kune/blogs/client/BlogsClientTool.java	2011-11-02 22:01:44 UTC (rev 1577)
+++ trunk/src/main/java/cc/kune/blogs/client/BlogsClientTool.java	2011-11-02 22:41:46 UTC (rev 1578)
@@ -38,7 +38,8 @@
   @Inject
   public BlogsClientTool(final I18nTranslationService i18n, final ToolSelector toolSelector,
       final ContentCapabilitiesRegistry cntCapRegistry, final NavResources navResources) {
-    super(NAME, i18n.t(BlogsConstants.ROOT_NAME), toolSelector, cntCapRegistry, i18n, navResources);
+    super(NAME, i18n.t(BlogsConstants.ROOT_NAME), i18n.t(""), toolSelector, cntCapRegistry, i18n,
+        navResources);
 
     // registerAclEditableTypes();
     registerAuthorableTypes(TYPE_POST, TYPE_UPLOADEDFILE);

Modified: trunk/src/main/java/cc/kune/chat/client/ChatClientTool.java
===================================================================
--- trunk/src/main/java/cc/kune/chat/client/ChatClientTool.java	2011-11-02 22:01:44 UTC (rev 1577)
+++ trunk/src/main/java/cc/kune/chat/client/ChatClientTool.java	2011-11-02 22:41:46 UTC (rev 1578)
@@ -40,7 +40,7 @@
       final ContentCapabilitiesRegistry cntCapRegistry, final NavResources navResources,
       final ChatResources res) {
     // FIXME: change this in ChatConstants and in db via migration
-    super(NAME, i18n.t("chatrooms"), toolSelector, cntCapRegistry, i18n, navResources);
+    super(NAME, i18n.t("chatrooms"), i18n.t(""), toolSelector, cntCapRegistry, i18n, navResources);
     this.res = res;
     registerIcons();
   }

Modified: trunk/src/main/java/cc/kune/docs/client/DocsClientTool.java
===================================================================
--- trunk/src/main/java/cc/kune/docs/client/DocsClientTool.java	2011-11-02 22:01:44 UTC (rev 1577)
+++ trunk/src/main/java/cc/kune/docs/client/DocsClientTool.java	2011-11-02 22:41:46 UTC (rev 1578)
@@ -38,7 +38,8 @@
   @Inject
   public DocsClientTool(final I18nTranslationService i18n, final ToolSelector toolSelector,
       final ContentCapabilitiesRegistry cntCapRegistry, final NavResources navResources) {
-    super(NAME, i18n.t(DocsConstants.ROOT_NAME), toolSelector, cntCapRegistry, i18n, navResources);
+    super(NAME, i18n.t(DocsConstants.ROOT_NAME), i18n.t(""), toolSelector, cntCapRegistry, i18n,
+        navResources);
 
     // registerAclEditableTypes(TYPE_DOCUMENT, TYPE_UPLOADEDFILE);
     registerAuthorableTypes(TYPE_DOCUMENT, TYPE_UPLOADEDFILE);

Modified: trunk/src/main/java/cc/kune/events/client/EventsClientTool.java
===================================================================
--- trunk/src/main/java/cc/kune/events/client/EventsClientTool.java	2011-11-02 22:01:44 UTC (rev 1577)
+++ trunk/src/main/java/cc/kune/events/client/EventsClientTool.java	2011-11-02 22:41:46 UTC (rev 1578)
@@ -36,7 +36,7 @@
   @Inject
   public EventsClientTool(final I18nTranslationService i18n, final ToolSelector toolSelector,
       final ContentCapabilitiesRegistry cntCapRegistry, final NavResources navResources) {
-    super(NAME, i18n.t(ROOT_NAME), toolSelector, cntCapRegistry, i18n, navResources);
+    super(NAME, i18n.t(ROOT_NAME), i18n.t(""), toolSelector, cntCapRegistry, i18n, navResources);
 
     // registerAclEditableTypes(TYPE_DOCUMENT, TYPE_UPLOADEDFILE);
     registerAuthorableTypes(TYPE_MEETING);

Modified: trunk/src/main/java/cc/kune/gspace/client/GSpaceArmorImpl.java
===================================================================
--- trunk/src/main/java/cc/kune/gspace/client/GSpaceArmorImpl.java	2011-11-02 22:01:44 UTC (rev 1577)
+++ trunk/src/main/java/cc/kune/gspace/client/GSpaceArmorImpl.java	2011-11-02 22:41:46 UTC (rev 1578)
@@ -262,7 +262,7 @@
 
   @Override
   public void setBackImage(final String url) {
-    final String bodyProp = "#FFFFFF url('" + url + "') fixed no-repeat top left";
+    final String bodyProp = "#FFFFFF url('" + url + "') fixed top left";
     // final String bodyProp = "#FFFFFF url('" + url +
     // "') fixed no-repeat top left";
     DOM.setStyleAttribute(groupSpaceWrapper.getElement(), CSS.A.BACKGROUND, bodyProp);

Modified: trunk/src/main/java/cc/kune/gspace/client/tool/AbstractClientTool.java
===================================================================
--- trunk/src/main/java/cc/kune/gspace/client/tool/AbstractClientTool.java	2011-11-02 22:01:44 UTC (rev 1577)
+++ trunk/src/main/java/cc/kune/gspace/client/tool/AbstractClientTool.java	2011-11-02 22:41:46 UTC (rev 1578)
@@ -25,11 +25,13 @@
 
 public abstract class AbstractClientTool {
 
-    public AbstractClientTool(final String shortName, final String longName, final ToolSelector toolSelector) {
-        final ToolSelectorItemPresenter presenter = new ToolSelectorItemPresenter(shortName, longName, toolSelector);
-        final ToolSelectorItemPanel panel = new ToolSelectorItemPanel();
-        presenter.init(panel);
-    }
+  public AbstractClientTool(final String shortName, final String longName, final String tooltip,
+      final ToolSelector toolSelector) {
+    final ToolSelectorItemPresenter presenter = new ToolSelectorItemPresenter(shortName, longName,
+        tooltip, toolSelector);
+    final ToolSelectorItemPanel panel = new ToolSelectorItemPanel();
+    presenter.init(panel);
+  }
 
-    public abstract String getName();
+  public abstract String getName();
 }

Modified: trunk/src/main/java/cc/kune/gspace/client/tool/FoldableAbstractClientTool.java
===================================================================
--- trunk/src/main/java/cc/kune/gspace/client/tool/FoldableAbstractClientTool.java	2011-11-02 22:01:44 UTC (rev 1577)
+++ trunk/src/main/java/cc/kune/gspace/client/tool/FoldableAbstractClientTool.java	2011-11-02 22:41:46 UTC (rev 1578)
@@ -35,10 +35,10 @@
   protected final I18nTranslationService i18n;
   protected final NavResources navResources;
 
-  public FoldableAbstractClientTool(final String shortName, final String longName,
+  public FoldableAbstractClientTool(final String shortName, final String longName, final String tooltip,
       final ToolSelector toolSelector, final ContentCapabilitiesRegistry contentCapabilitiesRegistry,
       final I18nTranslationService i18n, final NavResources navResources) {
-    super(shortName, longName, toolSelector);
+    super(shortName, longName, tooltip, toolSelector);
     this.contentCapabilitiesRegistry = contentCapabilitiesRegistry;
     this.i18n = i18n;
     this.navResources = navResources;

Modified: trunk/src/main/java/cc/kune/gspace/client/tool/selector/ToolSelectorItemPanel.java
===================================================================
--- trunk/src/main/java/cc/kune/gspace/client/tool/selector/ToolSelectorItemPanel.java	2011-11-02 22:01:44 UTC (rev 1577)
+++ trunk/src/main/java/cc/kune/gspace/client/tool/selector/ToolSelectorItemPanel.java	2011-11-02 22:41:46 UTC (rev 1578)
@@ -19,6 +19,7 @@
  */
 package cc.kune.gspace.client.tool.selector;
 
+import cc.kune.common.client.tooltip.Tooltip;
 import cc.kune.gspace.client.tool.selector.ToolSelectorItemPresenter.ToolSelectorItemView;
 
 import com.google.gwt.core.client.GWT;
@@ -113,6 +114,11 @@
   }
 
   @Override
+  public void setTooltip(final String tooltip) {
+    Tooltip.to(this, tooltip);
+  }
+
+  @Override
   public void setVisible(final boolean visible) {
     setVisibleImpl(visible);
   }

Modified: trunk/src/main/java/cc/kune/gspace/client/tool/selector/ToolSelectorItemPresenter.java
===================================================================
--- trunk/src/main/java/cc/kune/gspace/client/tool/selector/ToolSelectorItemPresenter.java	2011-11-02 22:01:44 UTC (rev 1577)
+++ trunk/src/main/java/cc/kune/gspace/client/tool/selector/ToolSelectorItemPresenter.java	2011-11-02 22:41:46 UTC (rev 1578)
@@ -37,6 +37,8 @@
 
     void setSelected(boolean selected);
 
+    void setTooltip(String tooltip);
+
     void setVisible(boolean visible);
   }
 
@@ -44,12 +46,14 @@
   private final String shortName;
   private StateToken token;
   private final ToolSelector toolSelector;
+  private final String tooltip;
   private ToolSelectorItemView view;
 
-  public ToolSelectorItemPresenter(final String shortName, final String longName,
+  public ToolSelectorItemPresenter(final String shortName, final String longName, final String tooltip,
       final ToolSelector toolSelector) {
     this.shortName = shortName;
     this.longName = longName;
+    this.tooltip = tooltip;
     this.toolSelector = toolSelector;
   }
 
@@ -73,6 +77,7 @@
       }
     });
     view.getLabel().setText(longName);
+    view.setTooltip(tooltip);
   }
 
   @Override

Modified: trunk/src/main/java/cc/kune/lists/client/ListsClientTool.java
===================================================================
--- trunk/src/main/java/cc/kune/lists/client/ListsClientTool.java	2011-11-02 22:01:44 UTC (rev 1577)
+++ trunk/src/main/java/cc/kune/lists/client/ListsClientTool.java	2011-11-02 22:41:46 UTC (rev 1578)
@@ -37,7 +37,7 @@
   @Inject
   public ListsClientTool(final I18nTranslationService i18n, final ToolSelector toolSelector,
       final ContentCapabilitiesRegistry cntCapRegistry, final NavResources navResources) {
-    super(NAME, i18n.t(ROOT_NAME), toolSelector, cntCapRegistry, i18n, navResources);
+    super(NAME, i18n.t(ROOT_NAME), i18n.t(""), toolSelector, cntCapRegistry, i18n, navResources);
 
     // registerAclEditableTypes();
     registerAuthorableTypes(TYPE_POST);

Modified: trunk/src/main/java/cc/kune/tasks/client/TasksClientTool.java
===================================================================
--- trunk/src/main/java/cc/kune/tasks/client/TasksClientTool.java	2011-11-02 22:01:44 UTC (rev 1577)
+++ trunk/src/main/java/cc/kune/tasks/client/TasksClientTool.java	2011-11-02 22:41:46 UTC (rev 1578)
@@ -38,7 +38,7 @@
   @Inject
   public TasksClientTool(final I18nTranslationService i18n, final ToolSelector toolSelector,
       final ContentCapabilitiesRegistry cntCapRegistry, final NavResources navResources) {
-    super(NAME, i18n.t(ROOT_NAME), toolSelector, cntCapRegistry, i18n, navResources);
+    super(NAME, i18n.t(ROOT_NAME), i18n.t(""), toolSelector, cntCapRegistry, i18n, navResources);
 
     // registerAclEditableTypes();
     registerAuthorableTypes(TYPE_TASK);

Modified: trunk/src/main/java/cc/kune/wiki/client/WikiClientTool.java
===================================================================
--- trunk/src/main/java/cc/kune/wiki/client/WikiClientTool.java	2011-11-02 22:01:44 UTC (rev 1577)
+++ trunk/src/main/java/cc/kune/wiki/client/WikiClientTool.java	2011-11-02 22:41:46 UTC (rev 1578)
@@ -37,7 +37,7 @@
   @Inject
   public WikiClientTool(final I18nTranslationService i18n, final ToolSelector toolSelector,
       final ContentCapabilitiesRegistry cntCapRegistry, final NavResources navResources) {
-    super(NAME, i18n.t("wiki"), toolSelector, cntCapRegistry, i18n, navResources);
+    super(NAME, i18n.t("wiki"), i18n.t(""), toolSelector, cntCapRegistry, i18n, navResources);
 
     registerAuthorableTypes(TYPE_WIKIPAGE, TYPE_UPLOADEDFILE);
     registerDragableTypes(TYPE_WIKIPAGE, TYPE_FOLDER, TYPE_UPLOADEDFILE);




More information about the kune-commits mailing list