Closed chqu1012 closed 5 years ago
SelectionDialog dialog = new OpenTypeSelectionDialog(new Shell(), true, PlatformUI.getWorkbench().getProgressService(), null, IJavaSearchConstants.TYPE); dialog.setTitle(JavaUIMessages.OpenTypeAction_dialogTitle); dialog.setMessage(JavaUIMessages.OpenTypeAction_dialogMessage); int result = dialog.open(); if (result == SWT.OK) { for (Object obj : dialog.getResult()) { System.out.println(obj); } }