Package org.eclipse.jface.action

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


       
        // force the toolbar to refresh
        //
        IToolBarManager tbm = getViewSite().getActionBars().getToolBarManager();
        tbm.markDirty();
        tbm.update(true);
        getViewSite().getActionBars().updateActionBars();

        for( IContributionItem item : tbm.getItems() ) {
            ActionContributionItem action = (ActionContributionItem) item;
            action.getAction().setEnabled(action.getAction().isEnabled());
View Full Code Here


        // add actions to the bar
        tbm.add(lockSelectionAction);

        // TODO

        tbm.update(true);
    }

    private void setupPopupMenu() {
    }
View Full Code Here

    coolBar.add(controlToolbar1);
   
    controlToolbar1.add(stopAction);
    controlToolbar1.add(pauseAction);

    controlToolbar1.update(true);
   
    IToolBarManager controlToolbar2 = new ToolBarManager(coolBar.getStyle());
    coolBar.add(controlToolbar2);

    controlToolbar2.add(seekMinusAction);
View Full Code Here

            logViewer.getTreeViewer().getTree().layout(true, true);
          }
        });
    sync.setEnabled(false);
    toolBarManager.add(sync);
    toolBarManager.update(true);
  }

 
  public void setFocus() {
View Full Code Here

    debugMode.setImageDescriptor(Activator.imageDescriptorFromPlugin(
        Activator.PLUGIN_ID, "/icons/exec_view_obj.gif"));
    IToolBarManager toolBarManager = createForm.getToolBarManager();
    //toolBarManager.add(launch);
    toolBarManager.add(debugMode);
    toolBarManager.update(true);
    Composite body = createForm.getBody();
    body.setLayout(new FillLayout());
    tk.decorateFormHeading(createForm);
    SashForm composite = new SashForm(body, SWT.NONE);
    super.createPartControl(composite);
View Full Code Here

            if (refItem != null && refItem.getId() != null) {
                toolBarManager.insertAfter(refItem.getId(), actionContribution);
            } else {
                toolBarManager.add(actionContribution);
            }
            toolBarManager.update(false);

        }

        /**
         * Contributes action from the action descriptor into the cool bar manager.
View Full Code Here

            if (groupMarker == null) {
                // @issue should this be a GroupMarker?
                toolBar.add(new Separator(toolGroupId));
            }
            toolBar.prependToGroup(toolGroupId, actionContribution);
            toolBar.update(false);

        }

        /**
         * Checks to see if the cool item id is in the given window.
View Full Code Here

        IToolBarManager toolbarManager = form.getToolBarManager();
        toolbarManager.add( new EditorImportConfigurationAction( editor ) );
        toolbarManager.add( new Separator() );
        toolbarManager.add( new EditorExportConfigurationAction( editor ) );

        toolbarManager.update( true );

        createFormContent( parent, toolkit );
    }

View Full Code Here

        .setDisabledImageDescriptor(plugin.getImageRegistry()
            .getDescriptor(ICVSChangeLogConstants.IMG_REFRESH_DISABLED));
    refreshAction.setHoverImageDescriptor(plugin.getImageRegistry()
        .getDescriptor(ICVSChangeLogConstants.IMG_REFRESH_HOVER));
    tbm.add(refreshAction);
    tbm.update(false);
    restoreState();
  }
  protected void refresh() {
    if ( this.changeLogJob != null )
    {
View Full Code Here

        helpAction.setToolTipText("help");
        helpAction.setImageDescriptor(Activator.imageDescriptorFromPlugin("org.apache.geronimo.st.ui",
                "icons/obj16/help.gif"));
        manager.add(helpAction);

        manager.update(true);
        form.reflow(true);
    }

    protected abstract void triggerGeronimoServerInfoUpdate();
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.