Permalink
Browse files

GMLTextArea now has a markError method for compatibility with JoshEdit.

  • Loading branch information...
1 parent 71171c7 commit 2d49da6ab3dd0170fcc996bd20348e7799d588af @IsmAvatar committed Feb 20, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 org/lateralgm/components/GMLTextArea.java
@@ -197,6 +197,13 @@ public String getTextCompat()
return s;
}
+ public void markError(int row, int col, int abs)
+ {
+ setCaretPosition(abs);
+ setSelectionStart(abs);
+ setSelectionEnd(abs + 1);
+ }
+
public void updateResourceKeywords()
{
for (ResourceHolder<?> rh : LGM.currentFile.resMap.values())

0 comments on commit 2d49da6

Please sign in to comment.