Package org.eclipse.ui.console.actions

Examples of org.eclipse.ui.console.actions.TextViewerAction


        }
    }

    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"));
        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"));
        action.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages()
            .getImageDescriptor(ISharedImages.IMG_TOOL_COPY));
        action.setActionDefinitionId(IWorkbenchActionDefinitionIds.COPY);
        setGlobalAction(actionBars, ActionFactory.COPY.getId(), action);

        ResourceBundle bundle = BytecodeOutlinePlugin.getDefault()
            .getResourceBundle();
View Full Code Here


    //////////////////////////////////////////////////////////////////
    ////// Popup Actions
    //////////////////////////////////////////////////////////////////

    // Copy
    actCopy = new TextViewerAction(scriptTextViewer, ITextOperationTarget.COPY);
    actCopy.configureAction(ConsoleMessages.TextConsolePage_CopyText, ConsoleMessages.TextConsolePage_CopyDescrip, ConsoleMessages.TextConsolePage_CopyDescrip);
    actCopy.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_COPY));
    actCopy.setActionDefinitionId(IWorkbenchActionDefinitionIds.COPY);
    actCopy.setEnabled(true);
   
    // Select All
    actSelectAll = new TextViewerAction(scriptTextViewer, ITextOperationTarget.SELECT_ALL);
    actSelectAll.configureAction(ConsoleMessages.TextConsolePage_SelectAllText, ConsoleMessages.TextConsolePage_SelectAllDescrip, ConsoleMessages.TextConsolePage_SelectAllDescrip);
    actSelectAll.setEnabled(true);
   
    // Find/Replace
    ResourceBundle bundle = ConsoleResourceBundleMessages.getBundle();
View Full Code Here

    //////////////////////////////////////////////////////////////////
    ////// Popup Actions
    //////////////////////////////////////////////////////////////////

    // Copy
    actCopy = new TextViewerAction(scriptTextViewer, ITextOperationTarget.COPY);
    actCopy.configureAction(ConsoleMessages.TextConsolePage_CopyText, ConsoleMessages.TextConsolePage_CopyDescrip, ConsoleMessages.TextConsolePage_CopyDescrip);
    actCopy.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_COPY));
    actCopy.setActionDefinitionId(IWorkbenchActionDefinitionIds.COPY);
    actCopy.setEnabled(true);
   
    // Select All
    actSelectAll = new TextViewerAction(scriptTextViewer, ITextOperationTarget.SELECT_ALL);
    actSelectAll.configureAction(ConsoleMessages.TextConsolePage_SelectAllText, ConsoleMessages.TextConsolePage_SelectAllDescrip, ConsoleMessages.TextConsolePage_SelectAllDescrip);
    actSelectAll.setEnabled(true);
   
    // Find/Replace
    ResourceBundle bundle = ConsoleResourceBundleMessages.getBundle();
View Full Code Here

    /**
     * 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);
    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);
   
    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);
   
    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);
   
    fClearOutputAction = new ClearOutputAction(fConsole);
       
View Full Code Here

TOP

Related Classes of org.eclipse.ui.console.actions.TextViewerAction

Copyright © 2018 www.massapicom. 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.