mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Merge remote-tracking branch
'origin/GP-1566-dragonmacher-data-types-popup-fix' into Ghidra_10.1 (Closes #3678)
This commit is contained in:
@@ -340,6 +340,15 @@ public class DataTypesProvider extends ComponentProviderAdapter {
|
|||||||
clickedNode = archiveGTree.getNodeForLocation(point.x, point.y);
|
clickedNode = archiveGTree.getNodeForLocation(point.x, point.y);
|
||||||
isToolbarAction = false;
|
isToolbarAction = false;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
// Called via a keybinding; use the selected node in the tree to represent the clicked
|
||||||
|
// node. This allows users to use a keybinding to show the context menu and have all
|
||||||
|
// actions installed.
|
||||||
|
TreePath path = archiveGTree.getSelectionPath();
|
||||||
|
if (path != null) {
|
||||||
|
clickedNode = (GTreeNode) path.getLastPathComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return new DataTypesActionContext(this, plugin.getProgram(), archiveGTree, clickedNode,
|
return new DataTypesActionContext(this, plugin.getProgram(), archiveGTree, clickedNode,
|
||||||
isToolbarAction);
|
isToolbarAction);
|
||||||
|
|||||||
Reference in New Issue
Block a user