mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-10-01 17:11:44 -09:00
Merge remote-tracking branch
'origin/GP_5741_ghidragon_fixing_accessibility_for_symbol_tree--SQUASHED' (Closes #8228)
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -27,6 +27,7 @@ import docking.widgets.tree.GTree;
|
||||
import docking.widgets.tree.GTreeNode;
|
||||
import generic.theme.GColor;
|
||||
import generic.theme.GColorUIResource;
|
||||
import ghidra.util.HTMLUtilities;
|
||||
|
||||
public class GTreeRenderer extends DefaultTreeCellRenderer implements GComponent {
|
||||
|
||||
@@ -70,7 +71,10 @@ public class GTreeRenderer extends DefaultTreeCellRenderer implements GComponent
|
||||
GTreeNode node = (GTreeNode) value;
|
||||
String text = node.getDisplayText();
|
||||
setText(text);
|
||||
setToolTipText(node.getToolTip());
|
||||
String toolTip = node.getToolTip();
|
||||
setToolTipText(toolTip);
|
||||
String fromHTML = HTMLUtilities.fromHTML(toolTip);
|
||||
getAccessibleContext().setAccessibleDescription(fromHTML);
|
||||
|
||||
Icon icon = getNodeIcon(node, expanded);
|
||||
if (icon == null) {
|
||||
|
||||
Reference in New Issue
Block a user