- InteractiveDialog load = new InteractiveDialog("Load Component...", "Load", "Cancel", "Path");
- load.open();
- if(InteractiveDialog.InteractiveDialogState.ACCEPTED.equals(load.getState()))
+ 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)