当前位置: 首页>>代码示例>>Java>>正文


Java ZoomOutRetargetAction类代码示例

本文整理汇总了Java中org.eclipse.gef.ui.actions.ZoomOutRetargetAction的典型用法代码示例。如果您正苦于以下问题:Java ZoomOutRetargetAction类的具体用法?Java ZoomOutRetargetAction怎么用?Java ZoomOutRetargetAction使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ZoomOutRetargetAction类属于org.eclipse.gef.ui.actions包,在下文中一共展示了ZoomOutRetargetAction类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildActions

import org.eclipse.gef.ui.actions.ZoomOutRetargetAction; //导入依赖的package包/类
/**
 * Create actions managed by this contributor.
 * 
 * @see org.eclipse.gef.ui.actions.ActionBarContributor#buildActions()
 */
protected void buildActions() {
	addRetargetAction(new DeleteRetargetAction());
	addRetargetAction(new UndoRetargetAction());
	addRetargetAction(new RedoRetargetAction());
	
	IWorkbenchWindow iww = getPage().getWorkbenchWindow();
	addRetargetAction((RetargetAction)ActionFactory.COPY.create(iww));
	addRetargetAction((RetargetAction)ActionFactory.PASTE.create(iww));
	
	// Registering the zooming actions at the menu bar.
	addRetargetAction(new ZoomInRetargetAction());
	addRetargetAction(new ZoomOutRetargetAction());
	
	addRetargetAction(new RetargetAction(GEFActionConstants.TOGGLE_GRID_VISIBILITY,
		GEFMessages.ToggleGrid_Label, IAction.AS_CHECK_BOX));
}
 
开发者ID:ShoukriKattan,项目名称:ForgedUI-Eclipse,代码行数:22,代码来源:GUIEditorActionBarContributor.java

示例2: buildActions

import org.eclipse.gef.ui.actions.ZoomOutRetargetAction; //导入依赖的package包/类
/**
 * @see org.eclipse.gef.ui.actions.ActionBarContributor#buildActions()
 */
