private IType selectType(IAction action, List types) {
PopupTableSelector selector = new PopupTableSelector(getShell(), types);
selector.setTitle(action.getText());
selector.setCommandForward(action.getActionDefinitionId());
selector.setLabelProvider(new TypeLabelProvider());
return (IType) selector.select();
}
private void openPairWizard(IType targetType, String[] pairNames) throws CoreException, JavaModelException {
IWorkbench workbench = PlatformUI.getWorkbench();
IWizard wizard = createNewPairWizard(targetType, workbench);