/**
   * Update the tooltips. Note: we can only do this when the panel is parented, since the
   * ToolTipHelpers functions need a Graphics context to make font size calculations. A graphics
   * context is only available once a component has been parented.
   *
   * @param polymorphicVarContext used to toString() the TypeExpr of the arguments
   */
  public void refreshDisplay(PolymorphicVarContext polymorphicVarContext) {

    for (final ArgumentEditorPanel editorPanel : editorPanels) {
      editorPanel.refreshDisplay(polymorphicVarContext);
    }

    DataConstructor dataConstructor = getDataConstructor();
    titleLabel.setToolTipText(
        ToolTipHelpers.getEntityToolTip(
            dataConstructor, namingPolicy, parentEditor.valueEditorManager.getWorkspace(), this));
  }
 /**
  * Adds a listener to all value entry panels used to edit the data constructor argument values.
  *
  * @param listener the listener to add
  */
 public void addArgumentEditorListener(ValueEditorListener listener) {
   for (final ArgumentEditorPanel editorPanel : editorPanels) {
     editorPanel.getValueEntryPanel().addValueEditorListener(listener);
   }
 }