Examples of DesignerUndoRedoAction


Examples of org.eclipse.jst.pagedesigner.editors.actions.DesignerUndoRedoAction

    ISharedImages sharedImages = PlatformUI.getWorkbench()
        .getSharedImages();

    IAction action;

    action = new DesignerUndoRedoAction(true, this);
    action.setImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_UNDO));
    action.setDisabledImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_UNDO_DISABLED));
    action.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_UNDO);
    action.setId(IWorkbenchCommandConstants.EDIT_UNDO);
    getSite().getKeyBindingService().registerAction(action);
    registry.registerAction(action);

    action = new DesignerUndoRedoAction(false, this);
    action.setImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_REDO));
    action.setDisabledImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_REDO_DISABLED));
    action.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_REDO);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.