Test fixes

This commit is contained in:
dragonmacher 2023-08-09 12:27:28 -04:00
parent 3938a7f97f
commit 2946c4ecf7
2 changed files with 1 additions and 13 deletions

View File

@ -138,13 +138,7 @@ public class TableServicePlugin extends ProgramPlugin
GhidraProgramTableModel<T> model, String windowSubMenu, Navigatable navigatable) {
GoToService gotoService = tool.getService(GoToService.class);
if (gotoService != null && navigatable == null) {
navigatable = gotoService.getDefaultNavigatable();
}
Program program = model.getProgram();
TableComponentProvider<T> cp = new TableComponentProvider<>(this, title, tableTypeName,
model, program.getDomainFile().getName(), gotoService, windowSubMenu, navigatable);
addProvider(program, cp);
@ -157,14 +151,8 @@ public class TableServicePlugin extends ProgramPlugin
String windowSubMenu, Navigatable navigatable) {
GoToService gotoService = tool.getService(GoToService.class);
if (gotoService != null && navigatable == null) {
navigatable = gotoService.getDefaultNavigatable();
}
MarkerService markerService = tool.getService(MarkerService.class);
Program program = model.getProgram();
TableComponentProvider<T> cp = new TableComponentProvider<>(this, title, tableTypeName,
model, program.getDomainFile().getName(), gotoService, markerService, markerColor,
markerIcon, windowSubMenu, navigatable);

View File

@ -127,7 +127,7 @@ public class GhidraTable extends GTable {
return;
}
if (this.navigatable == null) {
if (navigationKeyListener == null) {
navigationKeyListener = new KeyAdapter() {
@Override
public void keyPressed(KeyEvent e) {