Пример #1
0
 protected void restoreState(IMemento memento) {
   super.restoreState(memento);
   // fMemberFilterActionGroup.restoreState(memento);
   getViewer().getControl().setRedraw(false);
   getViewer().refresh();
   getViewer().getControl().setRedraw(true);
 }
Пример #2
0
 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);
 }
Пример #3
0
  /*
   * @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());

  }
Пример #4
0
 /*
  * @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);
 }
Пример #5
0
 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));
             }
           });
 }
Пример #6
0
 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);
         }
       });
 }
Пример #7
0
 /*
  * Implements method from IViewPart.
  */
 public void saveState(IMemento memento) {
   super.saveState(memento);
   // fMemberFilterActionGroup.saveState(memento);
 }
Пример #8
0
 /*
  * @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());
 }