/* (non-Javadoc)
  * @see org.eclipse.ui.forms.AbstractFormPart#dispose()
  */
 public void dispose() {
   IProductModel model = getModel();
   if (model != null) {
     model.removeModelChangedListener(this);
   }
   super.dispose();
 }
 public void refresh() {
   String introId = getIntroInfo().getId();
   if (introId == null) {
     fIntroCombo.setText(""); // $NON-NLS-1$
   } else {
     fIntroCombo.setText(introId);
   }
   super.refresh();
 }
 @Override
 public void refresh() {
   fLastTab = fTabFolder.getSelectionIndex();
   IArgumentsInfo launcherArguments = getLauncherArguments();
   fProgramArgs.setValue(
       launcherArguments.getProgramArguments(fLastTab, fLastArch[fLastTab]), true);
   fVMArgs.setValue(launcherArguments.getVMArguments(fLastTab, fLastArch[fLastTab]), true);
   updateArgumentPreview(launcherArguments);
   super.refresh();
 }
  @Override
  public void refresh() {
    ISplashInfo info = getSplashInfo();
    fBlockNotification = true;

    fColorSelector.setColorValue(hexToRGB(info.getForegroundColor()));

    int[] pgeo = info.getProgressGeometry();
    boolean addProgress = pgeo != null;
    info.addProgressBar(addProgress, fBlockNotification);
    if (addProgress) {
      for (int i = 0; i < pgeo.length; i++) {
        fBarSpinners[i].setSelection(pgeo[i]);
      }
    } else {
      resetProgressBarGeometry();
    }

    fAddBarButton.setSelection(addProgress);

    int[] mgeo = info.getMessageGeometry();
    boolean addMessage = mgeo != null;
    info.addProgressMessage(addMessage, fBlockNotification);
    if (addMessage) {
      for (int i = 0; i < mgeo.length; i++) {
        fMessageSpinners[i].setSelection(mgeo[i]);
      }
    } else {
      resetProgressMessageGeometry();
    }
    fColorSelector.setColorValue(
        addMessage ? hexToRGB(info.getForegroundColor()) : new RGB(0, 0, 0));

    fAddMessageButton.setSelection(addMessage);

    // Update the UI
    updateUIFieldTemplateCombo();
    fBlockNotification = false;
    super.refresh();
    // Update this sections enablement
    updateFieldEnablement();
  }
 @Override
 public void cancelEdit() {
   fProgramArgs.cancelEdit();
   fVMArgs.cancelEdit();
   super.cancelEdit();
 }
 @Override
 public void commit(boolean onSave) {
   fProgramArgs.commit();
   fVMArgs.commit();
   super.commit(onSave);
 }