コード例 #1
0
 @Override
 public void commit(boolean onSave) {
   fOsText.commit();
   fWsText.commit();
   fNlText.commit();
   fArchText.commit();
   super.commit(onSave);
 }
コード例 #2
0
 @Override
 public void cancelEdit() {
   fOsText.cancelEdit();
   fWsText.cancelEdit();
   fNlText.cancelEdit();
   fArchText.cancelEdit();
   super.cancelEdit();
 }
コード例 #3
0
  @Override
  public void refresh() {
    if (fCurrentInput == null) {
      clearFields();
    } else {
      setValue(IEnvironment.P_OS);
      setValue(IEnvironment.P_WS);
      setValue(IEnvironment.P_ARCH);
      setValue(IEnvironment.P_NL);
    }

    fOsText.setEditable(fCurrentInput != null && isEditable());
    fWsText.setEditable(fCurrentInput != null && isEditable());
    fNlText.setEditable(fCurrentInput != null && isEditable());
    fArchText.setEditable(fCurrentInput != null && isEditable());

    super.refresh();
  }
コード例 #4
0
 @Override
 public void initialize(IManagedForm form) {
   IFeatureModel model = (IFeatureModel) getPage().getModel();
   if (model != null) model.addModelChangedListener(this);
   super.initialize(form);
 }
コード例 #5
0
 @Override
 public void dispose() {
   IFeatureModel model = (IFeatureModel) getPage().getModel();
   if (model != null) model.removeModelChangedListener(this);
   super.dispose();
 }