protected void setValidationMessage(String message) { icon.setVisible(message != null); hintText.setVisible(message != null); hintText.setText(StringUtil.nullAsEmpty(message)); topControl.getParent().layout(); }
/** @see org.eclipse.jface.preference.PreferencePage#applyData(java.lang.Object) */ public void applyData(Object data) { if (data instanceof Map) { fPageData = (Map) data; if (link != null && fPageData.containsKey(NO_LINK)) { link.setVisible(!Boolean.TRUE.equals(((Map) data).get(NO_LINK))); } } }