title: Eclipse RCP Data Binding: Label's Text is Updated, Size Isn't
body: <p>I'm binding the text value of a label to my backend model using the following code (some details omitted):</p>
  
  <pre><code>Model model = entry.getModel();
  Control nameControl = formToolkit.createLabel(labelPanel, null);
  
  IObservableValue modelValue = BeanProperties.value(model.getClass(), Model.PROPERTY_NAME).observe(model);
  IObservableValue widgetValue = SWTObservables.observeText(nameControl);
  
  DataBindingContext context = new DataBindingContext();
  UpdateValueStrategy widgetToModel = new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER);
  UpdateValueStrategy modelToWidget = new UpdateValueStrategy(UpdateValueStrategy.POLICY_UPDATE);
  context.bindValue(widgetValue, modelValue, widgetToModel, modelToWidget);
  </code></pre>
  
  <p>When the model is changed, the text of the label updates appropriately.  However the label is not resized.  So when the model changes to a longer name, the new name is cut off.  When it changes to a shorter name, the label takes up more space than it should.</p>
  
  <p>I thought about adding a property change listener (either for the model name or the label text) that would call <code>layout</code> on the label's parent whenever the name is changed, but wouldn't that defeat the purpose of data binding?</p>