~ubuntu-branches/ubuntu/utopic/sikuli/utopic

« back to all changes in this revision

Viewing changes to sikuli-ide/src/main/java/org/sikuli/ide/MyDocument.java

  • Committer: Bazaar Package Importer
  • Author(s): Gilles Filippini
  • Date: 2011-04-16 00:23:53 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110416002353-cn79cto3c03z5jx1
Tags: 1.0~x~rc2-dfsg1-1
* New upstream release:
  + Redesigned user interface for Sikuli-IDE
  + Support for extensions for Sikuli Script

* debian/control, debian/copyright:
  The package is now maintained by the Debian Java maintainers Team

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
import javax.swing.text.AttributeSet;
5
5
import javax.swing.text.BadLocationException;
6
6
 
 
7
import org.sikuli.script.Debug;
7
8
 
8
9
class MyDocument extends DefaultStyledDocument {
9
10
   @Override
10
11
      public void insertString(int offs, String str, AttributeSet a) throws BadLocationException {
11
12
         str = str.replaceAll("\t", "  ");
12
13
         super.insertString(offs, str, a);
13
 
         System.out.println("insertString: " + str); 
 
14
         Debug.log(5, "insertString: " + str); 
14
15
      }
15
16
}
16
17