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


Java DeleteRetargetAction类代码示例

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


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

示例1: buildActions

import org.eclipse.gef.ui.actions.DeleteRetargetAction; //导入依赖的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.DeleteRetargetAction; //导入依赖的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.DeleteRetargetAction; //导入依赖的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.DeleteRetargetAction; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
protected void buildActions() {
  addRetargetAction(new UndoRetargetAction());
  addRetargetAction(new RedoRetargetAction());
  addRetargetAction(new DeleteRetargetAction());

  // add grid icon to grid action
  final RetargetAction gridAction =
      new RetargetAction(GEFActionConstants.TOGGLE_GRID_VISIBILITY, "", IAction.AS_CHECK_BOX);
  gridAction.setImageDescriptor(Activator.imageDescriptorFromPlugin(Activator.PLUGIN_ID,
      "icons/grid.png"));
  gridAction.setToolTipText(TOGGLE_GRID_LABEL);
  addRetargetAction(gridAction);

  final RetargetAction snapAction =
      new RetargetAction(GEFActionConstants.TOGGLE_SNAP_TO_GEOMETRY, "", IAction.AS_CHECK_BOX);
  snapAction.setImageDescriptor(Activator.imageDescriptorFromPlugin(Activator.PLUGIN_ID,
      "icons/grid-snap.png"));
  snapAction.setToolTipText(TOGGLE_SNAP_TO_GERMETRY_LABEL);

  addRetargetAction(snapAction);

}
 
开发者ID:leondart,项目名称:FRaMED,代码行数:25,代码来源:ORMGraphicalEditorActionBarContributor.java

示例5: buildActions

import org.eclipse.gef.ui.actions.DeleteRetargetAction; //导入依赖的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

示例6: buildActions

import org.eclipse.gef.ui.actions.DeleteRetargetAction; //导入依赖的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

示例7: buildActions

import org.eclipse.gef.ui.actions.DeleteRetargetAction; //导入依赖的package包/类
private void buildActions(IActionBars actionBars) {
	addRetargetAction(new UndoRetargetAction());
	addRetargetAction(new RedoRetargetAction());
	addRetargetAction(new DeleteRetargetAction());
	
	RetargetAction showGridAction=new RetargetAction(GEFActionConstants.TOGGLE_GRID_VISIBILITY, "Grid");
	showGridAction.setImageDescriptor(Activator.getImageDescriptorFromPlugin("icons/grid.png"));
	addRetargetAction(showGridAction);
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:10,代码来源:EditorActionBarContributor.java

示例8: buildActions

import org.eclipse.gef.ui.actions.DeleteRetargetAction; //导入依赖的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

示例9: buildActions

import org.eclipse.gef.ui.actions.DeleteRetargetAction; //导入依赖的package包/类
@Override
protected void buildActions() {
	addRetargetAction(new DeleteRetargetAction());
	addRetargetAction(new DwFeatureModelAutoLayoutAction());
	addRetargetAction(new DwFeatureModelCreateOverviewAction());
	addRetargetAction(new DwFeatureModelCreateSVGAction());
}
 
开发者ID:DarwinSPL,项目名称:DarwinSPL,代码行数:8,代码来源:DwGraphicalFeatureModelEditorActionBarContributor.java

示例10: buildActions

import org.eclipse.gef.ui.actions.DeleteRetargetAction; //导入依赖的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

示例11: buildActions

import org.eclipse.gef.ui.actions.DeleteRetargetAction; //导入依赖的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

示例12: buildActions

import org.eclipse.gef.ui.actions.DeleteRetargetAction; //导入依赖的package包/类
@Override
protected void buildActions() {
	addRetargetAction(new UndoRetargetAction());
	addRetargetAction(new RedoRetargetAction());
	addRetargetAction(new DeleteRetargetAction());
	addRetargetAction(new RetargetAction(
			GEFActionConstants.TOGGLE_GRID_VISIBILITY, "网格",
			IAction.AS_CHECK_BOX));
	addRetargetAction(new RetargetAction(
			GEFActionConstants.TOGGLE_SNAP_TO_GEOMETRY, "几何对齐",
			IAction.AS_CHECK_BOX));
}
 
开发者ID:snakerflow,项目名称:snaker-designer,代码行数:13,代码来源:SnakerDesignerEditorActionBarContributor.java

示例13: buildActions

import org.eclipse.gef.ui.actions.DeleteRetargetAction; //导入依赖的package包/类
@Override
protected void buildActions()
{
	addRetargetAction(new UndoRetargetAction());
	addRetargetAction(new RedoRetargetAction());
	addRetargetAction(new DeleteRetargetAction());
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:8,代码来源:DiagramActionBarContributor.java

示例14: buildActions

import org.eclipse.gef.ui.actions.DeleteRetargetAction; //导入依赖的package包/类
@Override
protected void buildActions()
{
	addRetargetAction(new RetargetAction(ActionFactory.SELECT_ALL
			.getId(), "selectAll"));
	addRetargetAction(new UndoRetargetAction());
	addRetargetAction(new RedoRetargetAction());
	addRetargetAction(new DeleteRetargetAction());
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:10,代码来源:PageDiagramActionBarContributor.java

示例15: buildActions

import org.eclipse.gef.ui.actions.DeleteRetargetAction; //导入依赖的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


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