mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-4583 Fixed issue where open program were not being shown when the OpenVersionedFileDialog was being shown from diff
This commit is contained in:
parent
c4ea004218
commit
a3f16ff05f
30 changed files with 790 additions and 661 deletions
|
@ -13,6 +13,8 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import static ghidra.framework.main.DataTreeDialogType.*;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
|
@ -137,7 +139,7 @@ public class FixLangId extends GhidraScript {
|
|||
|
||||
public DomainFile askProgramFile(String title) {
|
||||
final DomainFile[] domainFile = new DomainFile[] { null };
|
||||
final DataTreeDialog dtd = new DataTreeDialog(null, title, DataTreeDialog.OPEN);
|
||||
final DataTreeDialog dtd = new DataTreeDialog(null, title, OPEN);
|
||||
dtd.addOkActionListener(e -> {
|
||||
dtd.close();
|
||||
domainFile[0] = dtd.getDomainFile();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue