* Contributors:
* Igor Malinin - initial contribution
*
- * $Id: OuterDocumentView.java,v 1.2 2004-09-22 18:51:51 jsurfer Exp $
+ * $Id: OuterDocumentView.java,v 1.4 2004-11-12 20:15:58 axelcl Exp $
*/
package net.sourceforge.phpeclipse.ui.text.rules;
// TODO: move to a better place
getTracker().replace(event.getOffset(), event.getLength(),
event.getText());
+ } catch (IndexOutOfBoundsException x) {
+
} catch (BadLocationException x) {
}
localOffset -= range.length;
}
// TODO jsurfer change start - check this
-// if (localOffset<0) {
-// return 0;
-// }
+ if (localOffset<0) {
+ return 0;
+ } else if (localOffset>getLength()) {
+ return getLength();
+ }
// jsurfer change end
return localOffset;
}