@Override protected void createSuperTypeControl(final Composite parent) { try { createSuperTypeList(parent); } catch (JavaModelException exception) { ExceptionHandler.handle(exception, getShell(), RefactoringMessages.ExtractSupertypeMemberPage_extract_supertype, RefactoringMessages.PullUpInputPage_exception); } }
/** * {@inheritDoc} */ protected void createSuperTypeControl(final Composite parent) { try { createSuperTypeList(parent); } catch (JavaModelException exception) { ExceptionHandler.handle(exception, getShell(), RefactoringMessages.ExtractSupertypeMemberPage_extract_supertype, RefactoringMessages.PullUpInputPage_exception); } }
@Override protected void createSuperTypeControl(final Composite parent) { try { createSuperTypeList(parent); } catch (JavaModelException exception) { ExceptionHandler.handle(exception, getShell(), RefactoringMessages.ExtractSupertypeMemberPage_extract_supertype, RefactoringMessages.PullUpInputPage_exception); } }
final SupertypeSelectionDialog dialog= new SupertypeSelectionDialog(getShell()); dialog.create(); dialog.setInput(list.toArray());
final SupertypeSelectionDialog dialog= new SupertypeSelectionDialog(getShell()); dialog.create(); dialog.setInput(list.toArray());
/** * Computes the candidate types. * * @throws InterruptedException * if the computation has been interrupted */ protected void computeCandidateTypes() throws InterruptedException { if (fCandidateTypes != null && fCandidateTypes.length > 0) return; try { getWizard().getContainer().run(true, true, new IRunnableWithProgress() { @Override public void run(final IProgressMonitor monitor) throws InvocationTargetException { try { fCandidateTypes= getProcessor().getCandidateTypes(new RefactoringStatus(), monitor); } finally { monitor.done(); } } }); } catch (InvocationTargetException exception) { ExceptionHandler.handle(exception, getShell(), RefactoringMessages.ExtractSupertypeMemberPage_extract_supertype, RefactoringMessages.PullUpInputPage_exception); } catch (InterruptedException exception) { fCandidateTypes= new IType[0]; throw new InterruptedException(); } catch (OperationCanceledException exception) { fCandidateTypes= new IType[0]; } }
/** * Computes the candidate types. * * @throws InterruptedException * if the computation has been interrupted */ protected void computeCandidateTypes() throws InterruptedException { if (fCandidateTypes != null && fCandidateTypes.length > 0) return; try { getWizard().getContainer().run(true, true, new IRunnableWithProgress() { @Override public void run(final IProgressMonitor monitor) throws InvocationTargetException { try { fCandidateTypes= getProcessor().getCandidateTypes(new RefactoringStatus(), monitor); } finally { monitor.done(); } } }); } catch (InvocationTargetException exception) { ExceptionHandler.handle(exception, getShell(), RefactoringMessages.ExtractSupertypeMemberPage_extract_supertype, RefactoringMessages.PullUpInputPage_exception); } catch (InterruptedException exception) { fCandidateTypes= new IType[0]; throw new InterruptedException(); } catch (OperationCanceledException exception) { fCandidateTypes= new IType[0]; } }
/** * Computes the candidate types. * * @throws InterruptedException * if the computation has been interrupted */ protected void computeCandidateTypes() throws InterruptedException { if (fCandidateTypes != null && fCandidateTypes.length > 0) return; try { getWizard().getContainer().run(true, true, new IRunnableWithProgress() { public void run(final IProgressMonitor monitor) throws InvocationTargetException { try { fCandidateTypes= getProcessor().getCandidateTypes(new RefactoringStatus(), monitor); } finally { monitor.done(); } } }); } catch (InvocationTargetException exception) { ExceptionHandler.handle(exception, getShell(), RefactoringMessages.ExtractSupertypeMemberPage_extract_supertype, RefactoringMessages.PullUpInputPage_exception); } catch (InterruptedException exception) { fCandidateTypes= new IType[0]; throw new InterruptedException(); } catch (OperationCanceledException exception) { fCandidateTypes= new IType[0]; } }