~ubuntu-branches/debian/experimental/arduino/experimental

« back to all changes in this revision

Viewing changes to app/src/processing/app/syntax/im/CompositionTextManager.java

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2012-03-11 18:19:42 UTC
  • mfrom: (1.1.5) (5.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20120311181942-be2clnbz1gcehixb
Tags: 1:1.0.1~rc1+dfsg-1
New upstream release, experimental.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
  public boolean getIsInputProcess() {
55
55
    return isInputProcess;
56
56
  }
 
57
  /**
 
58
   * Insert full width space
 
59
   */
 
60
  public void insertFullWidthSpace() {
 
61
    initialCaretPosition = textArea.getCaretPosition();
 
62
    int layoutCaretPosition = initialCaretPosition;
 
63
    try {
 
64
      textArea.getDocument().insertString(layoutCaretPosition, "\u3000", null);
 
65
    } catch (BadLocationException e) {
 
66
      e.printStackTrace();
 
67
    }
 
68
  }
57
69
 
58
70
  /**
59
71
   * Called when a user begins input from input method.
115
127
   * @param commited_count Numbers of committed characters in text. 
116
128
   */
117
129
  public void endCompositionText(AttributedCharacterIterator text, int committed_count) {
118
 
    isInputProcess = false;
119
130
    /*
120
131
     * If there are no committed characters, remove it all from textarea.
121
132
     * This case will happen if a user delete all composing characters by backspace or delete key.