mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-2986 - ComponentProvder and dialog cleanup on dispose
This commit is contained in:
@@ -24,7 +24,7 @@ import javax.swing.*;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import docking.DialogComponentProvider;
|
||||
import docking.ReusableDialogComponentProvider;
|
||||
import docking.action.DockingAction;
|
||||
import docking.action.builder.ActionBuilder;
|
||||
import docking.widgets.combobox.GComboBox;
|
||||
@@ -50,7 +50,7 @@ import ghidra.util.task.*;
|
||||
* for learning function starts, train models, see performance statistics, and
|
||||
* apply the models.
|
||||
*/
|
||||
public class FunctionStartRFParamsDialog extends DialogComponentProvider {
|
||||
public class FunctionStartRFParamsDialog extends ReusableDialogComponentProvider {
|
||||
|
||||
private static final String INITIAL_BYTES_TEXT = "Number of Initial Bytes (CSV)";
|
||||
private static final String INITIAL_BYTES_TIP =
|
||||
|
||||
@@ -96,6 +96,15 @@ public class RandomForestFunctionFinderPlugin extends ProgramPlugin
|
||||
initOptions(getTool().getOptions("Random Forest Function Finder"));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void dispose() {
|
||||
super.dispose();
|
||||
|
||||
if (paramsDialog != null) {
|
||||
paramsDialog.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void optionsChanged(ToolOptions options, String optionName, Object oldValue,
|
||||
Object newValue) throws OptionsVetoException {
|
||||
|
||||
Reference in New Issue
Block a user