@Override public void widgetSelected(SelectionEvent event) { Shell shell= getSite().getShell(); try { IClasspathEntry result= BuildPathDialogAccess.configureSourceAttachment(shell, entry, canEditEncoding); if (result != null) { applySourceAttachment(shell, result, jproject, containerPath, entry.getReferencingEntry() != null); verifyInput(getEditorInput()); } } catch (CoreException e) { String title= JavaEditorMessages.SourceAttachmentForm_error_title; String message= JavaEditorMessages.SourceAttachmentForm_error_message; ExceptionHandler.handle(e, shell, title, message); } }
@Override public void widgetSelected(SelectionEvent event) { Shell shell= getSite().getShell(); try { IClasspathEntry result= BuildPathDialogAccess.configureSourceAttachment(shell, entry, canEditEncoding); if (result != null) { applySourceAttachment(shell, result, jproject, containerPath, entry.getReferencingEntry() != null); verifyInput(getEditorInput()); } } catch (CoreException e) { String title= JavaEditorMessages.SourceAttachmentForm_error_title; String message= JavaEditorMessages.SourceAttachmentForm_error_message; ExceptionHandler.handle(e, shell, title, message); } }