protected void buildActions() {
    addRetargetAction(new UndoRetargetAction());
    addRetargetAction(new RedoRetargetAction());
    addRetargetAction(new DeleteRetargetAction());
    addRetargetAction(new ZoomInRetargetAction());
    addRetargetAction(new ZoomOutRetargetAction());
    
    addRetargetAction(new AlignmentRetargetAction(PositionConstants.LEFT));
    addRetargetAction(new AlignmentRetargetAction(PositionConstants.CENTER));
    addRetargetAction(new AlignmentRetargetAction(PositionConstants.RIGHT));
    addRetargetAction(new AlignmentRetargetAction(PositionConstants.TOP));
    addRetargetAction(new AlignmentRetargetAction(PositionConstants.MIDDLE));
    addRetargetAction(new AlignmentRetargetAction(PositionConstants.BOTTOM));
    
    addRetargetAction(new MatchWidthRetargetAction());
    addRetargetAction(new MatchHeightRetargetAction());
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:21,代码来源:AbstractDiagramActionContributor.java

示例3: buildActions

import org.eclipse.gef.ui.actions.ZoomOutRetargetAction; //导入依赖的package包/类
/**
 * Builds the actions.
 * 
 * @see org.eclipse.gef.ui.actions.ActionBarContributor#buildActions()
 */
protected void buildActions(IActionBars bars) {
	addRetargetAction(new UndoRetargetAction());
	addRetargetAction(new RedoRetargetAction());
	addRetargetAction(new DeleteRetargetAction());
	// addRetargetAction(new PrintAction());

	addRetargetAction(new ZoomInRetargetAction());
	addRetargetAction(new ZoomOutRetargetAction());

	addRetargetAction(new RetargetAction(GEFActionConstants.TOGGLE_RULER_VISIBILITY,
			Messages.JrxmlEditorContributor_show_ruler, IAction.AS_CHECK_BOX));
	addRetargetAction(new RetargetAction(SnapToGuidesAction.ID, Messages.common_snap_to_guides, IAction.AS_CHECK_BOX));

	addRetargetAction(new RetargetAction(GEFActionConstants.TOGGLE_GRID_VISIBILITY, Messages.common_show_grid,
			IAction.AS_CHECK_BOX));
	addRetargetAction(new RetargetAction(GEFActionConstants.TOGGLE_SNAP_TO_GEOMETRY, Messages.common_snap_to_geometry,
			IAction.AS_CHECK_BOX));
	addRetargetAction(new RetargetAction(SnapToGridAction.ID, Messages.common_snap_to_grid, IAction.AS_CHECK_BOX));
	addRetargetAction(new RetargetAction(SizeGridAction.ID, Messages.JrxmlEditorContributor_grid_size));

	List<RetargetAction> ractions = JaspersoftStudioPlugin.getDecoratorManager().buildMenuActions();
	for (RetargetAction r : ractions)
		addRetargetAction(r);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:30,代码来源:JrxmlEditorContributor.java

示例4: buildActions

import org.eclipse.gef.ui.actions.ZoomOutRetargetAction; //导入依赖的package包/类
@Override
protected void buildActions()
{
	this.addRetargetAction(new RetargetAction(ActionFactory.SELECT_ALL
			.getId(), "selectAll"));
	this.addRetargetAction(new UndoRetargetAction());
	this.addRetargetAction(new RedoRetargetAction());
	this.addRetargetAction(new DeleteRetargetAction());
	
	ZoomInRetargetAction zoomInAction = new ZoomInRetargetAction();
	zoomInAction.setImageDescriptor(Activator
			.getImageDescriptor(ImageResource.ZOOM_IN));
	ZoomOutRetargetAction zoomOutAction = new ZoomOutRetargetAction();
	zoomOutAction.setImageDescriptor(Activator
			.getImageDescriptor(ImageResource.ZOOM_OUT));
	this.addRetargetAction(zoomInAction);
	this.addRetargetAction(zoomOutAction);
	this.addRetargetAction(new ZoomAdjustRetargetAction());
	
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:21,代码来源:BODiagramActionBarContributor.java

示例5: buildActions

import org.eclipse.gef.ui.actions.ZoomOutRetargetAction; //导入依赖的package包/类
@Override
protected void buildActions() {
	  IWorkbenchWindow iww = getPage().getWorkbenchWindow(); 
	  addRetargetAction(new UndoRetargetAction());
         addRetargetAction(new RedoRetargetAction());
         addRetargetAction(new DeleteRetargetAction());
         addRetargetAction(new ZoomInRetargetAction());
         addRetargetAction(new ZoomOutRetargetAction());
         addRetargetAction(new RetargetAction(GEFActionConstants.TOGGLE_GRID_VISIBILITY, GEFMessages.ToggleGrid_Label, IAction.AS_CHECK_BOX));   
         addRetargetAction(new RetargetAction(GEFActionConstants.TOGGLE_SNAP_TO_GEOMETRY, GEFMessages.ToggleSnapToGeometry_Label, IAction.AS_CHECK_BOX));
         addRetargetAction(new RetargetAction(ActionFactory.SELECT_ALL.getId(), GEFMessages.SelectAllAction_Label));
         addRetargetAction((RetargetAction)ActionFactory.COPY.create(iww));
         addRetargetAction((RetargetAction)ActionFactory.PASTE.create(iww));
         addRetargetAction(new ClearEdgeBenpointLayoutRetargetAction(iww));
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:16,代码来源:GW4EEditorActionBarContributor.java

示例6: buildActions

import org.eclipse.gef.ui.actions.ZoomOutRetargetAction; //导入依赖的package包/类
@Override
protected void buildActions() {
	this.addRetargetAction(new UndoRetargetAction());
	this.addRetargetAction(new RedoRetargetAction());
	this.addRetargetAction(new DeleteRetargetAction());
	this.addRetargetAction(getShowGridRetargetAction());
	this.addRetargetAction(new ZoomInRetargetAction());
	this.addRetargetAction(new ZoomOutRetargetAction());
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:10,代码来源:DbToolGefEditorActionBarContributor.java

示例7: buildActions

import org.eclipse.gef.ui.actions.ZoomOutRetargetAction; //导入依赖的package包/类
/**
 * Builds the actions.
 * 
 * @see org.eclipse.gef.ui.actions.ActionBarContributor#buildActions()
 */
protected void buildActions() {
	addRetargetAction(new UndoRetargetAction());
	addRetargetAction(new RedoRetargetAction());
	addRetargetAction(new DeleteRetargetAction());

	addRetargetAction(new ZoomInRetargetAction());
	addRetargetAction(new ZoomOutRetargetAction());

	RetargetAction raction = new RetargetAction(ExportJar.ID, "Export Chart Theme jar");
	raction.setImageDescriptor(Activator.getDefault().getImageDescriptor("icons/charttheme_export-16.png"));
	addRetargetAction(raction);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:18,代码来源:JrctxEditorContributor.java

示例8: buildActions

import org.eclipse.gef.ui.actions.ZoomOutRetargetAction; //导入依赖的package包/类
/**
 * Builds the actions.
 * 
 * @see org.eclipse.gef.ui.actions.ActionBarContributor#buildActions()
 */
protected void buildActions() {
	addRetargetAction(new UndoRetargetAction());
	addRetargetAction(new RedoRetargetAction());
	addRetargetAction(new DeleteRetargetAction());

	addRetargetAction(new ZoomInRetargetAction());
	addRetargetAction(new ZoomOutRetargetAction());

}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:15,代码来源:JrtxEditorContributor.java

示例9: buildActions

import org.eclipse.gef.ui.actions.ZoomOutRetargetAction; //导入依赖的package包/类
protected void buildActions() {
	addRetargetAction(new UndoRetargetAction());
	addRetargetAction(new RedoRetargetAction());
	addRetargetAction(new DeleteRetargetAction());
	addRetargetAction(new ZoomInRetargetAction());
	addRetargetAction(new ZoomOutRetargetAction());
}
 
开发者ID:hejiehui,项目名称:xeda,代码行数:8,代码来源:XedaActionBarContributor.java

示例10: buildActions

import org.eclipse.gef.ui.actions.ZoomOutRetargetAction; //导入依赖的package包/类
/**
 * Create actions managed by this contributor.
 * 
 * @see org.eclipse.gef.ui.actions.ActionBarContributor#buildActions()
 */
protected void buildActions() {
    addRetargetAction(new UndoRetargetAction());
    addRetargetAction(new RedoRetargetAction());
    addRetargetAction(new ZoomInRetargetAction());
    addRetargetAction(new ZoomOutRetargetAction());
    addRetargetAction((RetargetAction) ActionFactory.COPY.create(getPage().getWorkbenchWindow()));
    addRetargetAction((RetargetAction) ActionFactory.CUT.create(getPage().getWorkbenchWindow()));
    addRetargetAction((RetargetAction) ActionFactory.PASTE.create(getPage().getWorkbenchWindow()));

}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:16,代码来源:UCMActionBarContributor.java

示例11: buildActions

import org.eclipse.gef.ui.actions.ZoomOutRetargetAction; //导入依赖的package包/类
protected void buildActions( )
{
	if ( isBuilt )
		return;
	isBuilt = true;
	addRetargetAction( new UndoRetargetAction( ) );
	addRetargetAction( new RedoRetargetAction( ) );
	addRetargetAction( new DeleteRetargetAction( ) );

	addRetargetAction( new ZoomInRetargetAction( ) );
	addRetargetAction( new ZoomOutRetargetAction( ) );

	addRetargetAction( new RetargetAction( ActionFactory.CUT.getId( ), null ) );
	addRetargetAction( new RetargetAction( ActionFactory.COPY.getId( ),
			null ) );
	addRetargetAction( new RetargetAction( ActionFactory.PASTE.getId( ),
			null ) );

	addRetargetAction( new RetargetAction( ImportCSSStyleAction.ID,
			ImportCSSStyleAction.ACTION_TEXT ) );
	addRetargetAction( new RetargetAction( AddStyleAction.ID,
			Messages.getString( "DesignerActionBarContributor.style.new" ) ) ); //$NON-NLS-1$
	addRetargetAction( new RetargetAction( ApplyStyleMenuAction.ID, null ) );
	addRetargetAction( new RetargetAction( EditStyleMenuAction.ID, null ) );
	addRetargetAction( new RetargetAction( DeleteStyleMenuAction.ID, null ) );
	addRetargetAction( new RetargetAction( EditGroupMenuAction.ID, null ) );
	addRetargetAction( new RetargetAction( InsertGroupMenuAction.ID, null ) );

	registerActions( new RegisterAction[]{
		new RegisterAction( GEFActionConstants.TOGGLE_RULER_VISIBILITY,
				Messages.getString( "DesignerActionBarContributor.menu.element-showRuler" ), //$NON-NLS-1$
				IAction.AS_CHECK_BOX )
	} );
	registerActions( new RegisterAction[]{
		new RegisterAction( ToggleMarginVisibilityAction.ID,
				ToggleMarginVisibilityAction.LABEL,
				IAction.AS_CHECK_BOX )
	} );

	registerActions( getInsertElementActions( ) );
	registerActions( elementActions );

	addRetargetAction( new RetargetAction( ImportLibraryAction.ID,
			ImportLibraryAction.ACTION_TEXT ) );
	addRetargetAction( new RetargetAction( InsertAggregationAction.ID,
			InsertAggregationAction.TEXT ) );
	addRetargetAction( new RetargetAction( InsertRelativeTimePeriodAction.ID,
			InsertRelativeTimePeriodAction.TEXT ) );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:50,代码来源:DesignerActionBarContributor.java


注:本文中的org.eclipse.gef.ui.actions.ZoomOutRetargetAction类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。