Package org.eclipse.ui.texteditor

Examples of org.eclipse.ui.texteditor.ContentAssistAction


    {
        super.createActions();

        // add content assistant
        ResourceBundle bundle = LdifEditorActivator.getDefault().getResourceBundle();
        IAction action = new ContentAssistAction( bundle, "ldifeditor__contentassistproposal_", this ); //$NON-NLS-1$
        action.setActionDefinitionId( ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS );
        setAction( "ContentAssistProposal", action ); //$NON-NLS-1$

        // add execute action (for tool bar)
        ExecuteLdifAction executeLdifAction = new ExecuteLdifAction( this );
        this.actionToolBarManager.add( executeLdifAction );
View Full Code Here


 
  @Override
  protected void createActions() {
    super.createActions();
   
    IAction action = new ContentAssistAction(TextEditorMessages.getBundle(), "ContentAssistAction.", this);
    String id = ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS;
    action.setActionDefinitionId(id);
    setAction(id, action);
  }
View Full Code Here

    super.createActions();

    // All useful actions are already defined in the parent classes. The
    // only one missing is the action necessary for activating content
    // assist with Ctrl+Space.
    IAction action = new ContentAssistAction(
        TextEditorMessages.getBundle(), "ContentAssistAction.", this);
    String id = ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS;
    action.setActionDefinitionId(id);
    setAction(id, action);

    // Quick Outline
    action = new TextOperationAction(TextEditorMessages.getBundle(),
        "ShowOutline.", this,
        ProjectionViewerWithOutline.OPCODE_SHOW_OUTLINE, true);
    action.setActionDefinitionId(ProjectionViewerWithOutline.ACTIONID_SHOW_OUTLINE);
    setAction(ProjectionViewerWithOutline.ACTIONID_SHOW_OUTLINE, action);
  }
View Full Code Here

    {
        super.createActions();

        // add content assistant
        ResourceBundle bundle = LdifEditorActivator.getDefault().getResourceBundle();
        IAction action = new ContentAssistAction( bundle, "ldifeditor__contentassistproposal_", this ); //$NON-NLS-1$
        action.setActionDefinitionId( ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS );
        setAction( "ContentAssistProposal", action ); //$NON-NLS-1$

        // add execute action (for tool bar)
        if ( actionToolBarManager != null )
        {
View Full Code Here

    {
        super.createActions();

        // add content assistant
        ResourceBundle bundle = LdifEditorActivator.getDefault().getResourceBundle();
        IAction action = new ContentAssistAction( bundle, "ldifeditor__contentassistproposal_", this ); //$NON-NLS-1$
        action.setActionDefinitionId( ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS );
        setAction( "ContentAssistProposal", action ); //$NON-NLS-1$

        // add execute action (for tool bar)
        if ( actionToolBarManager != null )
        {
View Full Code Here

      stopBracketHighlighting();
    }
    fFoldingGroup = new FoldingActionGroup(this, getSourceViewer());

    // activation of ctrl+space command for contentassist
    IAction action = new ContentAssistAction(QvtEditorMessages
        .getResourceBundle(), "ContentAssistProposal.", this);
    action
        .setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
    setAction("Content Assist", action);
  }
View Full Code Here

 
  @Override
  protected void createActions() {
      super.createActions();
      // Add a content assist action
      IAction action = new ContentAssistAction(
          HTMLPlugin.getDefault().getResourceBundle(),"ContentAssistProposal", this);
      action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
      setAction("ContentAssistProposal", action);
  }
View Full Code Here

  @Override
  protected void createActions() {
    super.createActions();
    // add content assist action
    IAction action = new ContentAssistAction(HTMLPlugin.getDefault().getResourceBundle(), "ContentAssistProposal", this);
    action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
    setAction(ACTION_COMPLETION, action);
    setAction(ACTION_COMMENT, new CommentAction());
  }
View Full Code Here

    super.createActions();

    String BUNDLE_FOR_CONSTRUCTED_KEYS = "org.eclipse.jdt.internal.ui.javaeditor.ConstructedJavaEditorMessages";//$NON-NLS-1$
    ResourceBundle fgBundleForConstructedKeys = ResourceBundle.getBundle(BUNDLE_FOR_CONSTRUCTED_KEYS);
    // WodclipsePlugin.getDefault().getResourceBundle()
    ContentAssistAction action = new ContentAssistAction(fgBundleForConstructedKeys, "ContentAssistProposal.", this); //$NON-NLS-1$
    action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
    setAction("ContentAssistProposal", action);
    markAsStateDependentAction("ContentAssistProposal", true);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IAbstractTextEditorHelpContextIds.CONTENT_ASSIST_ACTION);
  }
View Full Code Here

  @Override
  protected void createActions() {
    super.createActions();
    // Add a content assist action
    IAction action = new ContentAssistAction(HTMLPlugin.getDefault().getResourceBundle(), "ContentAssistProposal", this);
    action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
    setAction("ContentAssistProposal", action);
  }
View Full Code Here

TOP

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

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.