1 19 20 package org.netbeans.editor; 21 22 import javax.swing.text.BadLocationException ; 23 import javax.swing.text.Position ; 24 25 35 36 class BasePosition implements Position { 37 38 39 private MultiMark mark; 40 41 BasePosition(MultiMark mark) throws BadLocationException { 42 this.mark = mark; 43 } 44 45 46 public int getOffset() { 47 return mark.getOffset(); 48 } 49 50 51 protected void finalize() throws Throwable { 52 if (mark != null) 53 mark.dispose(); 54 super.finalize(); 55 } 56 57 } 58 | Popular Tags |