Examples of configureAction()


Examples of org.eclipse.ui.console.actions.TextViewerAction.configureAction()

    protected void createTextActions() {
        IActionBars actionBars = getViewSite().getActionBars();
        TextViewerAction action = new TextViewerAction(
            textViewer, ITextOperationTarget.SELECT_ALL);

        action.configureAction(
            BytecodeOutlinePlugin.getResourceString(NLS_PREFIX
                + "select_all.label"), BytecodeOutlinePlugin
                .getResourceString(NLS_PREFIX + "select_all.tooltip"),
            BytecodeOutlinePlugin.getResourceString(NLS_PREFIX
                + "select_all.description"));
View Full Code Here

Examples of org.eclipse.ui.console.actions.TextViewerAction.configureAction()

            BytecodeOutlinePlugin.getResourceString(NLS_PREFIX
                + "select_all.description"));
        setGlobalAction(actionBars, ActionFactory.SELECT_ALL.getId(), action);

        action = new TextViewerAction(textViewer, ITextOperationTarget.COPY);
        action.configureAction(
            BytecodeOutlinePlugin.getResourceString(NLS_PREFIX + "copy.label"),
            BytecodeOutlinePlugin
                .getResourceString(NLS_PREFIX + "copy.tooltip"),
            BytecodeOutlinePlugin.getResourceString(NLS_PREFIX
                + "copy.description"));
View Full Code Here

Examples of org.eclipse.ui.console.actions.TextViewerAction.configureAction()

     * Creates actions.
     */
    protected void createActions() {
        IActionBars actionBars= getSite().getActionBars();
        TextViewerAction action= new TextViewerAction(fViewer, ITextOperationTarget.SELECT_ALL);
    action.configureAction(ConsoleMessages.TextConsolePage_SelectAllText, ConsoleMessages.TextConsolePage_SelectAllDescrip, ConsoleMessages.TextConsolePage_SelectAllDescrip);
    action.setActionDefinitionId(ActionFactory.SELECT_ALL.getCommandId());
    PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IConsoleHelpContextIds.CONSOLE_SELECT_ALL_ACTION);
    setGlobalAction(actionBars, ActionFactory.SELECT_ALL.getId(), action);
   
    action= new TextViewerAction(fViewer, ITextOperationTarget.CUT);
View Full Code Here

Examples of org.eclipse.ui.console.actions.TextViewerAction.configureAction()

    action.setActionDefinitionId(ActionFactory.SELECT_ALL.getCommandId());
    PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IConsoleHelpContextIds.CONSOLE_SELECT_ALL_ACTION);
    setGlobalAction(actionBars, ActionFactory.SELECT_ALL.getId(), action);
   
    action= new TextViewerAction(fViewer, ITextOperationTarget.CUT);
    action.configureAction(ConsoleMessages.TextConsolePage_CutText, ConsoleMessages.TextConsolePage_CutDescrip, ConsoleMessages.TextConsolePage_CutDescrip);
    action.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_CUT));
    action.setActionDefinitionId(ActionFactory.CUT.getCommandId());
    PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IConsoleHelpContextIds.CONSOLE_CUT_ACTION);
    setGlobalAction(actionBars, ActionFactory.CUT.getId(), action);
   
View Full Code Here

Examples of org.eclipse.ui.console.actions.TextViewerAction.configureAction()

    action.setActionDefinitionId(ActionFactory.CUT.getCommandId());
    PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IConsoleHelpContextIds.CONSOLE_CUT_ACTION);
    setGlobalAction(actionBars, ActionFactory.CUT.getId(), action);
   
    action= new TextViewerAction(fViewer, ITextOperationTarget.COPY);
    action.configureAction(ConsoleMessages.TextConsolePage_CopyText, ConsoleMessages.TextConsolePage_CopyDescrip, ConsoleMessages.TextConsolePage_CopyDescrip);
    action.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_COPY));
    action.setActionDefinitionId(ActionFactory.COPY.getCommandId());
    PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IConsoleHelpContextIds.CONSOLE_COPY_ACTION);
    setGlobalAction(actionBars, ActionFactory.COPY.getId(), action);
   
View Full Code Here

Examples of org.eclipse.ui.console.actions.TextViewerAction.configureAction()

    action.setActionDefinitionId(ActionFactory.COPY.getCommandId());
    PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IConsoleHelpContextIds.CONSOLE_COPY_ACTION);
    setGlobalAction(actionBars, ActionFactory.COPY.getId(), action);
   
    action= new TextViewerAction(fViewer, ITextOperationTarget.PASTE);
    action.configureAction(ConsoleMessages.TextConsolePage_PasteText, ConsoleMessages.TextConsolePage_PasteDescrip, ConsoleMessages.TextConsolePage_PasteDescrip);
    action.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_PASTE));
    action.setActionDefinitionId(ActionFactory.PASTE.getCommandId());
    PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IConsoleHelpContextIds.CONSOLE_PASTE_ACTION);
    setGlobalAction(actionBars, ActionFactory.PASTE.getId(), action);
   
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.