mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-3709 - Updated GhidraTable to simplify navigation installation
This commit is contained in:
parent
d8f61fc7b2
commit
999fe21b33
30 changed files with 128 additions and 149 deletions
|
@ -21,7 +21,6 @@ import javax.swing.*;
|
|||
|
||||
import docking.WindowPosition;
|
||||
import docking.widgets.label.GLabel;
|
||||
import ghidra.app.services.GoToService;
|
||||
import ghidra.bitpatterns.info.*;
|
||||
import ghidra.framework.plugintool.ComponentProviderAdapter;
|
||||
import ghidra.program.model.address.AddressSet;
|
||||
|
@ -67,10 +66,7 @@ public class PatternEvalTableProvider extends ComponentProviderAdapter {
|
|||
new GhidraThreadedTablePanel<>(patternEvalModel, 1000);
|
||||
GhidraTable table = threadedPanel.getTable();
|
||||
|
||||
GoToService goToService = tool.getService(GoToService.class);
|
||||
if (goToService != null) {
|
||||
table.installNavigation(goToService, goToService.getDefaultNavigatable());
|
||||
}
|
||||
table.installNavigation(tool);
|
||||
table.setRowSelectionAllowed(true);
|
||||
table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
|
||||
table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue