protected void restoreState(IMemento memento) { super.restoreState(memento); // fMemberFilterActionGroup.restoreState(memento); getViewer().getControl().setRedraw(false); getViewer().refresh(); getViewer().getControl().setRedraw(true); }
protected void fillToolBar(IToolBarManager tbm) { // Add by Oliver. 2009-08-17. This toolbar menu is to sort the members // sequence. Before the import segment is at the bottom of this view. // Now we can control the display sequence by this action. tbm.add(new LexicalSortingAction()); fMemberFilterActionGroup.contributeToToolBar(tbm); super.fillToolBar(tbm); }
/* * @see org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart#fillActionBars(org.eclipse.ui.IActionBars) * @since 3.2 */ protected void fillActionBars(IActionBars actionBars) { super.fillActionBars(actionBars); // fCategoryFilterActionGroup = new // CategoryFilterActionGroup(getViewer(), // getViewSite().getId(), getCategoryFilterActionGroupInput()); // fCategoryFilterActionGroup.contributeToViewMenu(actionBars // .getMenuManager()); }
/* * @see org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart#dispose() */ public void dispose() { // if (fMemberFilterActionGroup != null) { // fMemberFilterActionGroup.dispose(); // fMemberFilterActionGroup = null; // } // if (fCategoryFilterActionGroup != null) { // fCategoryFilterActionGroup.dispose(); // fCategoryFilterActionGroup = null; // } super.dispose(); DLTKUIPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(this); }
protected void hookViewerListeners() { super.hookViewerListeners(); getViewer() .addDoubleClickListener( new IDoubleClickListener() { public void doubleClick(DoubleClickEvent event) { TreeViewer viewer = (TreeViewer) getViewer(); Object element = ((IStructuredSelection) event.getSelection()).getFirstElement(); if (viewer.isExpandable(element)) viewer.setExpandedState(element, !viewer.getExpandedState(element)); } }); }
public void createPartControl(Composite parent) { super.createPartControl(parent); // Add by Oliver,2009-08-17. This part code is for sorting the elements // in the member view. If we want to use the toolbar menu to control the // order of element in the member view, please use // LexicalSortingAction. final SourcePositionSorter fSourcePositonComparator = new SourcePositionSorter(); BusyIndicator.showWhile( viewer.getControl().getDisplay(), new Runnable() { public void run() { viewer.setComparator(fSourcePositonComparator); } }); }
/* * Implements method from IViewPart. */ public void saveState(IMemento memento) { super.saveState(memento); // fMemberFilterActionGroup.saveState(memento); }
/* * @see org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart#setInput(java.lang.Object) * @since 3.2 */ protected void setInput(Object input) { super.setInput(input); // if (fCategoryFilterActionGroup != null) // fCategoryFilterActionGroup // .setInput(getCategoryFilterActionGroupInput()); }