Package org.eclipse.gef.ui.actions

Examples of org.eclipse.gef.ui.actions.ZoomComboContributionItem


    private void checkVisibility(DRLRuleEditor2 editor,
                                 boolean enabled) {
        ZoomInAction2 zoomIn = (ZoomInAction2) editor.getAdapter( ZoomInAction2.class );
        ZoomOutAction2 zoomOut = (ZoomOutAction2) editor.getAdapter( ZoomOutAction2.class );
        ZoomComboContributionItem zitem = (ZoomComboContributionItem) editor.getAdapter( ZoomComboContributionItem.class );

        assertEquals( enabled,
                      zoomIn.isEnabled() );
        assertEquals( enabled,
                      zoomOut.isEnabled() );
        assertEquals( enabled,
                      zitem.getZoomManager() != null );

    }
View Full Code Here


    toolBarManager.add(getAction(ActionFactory.PASTE.getId()));
    toolBarManager.add(getAction(ActionFactory.DELETE.getId()));
    toolBarManager.add(new Separator());
    toolBarManager.add(getAction(GEFActionConstants.ZOOM_IN));
    toolBarManager.add(getAction(GEFActionConstants.ZOOM_OUT));
    toolBarManager.add(new ZoomComboContributionItem(getPage()));
  }
View Full Code Here

    toolBarManager.add(getAction(ActionFactory.DELETE.getId()));
    toolBarManager.add(new Separator());
    toolBarManager.add(getAction(GEFActionConstants.ZOOM_IN));
    toolBarManager.add(getAction(GEFActionConstants.ZOOM_OUT));

    ZoomComboContributionItem zoomItem = new ZoomComboContributionItem(
        getViewSite().getPage());
    // {
    //
    // /*
    // * This method is overridden to ensure to only set the editor's
View Full Code Here

public void contributeToToolBar(IToolBarManager tbm) {
  tbm.add(getAction(ActionFactory.UNDO.getId()));
  tbm.add(getAction(ActionFactory.REDO.getId()));
 
  tbm.add(new Separator())
  tbm.add(new ZoomComboContributionItem(getPage()));
  tbm.add(getActionRegistry().getAction(GEFActionConstants.ZOOM_IN));
  tbm.add(getActionRegistry().getAction(GEFActionConstants.ZOOM_OUT));
  tbm.add(new Separator())
  tbm.add(getAction(InsertMeasuresAction.ACTION_ID));
  tbm.add(getAction(InsertStaffdefsAction.ACTION_ID));
View Full Code Here

    toolBarManager.add(new Separator());

    toolBarManager.add(getAction(GEFActionConstants.ZOOM_IN));
    toolBarManager.add(getAction(GEFActionConstants.ZOOM_OUT));
    toolBarManager.add(new ZoomComboContributionItem(getPage()));
  }
View Full Code Here

    public void contributeToToolBar(IToolBarManager toolBarManager) {
        super.contributeToToolBar( toolBarManager );
        toolBarManager.add( new Separator() );
        String[] zoomStrings = new String[]{ZoomManager.FIT_ALL, ZoomManager.FIT_HEIGHT, ZoomManager.FIT_WIDTH};

        zitem = new ZoomComboContributionItem( getPage(),
                                               zoomStrings );
        zitem.setZoomManager( null );
        zitem.setVisible( false );

        zoomIn = new ZoomInAction2();
View Full Code Here

    public void contributeToToolBar(IToolBarManager toolBarManager) {
        toolBarManager.add( getAction( ActionFactory.UNDO.getId() ) );
        toolBarManager.add( getAction( ActionFactory.REDO.getId() ) );
        toolBarManager.add( new Separator() );
        toolBarManager.add( new ZoomComboContributionItem( getPage() ) );
        toolBarManager.add( new Separator() );
       
        DropDownMenuWithDefaultAction alignMenu = new DropDownMenuWithDefaultAction( getActionRegistry().getAction( GEFActionConstants.ALIGN_LEFT ) );
        alignMenu.add( getActionRegistry().getAction( GEFActionConstants.ALIGN_LEFT ) );
        alignMenu.add( getActionRegistry().getAction( GEFActionConstants.ALIGN_CENTER ) );
View Full Code Here

   
    toolBarManager.add(getAction(ActionFactory.UNDO.getId()));
    toolBarManager.add(getAction(ActionFactory.REDO.getId()));
    toolBarManager.add(getAction(ActionFactory.DELETE.getId()));
    toolBarManager.add(new Separator());
    toolBarManager.add(new ZoomComboContributionItem(getPage()));
    toolBarManager.add(getAction(GEFActionConstants.ZOOM_IN));
    toolBarManager.add(getAction(GEFActionConstants.ZOOM_OUT));
    toolBarManager.add(new Separator());
    toolBarManager.add(new AutoLayoutAction());
  }
View Full Code Here

 
  tbm.add(new Separator())
  String[] zoomStrings = new String[] {  ZoomManager.FIT_ALL,
                      ZoomManager.FIT_HEIGHT,
                      ZoomManager.FIT_WIDTH  };
  tbm.add(new ZoomComboContributionItem(getPage(), zoomStrings));
}
View Full Code Here

  @Override
  public void contributeToToolBar(IToolBarManager manager) {
    String[] zoomStrings = new String[] { ZoomManager.FIT_ALL,
                ZoomManager.FIT_HEIGHT, ZoomManager.FIT_WIDTH };
    manager.add(new ZoomComboContributionItem(getPage(), zoomStrings));
    manager.add(getAction(ExportAction.ID));
  }
View Full Code Here

TOP

Related Classes of org.eclipse.gef.ui.actions.ZoomComboContributionItem

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.