Examples of removeAll()


Examples of org.eclipse.jface.action.IMenuManager.removeAll()

    private void createTopMenu()
    {
        IActionBars bars = getViewSite().getActionBars();
        IMenuManager menu = bars.getMenuManager();
        menu.removeAll();
        for (final IBundleRepository rep : SigilCore.getGlobalRepositoryManager().getRepositories())
        {
            if (treeViewer.getInput() == null)
            {
                treeViewer.setInput(rep);
View Full Code Here

Examples of org.eclipse.jface.action.IToolBarManager.removeAll()

                for( IContributionItem item : toolbarManager.getItems() ) {
                    mgr.appendToGroup(CONFIG_MENU_GROUP, item);
                }
            } else {
                IToolBarManager mgr = getViewSite().getActionBars().getToolBarManager();
                mgr.removeAll();
                createToolBar();
                mgr.remove(CONFIG_MENU_GROUP);
                // mgr.add(new GroupMarker(CONFIG_MENU_GROUP));
            }
            getViewSite().getActionBars().updateActionBars();
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.removeAll()

    // ok, we passed the checking, now let's create the actions.
    tableMenu.add(action);
    tableMenu.addMenuListener(new IMenuListener() {

      public void menuAboutToShow(IMenuManager manager) {
        tableMenu.removeAll();
        fillTableMenu(tablePart, cellRow, cellColumn, tableMenu);
      }
    });
    menu.appendToGroup(PageDesignerActionConstants.GROUP_CONTAINER,
        tableMenu);
View Full Code Here

Examples of org.eclipse.jface.action.SubMenuManager.removeAll()

    if (editable) {
      final SubMenuManager quickFixMenu = new SubMenuManager(contextMenu);
      quickFixMenu.setVisible(true);
      quickFixMenu.addMenuListener(new IMenuListener() {
        public void menuAboutToShow(IMenuManager manager) {
          quickFixMenu.removeAll();
          addProposals(quickFixMenu);
        }
      });
    }
View Full Code Here

Examples of org.eclipse.jface.action.ToolBarManager.removeAll()

  }

  private void initializeToolbars(Composite parent) {
    ToolBarManager tbm = CompareViewerPane.getToolBarManager(parent);
    if (tbm != null) {
      tbm.removeAll();

      // define groups
      tbm.add(new Separator("modes")); //$NON-NLS-1$
      tbm.add(new Separator("merge")); //$NON-NLS-1$
      tbm.add(new Separator("navigation")); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.search.ui.text.AbstractTextSearchResult.removeAll()

        return fScope;
    }

    public IStatus run(final IProgressMonitor monitor) {
        AbstractTextSearchResult textResult = (AbstractTextSearchResult) getSearchResult();
        textResult.removeAll();

        Pattern searchPattern = getSearchPattern();
        boolean searchInBinaries = !isScopeAllFileTypes();

        TextSearchResultCollector collector = new TextSearchResultCollector(textResult, isFileNameSearch(),
View Full Code Here

Examples of org.eclipse.swt.widgets.Combo.removeAll()

    private void updateBreaks() {
        Combo breaksCombo = getCombo(COMBO_BREAKTYPE);
        String currentAttr = getCombo(COMBO_ATTRIBUTES).getText();
        String value = breaksCombo.getText();
        breaksCombo.removeAll();
        if (isNumber(currentAttr)) { //show numeric break types
            breaksCombo.add(Messages.StyleEditor_theme_equalInterval);
            breaksCombo.add(Messages.StyleEditor_theme_quantile);
            breaksCombo.add(Messages.StyleEditor_theme_uniques);
            //breaksCombo.add(Messages.StyleEditor_theme_standardDeviation);
View Full Code Here

Examples of org.eclipse.swt.widgets.List.removeAll()

                        return _updateSources();
                    }
                }

                List list = _sources.getListControl(_getParent(_sources));
                list.removeAll();
                return false;
            }

            private String _lastString = null;
        };
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.removeAll()

          {
            label0.setText("Please fill in the Access key and Secret key first !!!");
            return;
          }
          AWSConnect();
          BucketTable.removeAll();
              for (int i=0; i<myBuckets.length; i++)
              {
                TableItem item = new TableItem(BucketTable, SWT.NONE);
                S3Object[] objects = s3Service.listObjects(myBuckets[i]);
                item.setText(new String[] { myBuckets[i].getName(), myBuckets[i].getCreationDate().toString(), Integer.toString(objects.length)});
View Full Code Here

Examples of org.eclipse.swt.widgets.Tree.removeAll()

            public void run() {
                getDetails().showPage(information);
                Tree tree = ((TreeViewer) viewer).getTree();
                if (tree != null && !tree.isDisposed()) {
                    tree.removeAll();
                }
            }
        });
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.