Skip to content
Snippets Groups Projects
Commit 0c14539c authored by srosse's avatar srosse
Browse files

OO-1263: add tooltips to user tools in the navigation bar

parent ddff15f2
No related branches found
No related tags found
No related merge requests found
...@@ -55,11 +55,13 @@ public class UserToolImpl implements UserTool, ComponentEventListener { ...@@ -55,11 +55,13 @@ public class UserToolImpl implements UserTool, ComponentEventListener {
String label = extension.getLabel(locale); String label = extension.getLabel(locale);
String iconCssClass = extension.getIconCssClass(); String iconCssClass = extension.getIconCssClass();
String linkName = "personal.tool.alt." + CodeHelper.getRAMUniqueID(); String linkName = "personal.tool.alt." + CodeHelper.getRAMUniqueID();
Link link = LinkFactory.createLink(linkName, container, this); Link link = LinkFactory.createLink(linkName, linkName, container.getTranslator(), container, this, Link.LINK | Link.NONTRANSLATED);
link.setUserObject(this); link.setUserObject(this);
link.setCustomDisplayText(label); link.setCustomDisplayText(label);
link.setElementCssClass("o_sel_user_tools-" + extension.getNavigationKey()); link.setElementCssClass("o_sel_user_tools-" + extension.getNavigationKey());
link.setIconLeftCSS(iconCssClass + " o_icon-lg"); link.setIconLeftCSS(iconCssClass + " o_icon-lg");
link.setTooltip(label);
link.setTitle(label);
return link; return link;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment