Source:
<code>public void aboutToBeShown() { super.aboutToBeShown(); final String hint = new Eval(interpreter, variableManager).get(description.getHintExpression(), String.class); this.modifyListener = new ModifyListener() { @Override public void modifyText(ModifyEvent event) { if <START> (!EEFTextLifecycleManager.this.container.isRenderingInProgress() && !text.getText().equals(hint)) { if (text.getText().equals(hint)) { text.setText(""); } <END> if (!"".equals(text.getText())) { text.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_WIDGET_FOREGROUND)); } controller.updateValue(text.getText()); } } }; this.text.addModifyListener(this.modifyListener); this.text.addFocusListener(new FocusListener() { @Override public void focusLost(FocusEvent e) { text.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_WIDGET_FOREGROUND)); if (text.getText().length() == 0 && hint != null) { text.setText(hint); text.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW)); } } @Override public void focusGained(FocusEvent e) { if (text.getText().equals(hint)) { text.setText(""); } } }); this.controller.onNewValue(new IConsumer<String>() { @Override public void apply(String value) { if (!text.isDisposed()) { if (((value == null || value.length() == 0) && !text.isFocusControl()) && hint != null) { text.setText(hint); text.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW)); } else if (!(text.getText() != null && (text.getText().equals(value)))) { text.setText(Objects.firstNonNull(value, "")); } setStyle(); if (!text.isEnabled()) { text.setEnabled(true); } } } }); }</code><technical_language>If I understand this correctly, if specifier configured a hint for a text field, text field able hint? If I a text field "name" hint "John Doe", named "John Doe"? In "if", testing !text.getText().equals(hint) testing opposite. odd</technical_language>

Target:
public void aboutToBeShown() { super.aboutToBeShown(); final String hint = new Eval(interpreter, variableManager).get(description.getHintExpression(), String.class); this.modifyListener = new ModifyListener() { @Override public void modifyText(ModifyEvent event) { if (!EEFTextLifecycleManager.this.container.isRenderingInProgress() && !text.getText().equals(hint)) { if (!"".equals(text.getText())) { text.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_WIDGET_FOREGROUND)); } controller.updateValue(text.getText()); } } }; this.text.addModifyListener(this.modifyListener); this.text.addFocusListener(new FocusListener() { @Override public void focusLost(FocusEvent e) { text.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_WIDGET_FOREGROUND)); if (text.getText().length() == 0 && !Util.isBlank(hint)) { text.setText(hint); text.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW)); } } @Override public void focusGained(FocusEvent e) { if (text.getText().equals(hint)) { text.setText(""); } } }); this.controller.onNewValue(new IConsumer<String>() { @Override public void apply(String value) { if (!text.isDisposed()) { if ((Util.isBlank(value) && !text.isFocusControl()) && !Util.isBlank(hint)) { text.setText(hint); text.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW)); } else if (!(text.getText() != null && (text.getText().equals(value)))) { text.setText(Objects.firstNonNull(value, "")); } setStyle(); if (!text.isEnabled()) { text.setEnabled(true); } } } }); }