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; }
@Override protected void doSetEnabled(boolean enabled) { SWTUtil.setEnabledIfOk(checkBox, enabled); }
@Override protected void doSetEnabled(boolean enabled) { SWTUtil.setEnabledIfOk(button, enabled); }
public void postSetFocus() { SWTUtil.post_setFocus(textField.getFieldControl()); }