protected void outputText(String newValue) {
   if (editpart.getPV() == null) {
     editpart.setPropertyValue(TextInputModel.PROP_TEXT, newValue);
     editpart.outputPVValue(newValue);
   } else {
     // PV may not be changed instantly, so recover it to old text first.
     text.setText(model.getText());
     // Write PV and update the text with new PV value if writing succeed.
     editpart.outputPVValue(newValue);
   }
 }