/** * 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)); }
/** * Initializes this actions text and images. */ protected void init() { super.init(); setToolTipText(MessageFormat.format(GEFMessages.RedoAction_Tooltip, new Object[] { "" }).trim()); //$NON-NLS-1$ setText(MessageFormat.format(GEFMessages.RedoAction_Label, new Object[] { "" }).trim() //$NON-NLS-1$ ); setId(ActionFactory.REDO.getId()); ISharedImages sharedImages = PlatformUI.getWorkbench() .getSharedImages(); setImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_REDO)); setDisabledImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_REDO_DISABLED)); }
/** * Initializes this action's text and images. */ protected void init() { super.init(); setToolTipText(MessageFormat.format(GEFMessages.UndoAction_Tooltip, new Object[] { "" }).trim()); //$NON-NLS-1$ setText(MessageFormat.format(GEFMessages.UndoAction_Label, new Object[] { "" }).trim() //$NON-NLS-1$ ); setId(ActionFactory.UNDO.getId()); ISharedImages sharedImages = PlatformUI.getWorkbench() .getSharedImages(); if (sharedImages != null) { setImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_UNDO)); setDisabledImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_UNDO_DISABLED)); } }
/** * Create a command to remove the selected objects. * * @param objects * The objects to be deleted. * @return The command to remove the selected objects. */ public Command createDeleteCommand(List objects) { if (objects.isEmpty()) return null; if (!(objects.get(0) instanceof EditPart)) return null; GroupRequest deleteReq = new GroupRequest(RequestConstants.REQ_DELETE); deleteReq.setEditParts(objects); CompoundCommand compoundCmd = new CompoundCommand( GEFMessages.DeleteAction_ActionDeleteCommandName); for (int i = 0; i < objects.size(); i++) { EditPart object = (EditPart) objects.get(i); Command cmd = object.getCommand(deleteReq); if (cmd != null) compoundCmd.add(cmd); } return compoundCmd; }
/** * Initializes this action's text and images. */ protected void init() { super.init(); setText(GEFMessages.DeleteAction_Label); setToolTipText(GEFMessages.DeleteAction_Tooltip); setId(ActionFactory.DELETE.getId()); ISharedImages sharedImages = PlatformUI.getWorkbench() .getSharedImages(); if (sharedImages != null) { setImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE)); setDisabledImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED)); } // SzI // setEnabled(false); setEnabled(true); }
@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)); }
/** * @see org.eclipse.gef.ui.actions.EditorPartAction#init() */ protected void init() { super.init(); setText(GEFMessages.PrintAction_Label); setToolTipText(GEFMessages.PrintAction_Tooltip); setId(ActionFactory.PRINT.getId()); }
/** * @see org.eclipse.gef.palette.PaletteEntry#getDescription() */ public String getDescription() { String description = super.getDescription(); if (description != null) return description; int marqueeBehavior = getMarqueeBehavior(); if (marqueeBehavior == MarqueeSelectionTool.BEHAVIOR_CONNECTIONS_TOUCHED) { return GEFMessages.MarqueeTool_Connections_Touched_Desc; } if (marqueeBehavior == MarqueeSelectionTool.BEHAVIOR_CONNECTIONS_CONTAINED) { return GEFMessages.MarqueeTool_Connections_Contained_Desc; } if (marqueeBehavior == MarqueeSelectionTool.BEHAVIOR_NODES_TOUCHED) { return GEFMessages.MarqueeTool_Nodes_Touched_Desc; } if (marqueeBehavior == MarqueeSelectionTool.BEHAVIOR_NODES_CONTAINED) { return GEFMessages.MarqueeTool_Nodes_Contained_Desc; } if (marqueeBehavior == MarqueeSelectionTool.BEHAVIOR_NODES_TOUCHED_AND_RELATED_CONNECTIONS) { return GEFMessages.MarqueeTool_Nodes_Touched_And_Related_Connections_Desc; } if (marqueeBehavior == MarqueeSelectionTool.BEHAVIOR_NODES_CONTAINED_AND_RELATED_CONNECTIONS) { return GEFMessages.MarqueeTool_Nodes_Contained_And_Related_Connections_Desc; } throw new IllegalArgumentException("Unknown marquee behavior"); //$NON-NLS-1$ }
/** * Creates a default page saying that a palette is not available. * * @see org.eclipse.ui.part.PageBookView#createDefaultPage(org.eclipse.ui.part.PageBook) */ protected IPage createDefaultPage(PageBook book) { MessagePage page = new MessagePage(); initPage(page); page.createControl(book); page.setMessage(GEFMessages.Palette_Not_Available); return page; }
public TitleLabel(boolean isHorizontal) { super(GEFMessages.Palette_Label, InternalImages .get(InternalImages.IMG_PALETTE)); setLabelAlignment(PositionConstants.LEFT); setBorder(BORDER); Label tooltip = new Label(getText()); tooltip.setBorder(TOOL_TIP_BORDER); setToolTip(tooltip); setForegroundColor(ColorConstants.listForeground); }
/** * Constructs a <code>MatchHeightAction</code> and associates it with the * given part. * * @param part * The workbench part associated with this MatchHeightAction */ public MatchHeightAction(IWorkbenchPart part) { super(part); setText(GEFMessages.MatchHeightAction_Label); setImageDescriptor(InternalImages.DESC_MATCH_HEIGHT); setDisabledImageDescriptor(InternalImages.DESC_MATCH_HEIGHT_DIS); setToolTipText(GEFMessages.MatchHeightAction_Tooltip); setId(GEFActionConstants.MATCH_HEIGHT); }
/** * Constructor for ZoomOutAction. * * @param zoomManager * the zoom manager */ public ZoomOutAction(ZoomManager zoomManager) { super(GEFMessages.ZoomOut_Label, InternalImages.DESC_ZOOM_OUT, zoomManager); setId(GEFActionConstants.ZOOM_OUT); setToolTipText(GEFMessages.ZoomOut_Tooltip); setActionDefinitionId(GEFActionConstants.ZOOM_OUT); }
/** * Constructs a <code>MatchHeightRetargetAction</code>. */ public MatchHeightRetargetAction() { super(GEFActionConstants.MATCH_HEIGHT, GEFMessages.MatchHeightAction_Label); setImageDescriptor(InternalImages.DESC_MATCH_HEIGHT); setDisabledImageDescriptor(InternalImages.DESC_MATCH_HEIGHT_DIS); setToolTipText(GEFMessages.MatchHeightAction_Tooltip); }
/** * Constructs a <code>MatchWidthRetargetAction</code>. */ public MatchWidthRetargetAction() { super(GEFActionConstants.MATCH_WIDTH, GEFMessages.MatchWidthAction_Label); setImageDescriptor(InternalImages.DESC_MATCH_WIDTH); setDisabledImageDescriptor(InternalImages.DESC_MATCH_WIDTH_DIS); setToolTipText(GEFMessages.MatchWidthAction_Tooltip); }
/** * Constructor * * @param diagramViewer * the GraphicalViewer whose snap to geometry property is to be * toggled */ public ToggleSnapToGeometryAction(GraphicalViewer diagramViewer) { super(GEFMessages.ToggleSnapToGeometry_Label, AS_CHECK_BOX); this.diagramViewer = diagramViewer; setToolTipText(GEFMessages.ToggleSnapToGeometry_Tooltip); setId(GEFActionConstants.TOGGLE_SNAP_TO_GEOMETRY); setActionDefinitionId(GEFActionConstants.TOGGLE_SNAP_TO_GEOMETRY); setChecked(isChecked()); }
/** * Constructor for ZoomInAction. * * @param zoomManager * the zoom manager */ public ZoomInAction(ZoomManager zoomManager) { super(GEFMessages.ZoomIn_Label, InternalImages.DESC_ZOOM_IN, zoomManager); setToolTipText(GEFMessages.ZoomIn_Tooltip); setId(GEFActionConstants.ZOOM_IN); setActionDefinitionId(GEFActionConstants.ZOOM_IN); }
/** * @see org.eclipse.gef.ui.actions.WorkbenchPartAction#init() */ protected void init() { super.init(); setText(GEFMessages.RenameAction_Label); setToolTipText(GEFMessages.RenameAction_Tooltip); setId(GEFActionConstants.DIRECT_EDIT); }
/** * Constructs a new UndoRetargetAction with the default ID, label and image. */ public UndoRetargetAction() { super(ActionFactory.UNDO.getId(), MessageFormat.format( GEFMessages.UndoAction_Label, new Object[] { "" }).trim()); //$NON-NLS-1$ ISharedImages sharedImages = PlatformUI.getWorkbench() .getSharedImages(); setImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_UNDO)); setDisabledImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_UNDO_DISABLED)); }
/** * Constructs a <code>MatchSizeAction</code> and associates it with the * given part. * * @param part * The workbench part associated with this MatchSizeAction */ public MatchSizeAction(IWorkbenchPart part) { super(part); setText(GEFMessages.MatchSizeAction_Label); setImageDescriptor(InternalImages.DESC_MATCH_SIZE); setDisabledImageDescriptor(InternalImages.DESC_MATCH_SIZE_DIS); setToolTipText(GEFMessages.MatchSizeAction_Tooltip); setId(GEFActionConstants.MATCH_SIZE); }
/** * Constructor * * @param diagramViewer * the GraphicalViewer whose grid enablement and visibility * properties are to be toggled */ public ToggleGridAction(GraphicalViewer diagramViewer) { super(GEFMessages.ToggleGrid_Label, AS_CHECK_BOX); this.diagramViewer = diagramViewer; setToolTipText(GEFMessages.ToggleGrid_Tooltip); setId(GEFActionConstants.TOGGLE_GRID_VISIBILITY); setActionDefinitionId(GEFActionConstants.TOGGLE_GRID_VISIBILITY); setChecked(isChecked()); }
/** * Constructs a new PasteRetargetAction with the default ID, label and * image. */ public PasteRetargetAction() { super(ActionFactory.PASTE.getId(), GEFMessages.PasteAction_Label); ISharedImages sharedImages = PlatformUI.getWorkbench() .getSharedImages(); setImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_PASTE)); setDisabledImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_PASTE_DISABLED)); }
/** * Refreshes this action's text to use the last undone command's label. */ protected void refresh() { Command redoCmd = getCommandStack().getRedoCommand(); setToolTipText(MessageFormat.format(GEFMessages.RedoAction_Tooltip, new Object[] { getLabelForCommand(redoCmd) }).trim()); setText(MessageFormat.format(GEFMessages.RedoAction_Label, new Object[] { getLabelForCommand(redoCmd) }).trim()); super.refresh(); }
/** * Refreshes this action's text to use the last executed command's label. */ protected void refresh() { Command undoCmd = getCommandStack().getUndoCommand(); setToolTipText(MessageFormat.format(GEFMessages.UndoAction_Tooltip, new Object[] { getLabelForCommand(undoCmd) }).trim()); setText(MessageFormat.format(GEFMessages.UndoAction_Label, new Object[] { getLabelForCommand(undoCmd) }).trim()); super.refresh(); }
/** * Constructs a new CopyRetargetAction with the default ID, label and image. */ public CopyRetargetAction() { super(ActionFactory.COPY.getId(), GEFMessages.CopyAction_Label); ISharedImages sharedImages = PlatformUI.getWorkbench() .getSharedImages(); setImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_COPY)); setDisabledImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_COPY_DISABLED)); }
/** * Constructs a <code>MatchWidthAction</code> and associates it with the * given part. * * @param part * The workbench part associated with this MatchWidthAction */ public MatchWidthAction(IWorkbenchPart part) { super(part); setText(GEFMessages.MatchWidthAction_Label); setImageDescriptor(InternalImages.DESC_MATCH_WIDTH); setDisabledImageDescriptor(InternalImages.DESC_MATCH_WIDTH_DIS); setToolTipText(GEFMessages.MatchWidthAction_Tooltip); setId(GEFActionConstants.MATCH_WIDTH); }
/** * Constructor for ZoomInRetargetAction */ public ZoomInRetargetAction() { super(null, null); setText(GEFMessages.ZoomIn_Label); setId(GEFActionConstants.ZOOM_IN); setToolTipText(GEFMessages.ZoomIn_Tooltip); setImageDescriptor(InternalImages.DESC_ZOOM_IN); setActionDefinitionId(GEFActionConstants.ZOOM_IN); }
/** * Constructor * * @param diagramViewer * the viewer whose ruler visibility property is to be toggled */ public ToggleRulerVisibilityAction(GraphicalViewer diagramViewer) { super(GEFMessages.ToggleRulerVisibility_Label, AS_CHECK_BOX); this.diagramViewer = diagramViewer; setToolTipText(GEFMessages.ToggleRulerVisibility_Tooltip); setId(GEFActionConstants.TOGGLE_RULER_VISIBILITY); setActionDefinitionId(GEFActionConstants.TOGGLE_RULER_VISIBILITY); setChecked(isChecked()); }
/** * Constructs a new RedoRetargetAction with the default ID, label and image. */ public RedoRetargetAction() { super(ActionFactory.REDO.getId(), MessageFormat.format( GEFMessages.RedoAction_Label, new Object[] { "" }).trim()); //$NON-NLS-1$ ISharedImages sharedImages = PlatformUI.getWorkbench() .getSharedImages(); setImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_REDO)); setDisabledImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_REDO_DISABLED)); }
/** * Constructs a <code>MatchSizeRetargetAction</code>. */ public MatchSizeRetargetAction() { super(GEFActionConstants.MATCH_SIZE, GEFMessages.MatchSizeAction_Label); setImageDescriptor(InternalImages.DESC_MATCH_SIZE); setDisabledImageDescriptor(InternalImages.DESC_MATCH_SIZE_DIS); setToolTipText(GEFMessages.MatchSizeAction_Tooltip); }
/** * Constructs a new DeleteRetargetAction with the default ID, label and * image. */ public DeleteRetargetAction() { super(ActionFactory.DELETE.getId(), GEFMessages.DeleteAction_Label); setToolTipText(GEFMessages.DeleteAction_Tooltip); ISharedImages sharedImages = PlatformUI.getWorkbench() .getSharedImages(); setImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE)); setDisabledImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED)); }
/** * Constructor for ZoomInRetargetAction */ public ZoomOutRetargetAction() { super(null, null); setText(GEFMessages.ZoomOut_Label); setId(GEFActionConstants.ZOOM_OUT); setToolTipText(GEFMessages.ZoomOut_Tooltip); setImageDescriptor(InternalImages.DESC_ZOOM_OUT); setActionDefinitionId(GEFActionConstants.ZOOM_OUT); }
protected AccessibleEditPart getAccessibleEditPart() { if (accPart == null) accPart = new AccessibleGraphicalEditPart() { public void getName(AccessibleEvent e) { e.result = isHorizontal() ? GEFMessages.Ruler_Horizontal_Label : GEFMessages.Ruler_Vertical_Label; } public void getDescription(AccessibleEvent e) { e.result = GEFMessages.Ruler_Desc; } }; return accPart; }
public PasteAction(UCMNavMultiPageEditor part) { super(part); this.editor = part; setId(ActionFactory.PASTE.getId()); setText(GEFMessages.PasteAction_Label); ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages(); setImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE)); setDisabledImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE_DISABLED)); }
public CopyAction(IWorkbenchPart part) { super(part); setId(ActionFactory.COPY.getId()); setText(GEFMessages.CopyAction_Label); ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages(); setImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_COPY)); setDisabledImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_COPY_DISABLED)); }
/** * Initializes the actions UI presentation. */ protected void initUI() { switch (alignment) { case PositionConstants.LEFT: setId(GEFActionConstants.ALIGN_LEFT); setText(GEFMessages.AlignLeftAction_Label); setToolTipText(GEFMessages.AlignLeftAction_Tooltip); setImageDescriptor(InternalImages.DESC_HORZ_ALIGN_LEFT); setDisabledImageDescriptor(InternalImages.DESC_HORZ_ALIGN_LEFT_DIS); break; case PositionConstants.RIGHT: setId(GEFActionConstants.ALIGN_RIGHT); setText(GEFMessages.AlignRightAction_Label); setToolTipText(GEFMessages.AlignRightAction_Tooltip); setImageDescriptor(InternalImages.DESC_HORZ_ALIGN_RIGHT); setDisabledImageDescriptor(InternalImages.DESC_HORZ_ALIGN_RIGHT_DIS); break; case PositionConstants.TOP: setId(GEFActionConstants.ALIGN_TOP); setText(GEFMessages.AlignTopAction_Label); setToolTipText(GEFMessages.AlignTopAction_Tooltip); setImageDescriptor(InternalImages.DESC_VERT_ALIGN_TOP); setDisabledImageDescriptor(InternalImages.DESC_VERT_ALIGN_TOP_DIS); break; case PositionConstants.BOTTOM: setId(GEFActionConstants.ALIGN_BOTTOM); setText(GEFMessages.AlignBottomAction_Label); setToolTipText(GEFMessages.AlignBottomAction_Tooltip); setImageDescriptor(InternalImages.DESC_VERT_ALIGN_BOTTOM); setDisabledImageDescriptor(InternalImages.DESC_VERT_ALIGN_BOTTOM_DIS); break; case PositionConstants.CENTER: setId(GEFActionConstants.ALIGN_CENTER); setText(GEFMessages.AlignCenterAction_Label); setToolTipText(GEFMessages.AlignCenterAction_Tooltip); setImageDescriptor(InternalImages.DESC_HORZ_ALIGN_CENTER); setDisabledImageDescriptor(InternalImages.DESC_HORZ_ALIGN_CENTER_DIS); break; case PositionConstants.MIDDLE: setId(GEFActionConstants.ALIGN_MIDDLE); setText(GEFMessages.AlignMiddleAction_Label); setToolTipText(GEFMessages.AlignMiddleAction_Tooltip); setImageDescriptor(InternalImages.DESC_VERT_ALIGN_MIDDLE); setDisabledImageDescriptor(InternalImages.DESC_VERT_ALIGN_MIDDLE_DIS); break; } }
/** * Initializes this action's text. */ protected void init() { setId(ActionFactory.SAVE.getId()); setText(GEFMessages.SaveAction_Label); setToolTipText(GEFMessages.SaveAction_Tooltip); }
/** * Constructs a new AlignmentRetargetAction with the default ID, label and * image based on the given alignment constant. Possible values are * {@link PositionConstants#BOTTOM}, {@link PositionConstants#CENTER}, * {@link PositionConstants#LEFT}, {@link PositionConstants#MIDDLE}, * {@link PositionConstants#RIGHT}, and {@link PositionConstants#TOP}. * * @param align * the alignment. */ public AlignmentRetargetAction(int align) { super(null, null); switch (align) { case PositionConstants.BOTTOM: setId(GEFActionConstants.ALIGN_BOTTOM); setText(GEFMessages.AlignBottomAction_Label); setToolTipText(GEFMessages.AlignBottomAction_Tooltip); setImageDescriptor(InternalImages.DESC_VERT_ALIGN_BOTTOM); setDisabledImageDescriptor(InternalImages.DESC_VERT_ALIGN_BOTTOM_DIS); break; case PositionConstants.CENTER: setId(GEFActionConstants.ALIGN_CENTER); setText(GEFMessages.AlignCenterAction_Label); setToolTipText(GEFMessages.AlignCenterAction_Tooltip); setImageDescriptor(InternalImages.DESC_HORZ_ALIGN_CENTER); setDisabledImageDescriptor(InternalImages.DESC_HORZ_ALIGN_CENTER_DIS); break; case PositionConstants.LEFT: setId(GEFActionConstants.ALIGN_LEFT); setText(GEFMessages.AlignLeftAction_Label); setToolTipText(GEFMessages.AlignLeftAction_Tooltip); setImageDescriptor(InternalImages.DESC_HORZ_ALIGN_LEFT); setDisabledImageDescriptor(InternalImages.DESC_HORZ_ALIGN_LEFT_DIS); break; case PositionConstants.MIDDLE: setId(GEFActionConstants.ALIGN_MIDDLE); setText(GEFMessages.AlignMiddleAction_Label); setToolTipText(GEFMessages.AlignMiddleAction_Tooltip); setImageDescriptor(InternalImages.DESC_VERT_ALIGN_MIDDLE); setDisabledImageDescriptor(InternalImages.DESC_VERT_ALIGN_MIDDLE_DIS); break; case PositionConstants.RIGHT: setId(GEFActionConstants.ALIGN_RIGHT); setText(GEFMessages.AlignRightAction_Label); setToolTipText(GEFMessages.AlignRightAction_Tooltip); setImageDescriptor(InternalImages.DESC_HORZ_ALIGN_RIGHT); setDisabledImageDescriptor(InternalImages.DESC_HORZ_ALIGN_RIGHT_DIS); break; case PositionConstants.TOP: setId(GEFActionConstants.ALIGN_TOP); setText(GEFMessages.AlignTopAction_Label); setToolTipText(GEFMessages.AlignTopAction_Tooltip); setImageDescriptor(InternalImages.DESC_VERT_ALIGN_TOP); setDisabledImageDescriptor(InternalImages.DESC_VERT_ALIGN_TOP_DIS); break; } }
/** * Constructor for SelectionToolEntry. * * @param label * the label * @param shortDesc * the description */ public SelectionToolEntry(String label, String shortDesc) { super(label, shortDesc, SharedImages.DESC_SELECTION_TOOL_16, SharedImages.DESC_SELECTION_TOOL_24, SelectionTool.class); if (label == null || label.length() == 0) setLabel(GEFMessages.SelectionTool_Label); setUserModificationPermission(PERMISSION_NO_MODIFICATION); }
/** * Constructor for MarqueeToolEntry. * * @param label * the label; can be <code>null</code> * @param description * the description (can be <code>null</code>) */ public MarqueeToolEntry(String label, String description) { super(label, description, null, null, MarqueeSelectionTool.class); if (label == null || label.length() == 0) setLabel(GEFMessages.MarqueeTool_Label); setUserModificationPermission(PERMISSION_NO_MODIFICATION); }