mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-3352 - Fixed table dispose() exception
This commit is contained in:
parent
102729174d
commit
3fbcb32b65
3 changed files with 19 additions and 18 deletions
|
@ -162,7 +162,7 @@ public class FunctionStartRFParamsDialog extends ReusableDialogComponentProvider
|
|||
this.plugin = plugin;
|
||||
rowObjects = new ArrayList<>();
|
||||
trainingSource = plugin.getCurrentProgram();
|
||||
JPanel panel = createPanel();
|
||||
JPanel panel = createWorkPanel();
|
||||
addWorkPanel(panel);
|
||||
trainButton = addTrainModelsButton();
|
||||
addHideDialogButton();
|
||||
|
@ -268,7 +268,7 @@ public class FunctionStartRFParamsDialog extends ReusableDialogComponentProvider
|
|||
return trainModelsButton;
|
||||
}
|
||||
|
||||
private JPanel createPanel() {
|
||||
private JPanel createWorkPanel() {
|
||||
JPanel mainPanel = new JPanel(new BorderLayout());
|
||||
|
||||
tableModel = new RandomForestTableModel(plugin.getTool(), rowObjects);
|
||||
|
@ -277,7 +277,7 @@ public class FunctionStartRFParamsDialog extends ReusableDialogComponentProvider
|
|||
GTable modelStatsTable = evalPanel.getTable();
|
||||
modelStatsTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
||||
evalPanel.setBorder(BorderFactory.createTitledBorder(MODEL_STATISTICS));
|
||||
mainPanel.add(evalPanel, BorderLayout.EAST);
|
||||
mainPanel.add(evalPanel, BorderLayout.CENTER);
|
||||
|
||||
DockingAction applyAction = new ActionBuilder(APPLY_MODEL_ACTION_NAME, plugin.getName())
|
||||
.description("Apply Model to Source Program")
|
||||
|
|
|
@ -28,7 +28,7 @@ public abstract class AbstractGTableModel<T> extends AbstractTableModel
|
|||
|
||||
private List<T> lastSelectedObjects = new ArrayList<>();
|
||||
|
||||
private boolean isDisposed;
|
||||
protected boolean isDisposed;
|
||||
|
||||
@Override
|
||||
public T getRowObject(int row) {
|
||||
|
|
|
@ -668,6 +668,7 @@ public abstract class ThreadedTableModel<ROW_OBJECT, DATA_SOURCE>
|
|||
doClearData();
|
||||
disposeDynamicColumnData();
|
||||
clearCache();
|
||||
isDisposed = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue