private void runBatchedClear() { synchronized(this) { if (!fBatchedClearAll) { return; } fBatchedClearAll= false; updateBusyLabel(); } getViewPart().updateLabel(); clear(); }
private void runBatchedClear() { synchronized(this) { if (!fBatchedClearAll) { return; } fBatchedClearAll= false; updateBusyLabel(); } getViewPart().updateLabel(); clear(); }
/** * Sets the layout of this search result page. The layout must be on of * <code>FLAG_LAYOUT_FLAT</code> or <code>FLAG_LAYOUT_TREE</code> and * it must be one of the values passed during construction of this search * result page. * @param layout the new layout * * @see AbstractTextSearchViewPage#isLayoutSupported(int) */ public void setLayout(int layout) { Assert.isTrue(countBits(layout) == 1); Assert.isTrue(isLayoutSupported(layout)); if (countBits(fSupportedLayouts) < 2) return; if (fCurrentLayout == layout) return; fCurrentLayout = layout; ISelection selection = fViewer.getSelection(); disconnectViewer(); disposeViewer(); createViewer(fViewerContainer, layout); fViewerContainer.layout(true); connectViewer(fInput); fViewer.setSelection(selection, true); getSettings().put(KEY_LAYOUT, layout); getViewPart().updateLabel(); }
/** * Sets the layout of this search result page. The layout must be on of * <code>FLAG_LAYOUT_FLAT</code> or <code>FLAG_LAYOUT_TREE</code> and * it must be one of the values passed during construction of this search * result page. * @param layout the new layout * * @see AbstractTextSearchViewPage#isLayoutSupported(int) */ public void setLayout(int layout) { Assert.isTrue(countBits(layout) == 1); Assert.isTrue(isLayoutSupported(layout)); if (countBits(fSupportedLayouts) < 2) return; if (fCurrentLayout == layout) return; fCurrentLayout = layout; ISelection selection = fViewer.getSelection(); disconnectViewer(); disposeViewer(); createViewer(fViewerContainer, layout); fViewerContainer.layout(true); connectViewer(fInput); fViewer.setSelection(selection, true); getSettings().put(KEY_LAYOUT, layout); getViewPart().updateLabel(); }
@Override public void setInput(ISearchResult newSearch, Object viewState) { if (newSearch != null && !(newSearch instanceof AbstractTextSearchResult)) return; // ignore AbstractTextSearchResult oldSearch= fInput; if (oldSearch != null) { disconnectViewer(); removeFilterActionsFromViewMenu(fFilterActions); oldSearch.removeListener(fListener); AnnotationManagers.removeSearchResult(getSite().getWorkbenchWindow(), oldSearch); } fInput= (AbstractTextSearchResult) newSearch; if (fInput != null) { AnnotationManagers.addSearchResult(getSite().getWorkbenchWindow(), fInput); fInput.addListener(fListener); connectViewer(fInput); if (viewState instanceof ISelection) fViewer.setSelection((ISelection) viewState, true); else navigateNext(true); updateBusyLabel(); turnOffDecoration(); scheduleUIUpdate(); fFilterActions= addFilterActionsToViewMenu(); } else { getViewPart().updateLabel(); } }
getViewPart().updateLabel();
getViewPart().updateLabel();