コード例 #1
0
 public boolean handleEvent(Text text, TextEvent event) {
   if (text.getElement(LiveParseFlag.class).liveParse) {
     throw new RuntimeException("assert");
   }
   switchModes(text, null, text.getContent());
   doNotupdate = true;
   fChangeListener.valueChanges((IModelElement) null);
   doNotupdate = false;
   for (ITextEventListener listener :
       ((CompoundText) text).getTexts().get(0).getAllElements(ITextEventListener.class)) {
     listener.handleEvent(text, event);
   }
   return true;
 }
コード例 #2
0
 public boolean verifyEvent(Text text, TextEvent event) {
   return ExpressionTemplate.this.verifyEvent(text.getContent(), event);
 }