Package org.eclipse.ui.texteditor

Examples of org.eclipse.ui.texteditor.TextOperationAction


      setActionActivationCode(
          ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS, ' ', -1,
          SWT.CTRL);
*/

      IAction action = new TextOperationAction(CFMLPlugin.getDefault()
          .getResourceBundle(), "ContentFormat.", this, ISourceViewer.FORMAT); //$NON-NLS-1$
      action.setActionDefinitionId(CFMLPlugin.PLUGIN_ID + ".FormatAction");
      action.setEnabled(true);
      // for some reason this isn't getting picked up from the RB above.  #517
      action.setText("Format Source");
      markAsStateDependentAction("ContentFormat", true); //$NON-NLS-1$
      markAsSelectionDependentAction("ContentFormat", true); //$NON-NLS-1$
      setAction("ContentFormat", action); //$NON-NLS-1$     
     
    } catch (Exception e) {
View Full Code Here


  }
 
  protected void createActions() {
    super.createActions();

    IAction action= new TextOperationAction(
        TemplateMessages.getResourceBundle(),
        "Editor." + TEMPLATE_PROPOSALS + ".", //$NON-NLS-1$ //$NON-NLS-2$
        this,
        ISourceViewer.CONTENTASSIST_PROPOSALS);
    action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
    setAction(TEMPLATE_PROPOSALS, action);
    markAsStateDependentAction(TEMPLATE_PROPOSALS, true);
  }
View Full Code Here

    protected void createActions() {
        super.createActions();

        // This action will fire a CONTENTASSIST_PROPOSALS operation
        // when executed
        IAction action = new TextOperationAction(IvyPlugin.getDefault().getResourceBundle(),
                "ContentAssistProposal", this, ISourceViewer.CONTENTASSIST_PROPOSALS);
        action.setActionDefinitionId(CONTENTASSIST_PROPOSAL_ID);

        // Tell the editor about this new action
        setAction(CONTENTASSIST_PROPOSAL_ID, action);

        // Tell the editor to execute this action
View Full Code Here

TOP

Related Classes of org.eclipse.ui.texteditor.TextOperationAction

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.