Package org.eclipse.jface.text.link

Examples of org.eclipse.jface.text.link.LinkedModeUI.enter()


        }
       
        // Aptana has a buggy linked mode implementation, use simple
        // mode for it
        linkUI.setSimpleMode(isApatana());
        linkUI.enter();
      } else {
        setCaretPos(start + firstTabStop.getStart());
      }
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here


                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);
                ui.setCyclingMode(LinkedModeUI.CYCLE_ALWAYS);
                ui.enter();
            } catch (final BadLocationException x) {
                ErlLogger.error(x);
            }
        }
    }
View Full Code Here

      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));
      ui.setSimpleMode(true);
      ui.enter();

      paired = true;
    } catch (BadLocationException e) {
      Logger.logException(e);
    }
View Full Code Here

        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();
        fSelectedRegion = ui.getSelectedRegion();
      }
    }
    catch (BadLocationException e) {
      Logger.logException(e);
View Full Code Here

        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);
        ui.setDoContextInfo(true);
        ui.enter();
        fSelectedRegion = ui.getSelectedRegion();
      }
    }
    catch (BadLocationException e) {
     
View Full Code Here

      linkedModeModel.addGroup(group);
      linkedModeModel.forceInstall();
 
      LinkedModeUI ui = new EditorLinkedModeUI(linkedModeModel, viewer);
      ui.setExitPosition(viewer, start.offset, 0, LinkedPositionGroup.NO_STOP);
      ui.enter();
 
      fSelectedRegion = ui.getSelectedRegion();
    }
    catch (BadLocationException e) {
      // log for now, unless find reason not to
View Full Code Here

      linkedModeModel.addGroup(group);
      linkedModeModel.forceInstall();

      LinkedModeUI ui = new EditorLinkedModeUI(linkedModeModel, viewer);
      ui.setExitPosition(viewer, offset, 0, LinkedPositionGroup.NO_STOP);
      ui.enter();

      fSelectedRegion = ui.getSelectedRegion();
    }
    catch (BadLocationException e) {
      // log for now, unless find reason not to
View Full Code Here

      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();
      } else {
        ensurePositionCategoryRemoved(document);
        fSelectedRegion= new Region(getCaretOffset(templateBuffer) + start, 0);
View Full Code Here

        }
       
        // Aptana has a buggy linked mode implementation, use simple
        // mode for it
        linkUI.setSimpleMode(isApatana());
        linkUI.enter();
      } else {
        setCaretPos(start + firstTabStop.getStart());
      }
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

        }
      });
      LinkedModeUI htmlUI = new EditorLinkedModeUI(linkedModeModel, textViewers);
      //    ui.setInitialOffset(offset);
//      htmlUI.setExitPosition(textViewers[0], 0, 0, LinkedPositionGroup.NO_STOP);
      htmlUI.enter();
    }
  }
}
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.