Package org.eclipse.jface.action

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


   
    @Override
  protected void fillCoolBar(ICoolBarManager coolBar) {
        IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.RIGHT);
        toolbar.add(new GroupMarker(IWorkbenchActionConstants.TOOLBAR_FILE));
        toolbar.appendToGroup(IWorkbenchActionConstants.TOOLBAR_FILE, newAction);
        toolbar.appendToGroup(IWorkbenchActionConstants.TOOLBAR_FILE, saveAction);
        coolBar.add(new ToolBarContributionItem(toolbar, "main"));  
    }
}
View Full Code Here


    @Override
  protected void fillCoolBar(ICoolBarManager coolBar) {
        IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.RIGHT);
        toolbar.add(new GroupMarker(IWorkbenchActionConstants.TOOLBAR_FILE));
        toolbar.appendToGroup(IWorkbenchActionConstants.TOOLBAR_FILE, newAction);
        toolbar.appendToGroup(IWorkbenchActionConstants.TOOLBAR_FILE, saveAction);
        coolBar.add(new ToolBarContributionItem(toolbar, "main"));  
    }
}
View Full Code Here

            copy(true);
          }
        };
        Utilities.initAction(fCopyLeftToRightAction,
            getResourceBundle(), "action.CopyLeftToRight."); //$NON-NLS-1$
        tbm.appendToGroup("merge", fCopyLeftToRightAction); //$NON-NLS-1$
        fHandlerService.registerAction(fCopyLeftToRightAction,
            "org.eclipse.compare.copyAllLeftToRight"); //$NON-NLS-1$
      }

      if (cc.isLeftEditable()) {
View Full Code Here

            copy(false);
          }
        };
        Utilities.initAction(fCopyRightToLeftAction,
            getResourceBundle(), "action.CopyRightToLeft."); //$NON-NLS-1$
        tbm.appendToGroup("merge", fCopyRightToLeftAction); //$NON-NLS-1$
        fHandlerService.registerAction(fCopyRightToLeftAction,
            "org.eclipse.compare.copyAllRightToLeft"); //$NON-NLS-1$
      }

      final ChangePropertyAction a = new ChangePropertyAction(
View Full Code Here

          getCompareConfiguration(),
          "action.EnableAncestor.", ICompareUIConstants.PROP_ANCESTOR_VISIBLE); //$NON-NLS-1$
      a.setChecked(fAncestorVisible);
      fAncestorItem = new ActionContributionItem(a);
      fAncestorItem.setVisible(false);
      tbm.appendToGroup("modes", fAncestorItem); //$NON-NLS-1$
      tbm.getControl().addDisposeListener(a);

      createToolItems(tbm);
      updateToolItems();
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.