/** Initialize the panel. */
  private void init() {
    // ------------------------------
    // Set layout for the SashForm
    // ------------------------------
    GridLayout gridLayout = new GridLayout();
    this.setLayout(gridLayout);
    gridLayout.numColumns = 1;
    gridLayout.marginLeft = 20;
    GridData gridData = new GridData(GridData.FILL_BOTH);
    this.setLayoutData(gridData);

    // Init the symbol arrays from bindings
    this.bindingListInput = new BindingTableInput(createBindingList(originalBindingList));

    // ----------------------------------
    // Create the Table Viewer Panel
    // ----------------------------------
    createTableViewerPanel(this);

    // Initialize the message area at the top of the dialog
    datatypeReconcilerDialog.setTitle(Messages.datatypeReconciler_statusTitle);
    updateMessageArea();

    // Listen for TableSelection from the Tables
    bindingTableViewer.addSelectionChangedListener(this);
    selectFirstTypeConflict();
    bindingListInput.datatypeChanged();
  }
 /**
  * Updates the Message Area at the top of the containing dialog, based upon the current status of
  * the panel
  */
 private void updateMessageArea() {
   int statusType = IMessageProvider.NONE;
   String message = ALL_RESOLVED_MESSAGE;
   if (this.bindingList.hasTypeConflict()) {
     message = ONE_OR_MORE_UNRESOLVED_MESSAGE;
     statusType = IMessageProvider.ERROR;
   }
   datatypeReconcilerDialog.setMessage(message, statusType);
 }
 /**
  * Updates the Message Area at the top of the containing dialog, based upon the current status of
  * the panel
  */
 private void updateMessageArea() {
   int statusType = IMessageProvider.NONE;
   String message = Messages.datatypeReconciler_allResolvedMessage;
   if (this.bindingListInput.getBindingList().hasTypeConflict()) {
     message = Messages.datatypeReconciler_someUnresolvedConflicts;
     statusType = IMessageProvider.ERROR;
   }
   datatypeReconcilerDialog.setMessage(message, statusType);
 }
  /** Initialize the panel. */
  private void init() {
    // ------------------------------
    // Set layout for the SashForm
    // ------------------------------
    GridLayout gridLayout = new GridLayout();
    this.setLayout(gridLayout);
    gridLayout.numColumns = 1;
    gridLayout.marginLeft = 20;
    GridData gridData = new GridData(GridData.FILL_BOTH);
    this.setLayoutData(gridData);

    // Init the symbol arrays from bindings
    this.bindingList = createBindingList(originalBindingList);

    // ----------------------------------
    // Create the Table Viewer Panel
    // ----------------------------------
    createTableViewerPanel(this);

    // ------------------------------------------
    // Create Attribute and SQL Control Panels
    // ------------------------------------------
    createControlsPanel(this);

    // --------------------------------------------------
    // Init the weighting for the top and bottom panels
    // --------------------------------------------------
    int[] wts = {5, 8};
    this.setWeights(wts);

    // Initialize the message area at the top of the dialog
    datatypeReconcilerDialog.setTitle(DIALOG_STATUS_TITLE);
    updateMessageArea();

    // Listen for TableSelection from the Tables
    tableViewer.addSelectionChangedListener(this);
    selectFirstTypeConflict();
  }