GP-1183 - Version Tracking - Cache programs opened in the New Session

Panel
This commit is contained in:
dragonmacher 2021-08-03 16:03:05 -04:00
parent 40abafd9c8
commit 7d88cd9b35
5 changed files with 192 additions and 134 deletions

View file

@ -29,7 +29,7 @@ public abstract class AbstractMagePanelManager<T> implements PanelManager {
private WizardState<T> state;
protected AbstractMagePanelManager(WizardState<T> initialState) {
panelPath = new Stack<Integer>();
panelPath = new Stack<>();
this.state = initialState;
}
@ -303,7 +303,7 @@ public abstract class AbstractMagePanelManager<T> implements PanelManager {
++index;
}
doFinish();
initialize();
initialize(); // reset the panels
wizardManager.enableNavigation();
}

View file

@ -52,5 +52,8 @@ public interface MagePanel<T> extends WizardPanel {
*/
public void updateStateObjectWithPanelInfo(WizardState<T> state);
/**
* Called when the wizard is cancelled or otherwise finished being shown
*/
public void dispose();
}

View file

@ -1,6 +1,5 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -81,7 +80,8 @@ public interface PanelManager {
public void cancel();
/**
* Set up the panel process.
* Set up the panel process. This may also be called to clear the state of an existing panel,
* such as when the overall wizard is finished.
*/
public void initialize();