Package com.cburch.hex

Examples of com.cburch.hex.Caret


  Clip(HexEditor editor) {
    this.editor = editor;
  }
 
  public void copy() {
    Caret caret = editor.getCaret();
    long p0 = caret.getMark();
    long p1 = caret.getDot();
    if (p0 < 0 || p1 < 0) return;
    if (p0 > p1) {
      long t = p0; p0 = p1; p1 = t;
    }
    p1++;
View Full Code Here


        Strings.get("hexPasteErrorTitle"),
        JOptionPane.ERROR_MESSAGE);
      return;
    }

    Caret caret = editor.getCaret();
    long p0 = caret.getMark();
    long p1 = caret.getDot();
    if (p0 == p1) {
      HexModel model = editor.getModel();
      if (p0 + data.length - 1 <= model.getLastOffset()) {
        model.set(p0, data);
      } else {
View Full Code Here

    Clip(HexEditor editor) {
        this.editor = editor;
    }

    public void copy() {
        Caret caret = editor.getCaret();
        long p0 = caret.getMark();
        long p1 = caret.getDot();
        if (p0 < 0 || p1 < 0) {
            return;
        }

        if (p0 > p1) {
View Full Code Here

                getFromLocale("hexPasteErrorTitle"),
                JOptionPane.ERROR_MESSAGE);
            return;
        }

        Caret caret = editor.getCaret();
        long p0 = caret.getMark();
        long p1 = caret.getDot();
        if (p0 == p1) {
            HexModel model = editor.getModel();
            if (p0 + data.length - 1 <= model.getLastOffset()) {
                model.set(p0, data);
            } else {
View Full Code Here

TOP

Related Classes of com.cburch.hex.Caret

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.