Skip to content

Commit

Permalink
[#222]Added hover info to entries in the Liberty Tool window
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul-Biju committed Oct 13, 2023
1 parent 586068e commit 12a52ab
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,17 @@ public Component getTreeCellRendererComponent(
boolean leaf,
int row,
boolean hasFocus) {
/**
* modification to get tooltiptext for liberty module tree
*/
tree.setToolTipText(((LibertyModuleNode) value).getFilePath().toString());
super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);

// assign gear icon to action nodes
if (leaf) {
setIcon(LibertyPluginIcons.IntelliJGear);
return this;
}

// select icon for node based on project type
LibertyModuleNode moduleNode = (LibertyModuleNode) value;
if (moduleNode.isGradleProjectType()) {
Expand Down

0 comments on commit 12a52ab

Please sign in to comment.