Examples of forceInstall()


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

           
            model.addGroup(group);
          }
        }
       
        model.forceInstall();
        LinkedModeUI linkUI = new LinkedModeUI(model, viewer);
        if (exitPos != -1) {
          linkUI.setExitPosition(viewer, exitPos, 0, Integer.MAX_VALUE);
        }
       
View Full Code Here

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

                LinkedPositionGroup.NO_STOP));

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

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

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

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

                    final int l = offsetAndLength.x + offsetAndLength.y;
                    if (l > last) {
                        last = l;
                    }
                }
                model.forceInstall();

                final LinkedModeUI ui = new EditorLinkedModeUI(model, sourceViewer);
                // ui.setSimpleMode(true);
                ui.setExitPolicy(new ExitPolicy(closingCharacter, document));
                ui.setExitPosition(sourceViewer, last + 1, 0, LinkedPositionGroup.NO_STOP);
View Full Code Here

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

      document.replace(offset, length, new String(chars));
      LinkedModeModel model = new LinkedModeModel();
      LinkedPositionGroup group = new LinkedPositionGroup();
      group.addPosition(new LinkedPosition(document, offset + 1, 0, LinkedPositionGroup.NO_STOP));
      model.addGroup(group);
      model.forceInstall();

      LinkedModeUI ui = new LinkedModeUI(model, viewer);
      ui.setCyclingMode(LinkedModeUI.CYCLE_NEVER);
      ui.setExitPosition(viewer, offset + 2, 0, Integer.MAX_VALUE);
      ui.setExitPolicy(getExitPolicy(mc, getEscapeChar(c), document));
View Full Code Here

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

            }
            break;
        }
      }
      if (hasGroup) {
        model.forceInstall();
        final LinkedModeUI ui= new EditorLinkedModeUI(model, viewer);
        ui.setExitPosition(viewer, exitPosition < 0 ? getReplacementOffset() + getReplacementLength() + replacement.length() - 1 : exitPosition, 0, Integer.MAX_VALUE);
        ui.setCyclingMode(LinkedModeUI.CYCLE_WHEN_NO_PARENT);
        ui.setDoContextInfo(true);
        ui.enter();
View Full Code Here

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

          LinkedPositionGroup group = new LinkedPositionGroup();
          Position position = positions[i];
          group.addPosition(new LinkedPosition(viewer.getDocument(), position.getOffset(), position.getLength(), i));
          model.addGroup(group);
        }
        model.forceInstall();

        LinkedModeUI ui = new EditorLinkedModeUI(model, viewer);
        ui.setExitPosition(viewer, getReplacementOffset() + getReplacementString().length(), 0, Integer.MAX_VALUE);
        ui.setExitPolicy(new ExitPolicy(')', viewer.getDocument()));
        ui.setCyclingMode(LinkedModeUI.CYCLE_WHEN_NO_PARENT);
View Full Code Here

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

      if(viewer instanceof ITextViewerExtension)
        ((ITextViewerExtension) viewer).setRedraw(true);

      LinkedModeModel linkedModeModel = new LinkedModeModel();
      linkedModeModel.addGroup(group);
      linkedModeModel.forceInstall();
 
      LinkedModeUI ui = new EditorLinkedModeUI(linkedModeModel, viewer);
      ui.setExitPosition(viewer, start.offset, 0, LinkedPositionGroup.NO_STOP);
      ui.enter();
 
View Full Code Here

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

        if(viewer instanceof ITextViewerExtension)
          ((ITextViewerExtension) viewer).setRedraw(true);

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

      LinkedModeUI ui = new EditorLinkedModeUI(linkedModeModel, viewer);
      ui.setExitPosition(viewer, offset, 0, LinkedPositionGroup.NO_STOP);
      ui.enter();
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()

           
            model.addGroup(group);
          }
        }
       
        model.forceInstall();
        LinkedModeUI linkUI = new LinkedModeUI(model, viewer);
        if (exitPos != -1) {
          linkUI.setExitPosition(viewer, exitPos, 0, Integer.MAX_VALUE);
        }
       
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.