Examples of forceInstall()


Examples of org.eclipse.jface.text.link.LinkedModeModel.forceInstall()

  protected static void enterLinkedMode(LinkedPositionGroup linkedGroup, final WodParserCache cache, ITextViewer... textViewers) throws BadLocationException {
    if (!linkedGroup.isEmpty()) {
      LinkedModeModel linkedModeModel = new LinkedModeModel();
      linkedModeModel.addGroup(linkedGroup);
      linkedModeModel.forceInstall();

      //    JavaEditor editor = getJavaEditor();
      //    if (editor != null) {
      //      model.addLinkingListener(new EditorHighlightingSynchronizer(editor));
      //    }
View Full Code Here

Examples of org.eclipse.jface.text.link.LinkedModeModel.forceInstall()

                        new ICompletionProposal[0]);
                group.addPosition(proposalPosition);
                model.addGroup(group);
            }

            model.forceInstall();

            final LinkedModeUI ui = new EditorLinkedModeUI(model, viewer);
            ui.setDoContextInfo(true); //set it to request the ctx info from the completion processor
            ui.setExitPosition(viewer, exitPos, 0, Integer.MAX_VALUE);
            Runnable r = new Runnable() {
View Full Code Here

Examples of org.eclipse.jface.text.link.LinkedModeModel.forceInstall()

                LinkedPositionGroup group = new LinkedPositionGroup();
                group.addPosition(new LinkedPosition(doc, linkOffset, linkLen, LinkedPositionGroup.NO_STOP));

                LinkedModeModel model = new LinkedModeModel();
                model.addGroup(group);
                model.forceInstall();

                if (viewer == null) {
                    return true; //don't actually do the link.
                }
View Full Code Here

Examples of org.eclipse.jface.text.link.LinkedModeModel.forceInstall()

            ProposalPosition proposalPosition = new ProposalPosition(document, fReplacementOffset,
                    fReplacementString.length() - 3, 0, new ICompletionProposal[0]);
            group.addPosition(proposalPosition);

            model.addGroup(group);
            model.forceInstall();

            final LinkedModeUI ui = new EditorLinkedModeUI(model, viewer);
            ui.setExitPosition(viewer, lineOffset + lineLength - lineDelimiterLen, 0, Integer.MAX_VALUE);
            Runnable r = new Runnable() {
                public void run() {
View Full Code Here

Examples of org.eclipse.jface.text.link.LinkedModeModel.forceInstall()

            group.addPosition(new LinkedPosition(document, offset + 1, 0, LinkedPositionGroup.NO_STOP));

            LinkedModeModel model = new LinkedModeModel();
            model.addLinkingListener(this);
            model.addGroup(group);
            model.forceInstall();

            level.fOffset = offset;
            level.fLength = 2;

            // set up position tracking for our magic peers
View Full Code Here

Examples of org.eclipse.jface.text.link.LinkedModeModel.forceInstall()

        model.addGroup(group);
        hasPositions= true;
      }

      if (hasPositions) {
        model.forceInstall();
        LinkedModeUI ui= new LinkedModeUI(model, viewer);
        ui.setExitPosition(viewer, getCaretOffset(templateBuffer) + start, 0, Integer.MAX_VALUE);
        ui.enter();

        fSelectedRegion= ui.getSelectedRegion();
View Full Code Here

Examples of org.eclipse.jface.text.link.LinkedModeModel.forceInstall()

      return;
    }
    try {
      LinkedModeModel model = new LinkedModeModel();
      model.addGroup(group);
      model.forceInstall();
      model.addLinkingListener(new EditorSynchronizer(editor));
      Point curRange = viewer.getSelectedRange();
      LinkedModeUI ui = new EditorLinkedModeUI(model, viewer);
      ui.setExitPosition(viewer, offset, 0, Integer.MAX_VALUE);
      ui.enter();
View Full Code Here

Examples of org.eclipse.jface.text.link.LinkedModeModel.forceInstall()

      return;
    }
    try {
      LinkedModeModel model = new LinkedModeModel();
      model.addGroup(group);
      model.forceInstall();
      model.addLinkingListener(new EditorSynchronizer(editor));
      LinkedModeUI ui = new EditorLinkedModeUI(model, viewer);
      ui.setExitPosition(viewer, offset, 0, Integer.MAX_VALUE);
      ui.setExitPolicy(new exitOnSpacePolicy());
      ui.enter();
View Full Code Here

Examples of org.eclipse.jface.text.link.LinkedModeModel.forceInstall()

    LinkedModeModel model = new LinkedModeModel();
    try {
      group.addPosition(position);
      model.addGroup(group);
      model.forceInstall();

      ITextViewer viewer = getViewer(document);
      if (viewer == null) {
        return;
      }
View Full Code Here

Examples of org.eclipse.jface.text.link.LinkedModeModel.forceInstall()

      if (editor != null && editor instanceof IConfigEditor) {
        viewer = ((IConfigEditor) editor).getTextViewer();
      }
      if (hasPositions && viewer != null) {
        try {
          linkModel.forceInstall();
          LinkedModeUI ui = new LinkedModeUI(linkModel, viewer);
          ui.enter();
        }
        catch (BadLocationException e) {
          StatusHandler.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID,
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.