mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-2986 - ComponentProvder and dialog cleanup on dispose
This commit is contained in:
parent
e5a8f26347
commit
c252e3b905
174 changed files with 1418 additions and 1529 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue