/** * Returns the configured class path entry. * * @return the configured class path entry */ public IClasspathEntry getResult() { return fSourceAttachmentBlock.getNewEntry(); } }
/** * Returns the configured class path entry. * * @return the configured class path entry */ public IClasspathEntry getResult() { return fSourceAttachmentBlock.getNewEntry(); } }
/** * Returns the configured class path entry */ public IClasspathEntry getResult() { return fSourceAttachmentBlock.getNewEntry(); } }
/** * @deprecated Use {@link #getRunnable(Shell, IClasspathEntry, IJavaProject, IPath)} */ public IRunnableWithProgress getRunnable(final Shell shell) { return getRunnable(shell, getNewEntry(), fProject, fContainerPath); }
public boolean performOk() { if (fSourceAttachmentBlock != null) { try { IClasspathEntry entry= fSourceAttachmentBlock.getNewEntry(); if (entry.equals(fEntry)) { return true; // no change } IRunnableWithProgress runnable= SourceAttachmentBlock.getRunnable(getShell(), entry, fRoot.getJavaProject(), fContainerPath); PlatformUI.getWorkbench().getProgressService().run(true, true, runnable); } catch (InvocationTargetException e) { String title= PreferencesMessages.SourceAttachmentPropertyPage_error_title; String message= PreferencesMessages.SourceAttachmentPropertyPage_error_message; ExceptionHandler.handle(e, getShell(), title, message); return false; } catch (InterruptedException e) { // cancelled return false; } } return true; }
@Override public boolean performOk() { if (fSourceAttachmentBlock != null) { try { IClasspathEntry entry= fSourceAttachmentBlock.getNewEntry(); if (entry.equals(fEntry)) { return true; // no change } IRunnableWithProgress runnable= SourceAttachmentBlock.getRunnable(getShell(), entry, fRoot.getJavaProject(), fContainerPath, fEntry.getReferencingEntry() != null); PlatformUI.getWorkbench().getProgressService().run(true, true, runnable); } catch (InvocationTargetException e) { String title= PreferencesMessages.SourceAttachmentPropertyPage_error_title; String message= PreferencesMessages.SourceAttachmentPropertyPage_error_message; ExceptionHandler.handle(e, getShell(), title, message); return false; } catch (InterruptedException e) { // cancelled return false; } } return true; }
@Override public boolean performOk() { if (fSourceAttachmentBlock != null) { try { IClasspathEntry entry= fSourceAttachmentBlock.getNewEntry(); if (entry.equals(fEntry)) { return true; // no change } IRunnableWithProgress runnable= SourceAttachmentBlock.getRunnable(getShell(), entry, fRoot.getJavaProject(), fContainerPath, fEntry.getReferencingEntry() != null); PlatformUI.getWorkbench().getProgressService().run(true, true, runnable); } catch (InvocationTargetException e) { String title= PreferencesMessages.SourceAttachmentPropertyPage_error_title; String message= PreferencesMessages.SourceAttachmentPropertyPage_error_message; ExceptionHandler.handle(e, getShell(), title, message); return false; } catch (InterruptedException e) { // cancelled return false; } } return true; }