Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.CoolBarManager


     * @since 3.0
     * @see CoolBarManager#CoolBarManager(int)
     * @see CoolBar for style bits
     */
    protected CoolBarManager createCoolBarManager(int style) {
        return new CoolBarManager(style);
    }
View Full Code Here


    return this.mainMenu;
  }

  protected CoolBarManager createCoolBarManager(int style) {
    CoolBarManager coolBarManager = new CoolBarManager(style);
    coolBarManager.setLockLayout(false);               
    int toolBarStyle = SWT.FLAT | SWT.WRAP;

    /* Create "File" group */
    ToolBarManager toolBarManager = new ToolBarManager(toolBarStyle);
    ToolBarContributionItem toolItem = new ToolBarContributionItem(toolBarManager);

    ActionContributionItem newFileItem = new ActionContributionItem(events.newFileAct);
    ActionContributionItem openFileItem = new ActionContributionItem(events.openProblemAct);
    ActionContributionItem saveFileItem = new ActionContributionItem(events.saveProblemAct);

    toolBarManager.add(newFileItem);
    toolBarManager.add(openFileItem);
    toolBarManager.add(saveFileItem);
    coolBarManager.add(toolItem);

    /* Create "Solution" group */
    toolBarManager = new ToolBarManager(toolBarStyle);
    toolItem = new ToolBarContributionItem(toolBarManager);

    ActionContributionItem solveItem = new ActionContributionItem(events.solveProblemAct);

    toolBarManager.add(solveItem);
    coolBarManager.add(toolItem);

    return coolBarManager;
  }
View Full Code Here

   * Creates an IActionBars2 as a wrapper of an IActionBars.
   */
  protected IActionBars2 getIActionBars2Wrapper(final IActionBars actionBars) {
    return new IActionBars2() {
      public ICoolBarManager getCoolBarManager() {
        return new CoolBarManager();
      }
      public void clearGlobalActionHandlers() {
        actionBars.clearGlobalActionHandlers();
      }
      public IAction getGlobalActionHandler(String actionId) {
View Full Code Here

     * @since 3.0
     * @see CoolBarManager#CoolBarManager(int)
     * @see CoolBar for style bits
     */
    protected CoolBarManager createCoolBarManager(int style) {
        return new CoolBarManager(style);
    }
View Full Code Here

   * Create the coolbar manager.
   * @return the coolbar manager
   */
  @Override
  protected CoolBarManager createCoolBarManager(int style) {
    CoolBarManager coolBarManager = new CoolBarManager(style);
    {
      ToolBarManager toolBarManager = new ToolBarManager();
      coolBarManager.add(toolBarManager);
      toolBarManager.add(actionSelectInput);
      toolBarManager.add(actionOutputFolder);
    }
    {   
      ToolBarManager toolBarManager = new ToolBarManager();
      coolBarManager.add(toolBarManager);
      toolBarManager.add(actionImport);
      toolBarManager.add(actionConvert);
      toolBarManager.add(actionGenerate);
      return coolBarManager;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.action.CoolBarManager

Copyright © 2018 www.massapicom. 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.