本文整理汇总了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));
}
示例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());
}
示例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);
}
示例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());
}
示例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));
}
示例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());
}
示例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);
}
示例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());
}
示例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());
}
示例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()));
}
示例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 ) );
}