예제 #1
0
  protected Token doGetToken(String id, IFieldView<TextStyling> stylingPref) {
    assertNotNull(id);
    assertNotNull(stylingPref);
    assertTrue(SWTUtil.isUIThread());

    Token token = tokens.get(id);
    if (token == null) {
      Token newToken = new Token(createTextAttribute(stylingPref));

      stylingPref.bindOwnedListener(owned, () -> updateToken(newToken, stylingPref));

      tokens.put(id, newToken);
      token = newToken;
    }

    return token;
  }
예제 #2
0
 @Override
 protected void doSetEnabled(boolean enabled) {
   SWTUtil.setEnabledIfOk(checkBox, enabled);
 }
예제 #3
0
 @Override
 protected void doSetEnabled(boolean enabled) {
   SWTUtil.setEnabledIfOk(button, enabled);
 }
예제 #4
0
 public void postSetFocus() {
   SWTUtil.post_setFocus(textField.getFieldControl());
 }