本文整理汇总了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));
}
示例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());
}
示例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);
}
示例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);
}
示例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());
}
示例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));
}
示例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);
}
示例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());
}
示例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());
}
示例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);
}
示例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());
}
示例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));
}
示例13: buildActions
import org.eclipse.gef.ui.actions.DeleteRetargetAction; //导入依赖的package包/类
@Override
protected void buildActions()
{
addRetargetAction(new UndoRetargetAction());
addRetargetAction(new RedoRetargetAction());
addRetargetAction(new DeleteRetargetAction());
}
示例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());
}
示例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());
}