@Override protected void handleEditorInputChanged() { super.handleEditorInputChanged(); updatePartControl(); }
@Override protected void handleEditorInputChanged() { super.handleEditorInputChanged(); if (fParent != null && !fParent.isDisposed()) updatePartControl(getEditorInput()); }
protected void handleEditorInputChanged() { super.handleEditorInputChanged(); if (fParent != null && !fParent.isDisposed()) updatePartControl(getEditorInput()); }
/** * Checks the state of the given editor input. * @param input the editor input whose state is to be checked * @since 2.0 */ protected void sanityCheckState(IEditorInput input) { IDocumentProvider p= getDocumentProvider(); if (p == null) return; if (p instanceof IDocumentProviderExtension3) { IDocumentProviderExtension3 p3= (IDocumentProviderExtension3) p; long stamp= p.getModificationStamp(input); if (stamp != fModificationStamp) { fModificationStamp= stamp; if (!p3.isSynchronized(input)) handleEditorInputChanged(); } } else { if (fModificationStamp == -1) fModificationStamp= p.getSynchronizationStamp(input); long stamp= p.getModificationStamp(input); if (stamp != fModificationStamp) { fModificationStamp= stamp; if (stamp != p.getSynchronizationStamp(input)) handleEditorInputChanged(); } } updateState(getEditorInput()); updateStatusField(ITextEditorActionConstants.STATUS_CATEGORY_ELEMENT_STATE); }
/** * Checks the state of the given editor input. * @param input the editor input whose state is to be checked * @since 2.0 */ protected void sanityCheckState(IEditorInput input) { IDocumentProvider p= getDocumentProvider(); if (p == null) return; if (p instanceof IDocumentProviderExtension3) { IDocumentProviderExtension3 p3= (IDocumentProviderExtension3) p; long stamp= p.getModificationStamp(input); if (stamp != fModificationStamp) { fModificationStamp= stamp; if (!p3.isSynchronized(input)) handleEditorInputChanged(); } } else { if (fModificationStamp == -1) fModificationStamp= p.getSynchronizationStamp(input); long stamp= p.getModificationStamp(input); if (stamp != fModificationStamp) { fModificationStamp= stamp; if (stamp != p.getSynchronizationStamp(input)) handleEditorInputChanged(); } } updateState(getEditorInput()); updateStatusField(ITextEditorActionConstants.STATUS_CATEGORY_ELEMENT_STATE); }
/** * Checks the state of the given editor input. * @param input the editor input whose state is to be checked * @since 2.0 */ protected void sanityCheckState(IEditorInput input) { IDocumentProvider p= getDocumentProvider(); if (p == null) return; if (p instanceof IDocumentProviderExtension3) { IDocumentProviderExtension3 p3= (IDocumentProviderExtension3) p; long stamp= p.getModificationStamp(input); if (stamp != fModificationStamp) { fModificationStamp= stamp; if (!p3.isSynchronized(input)) handleEditorInputChanged(); } } else { if (fModificationStamp == -1) fModificationStamp= p.getSynchronizationStamp(input); long stamp= p.getModificationStamp(input); if (stamp != fModificationStamp) { fModificationStamp= stamp; if (stamp != p.getSynchronizationStamp(input)) handleEditorInputChanged(); } } updateState(getEditorInput()); updateStatusField(ITextEditorActionConstants.STATUS_CATEGORY_ELEMENT_STATE); }
performSaveAs(pm); if (pm.isCanceled()) handleEditorInputChanged(); } else { close(false);
performSaveAs(pm); if (pm.isCanceled()) handleEditorInputChanged(); } finally { pm.done();
performSaveAs(pm); if (pm.isCanceled()) handleEditorInputChanged(); } finally { pm.done();