@Override protected void doSetInput(IEditorInput input) throws CoreException { super.doSetInput(input); updatePartControl(); }
@Override protected void doSetInput(IEditorInput input) throws CoreException { super.doSetInput(input); if (fParent != null && !fParent.isDisposed()) updatePartControl(getEditorInput()); }
protected void doSetInput(IEditorInput input) throws CoreException { super.doSetInput(input); if (fParent != null && !fParent.isDisposed()) updatePartControl(getEditorInput()); }
protected final void setInputWithNotify(IEditorInput input) { try { doSetInput(input); /* * The following bugs explain why we fire this property change: * https://bugs.eclipse.org/bugs/show_bug.cgi?id=90283 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=92049 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=92286 */ firePropertyChange(IEditorPart.PROP_INPUT); } catch (CoreException x) { String title= EditorMessages.Editor_error_setinput_title; String msg= EditorMessages.Editor_error_setinput_message; Shell shell= getSite().getShell(); ErrorDialog.openError(shell, title, msg, x.getStatus()); } }
@Override protected final void setInputWithNotify(IEditorInput input) { try { doSetInput(input); /* * The following bugs explain why we fire this property change: * https://bugs.eclipse.org/bugs/show_bug.cgi?id=90283 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=92049 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=92286 */ firePropertyChange(IEditorPart.PROP_INPUT); } catch (CoreException x) { String title= EditorMessages.Editor_error_setinput_title; String msg= EditorMessages.Editor_error_setinput_message; Shell shell= getSite().getShell(); ErrorDialog.openError(shell, title, msg, x.getStatus()); } }
@Override protected final void setInputWithNotify(IEditorInput input) { try { doSetInput(input); /* * The following bugs explain why we fire this property change: * https://bugs.eclipse.org/bugs/show_bug.cgi?id=90283 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=92049 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=92286 */ firePropertyChange(IEditorPart.PROP_INPUT); } catch (CoreException x) { String title= EditorMessages.Editor_error_setinput_title; String msg= EditorMessages.Editor_error_setinput_message; Shell shell= getSite().getShell(); ErrorDialog.openError(shell, title, msg, x.getStatus()); } }
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { try { if (getDocumentProvider() instanceof IDocumentProviderExtension2) { IDocumentProviderExtension2 extension= (IDocumentProviderExtension2) getDocumentProvider(); extension.setProgressMonitor(monitor); } doSetInput(input); } catch (CoreException x) { throw new InvocationTargetException(x); } finally { if (getDocumentProvider() instanceof IDocumentProviderExtension2) { IDocumentProviderExtension2 extension= (IDocumentProviderExtension2) getDocumentProvider(); extension.setProgressMonitor(null); } } } };
extension.synchronize(input); } else { doSetInput(input);
extension.synchronize(input); } else { doSetInput(input);
extension.synchronize(input); } else { doSetInput(input);