public void refresh() {
    if (!isPageOpened()) {
      return;
    }
    super.refresh();
    _defaultButton.removeSelectionListener(_defaultpctSelectionListener);
    _userDefinedButton.removeSelectionListener(_udpctfreeSelectionListener);
    _percentageSpinner.removeSelectionListener(_percentageSpinnerListener);

    // -1 means default
    if (((SybaseASATable) _table).getPctfree() == -1) {
      _defaultButton.setSelection(true);
      _userDefinedButton.setSelection(false);
      _percentageSpinner.setEnabled(false);
      _defaultButton.notifyListeners(SWT.Selection, new Event());
    } else {
      _userDefinedButton.setSelection(true);
      _defaultButton.setSelection(false);
      _percentageSpinner.setEnabled(true);
      int percentage = _percentageSpinner.getSelection();
      String info = "%  ("; // $NON-NLS-1$
      int reservedBytes = (percentage * 2048) / 100;
      info = info + reservedBytes + Messages.ASAStorageEditorPage_bytes_reserved;
      _tipLabel.setText(info);
      ((SybaseASATable) _table).setPctfree(_percentageSpinner.getSelection());
    }

    _defaultButton.addSelectionListener(_defaultpctSelectionListener);
    _userDefinedButton.addSelectionListener(_udpctfreeSelectionListener);
    _percentageSpinner.addSelectionListener(_percentageSpinnerListener);
  }
  protected void createFormContent(IManagedForm managedForm) {
    super.createFormContent(managedForm);
    ISchemaObjectEditorInput input = (ISchemaObjectEditorInput) getEditor().getEditorInput();
    _table = (SybaseASATable) input.getEditModelObject().getMainSQLObject();

    managedForm.getForm().setText(Messages.ASAStorageEditorPage_storage);
    Composite parent = managedForm.getForm().getBody();
    parent.setLayout(new GridLayout());
    FormToolkit toolKit = managedForm.getToolkit();

    PhysicalStorageSection pSection =
        new PhysicalStorageSection(
            toolKit,
            Messages.ASAStorageEditorPage_physical_storage,
            parent.getDisplay(),
            false,
            false,
            SWT.NONE);
    pSection.createControl(parent, 1, null);

    managedForm.getForm().reflow(true);
  }
 public void modelRegenerated() {
   super.modelRegenerated();
 }