Exemplo n.º 1
0
 private boolean getStyledTextContentChangedAndStoreNew() {
   StyledTextContent currentContent = this.styledText.getContent();
   StyledTextContent oldContent = this.content;
   if (currentContent != oldContent) {
     // Important: the content may change during runtime, so, we have to stop listening the old one
     // and
     // start listening the new one.
     if (oldContent != null) {
       oldContent.removeTextChangeListener(this);
     }
     this.content = currentContent;
     currentContent.addTextChangeListener(this);
     return true;
   }
   return false;
 }