JDT Open Type Dialog programmatically
chqu1012 opened this issue · 0 comments
chqu1012 commented
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);
}
}