- String[] result = DialogManager.openMultiTextDialog("Load Component...", "Load", "Cancel", "Path");
- if(result != null)
+ Shell fdShell = new Shell();
+ FileDialog fd = new FileDialog(fdShell, SWT.OPEN);
+ fd.setText("Load component...");
+ fd.setFilterExtensions(new String[] { "*.json" });
+ String result = fd.open();
+ fdShell.dispose();
+ if (result != null)