@Override
 public void commit(boolean onSave) {
   fOsText.commit();
   fWsText.commit();
   fNlText.commit();
   fArchText.commit();
   super.commit(onSave);
 }
 @Override
 public void cancelEdit() {
   fOsText.cancelEdit();
   fWsText.cancelEdit();
   fNlText.cancelEdit();
   fArchText.cancelEdit();
   super.cancelEdit();
 }
Esempio n. 3
0
 /* (non-Javadoc)
  * @see org.eclipse.ui.forms.AbstractFormPart#refresh()
  */
 public void refresh() {
   IProduct product = getProduct();
   if (product.getId() != null) {
     fIdEntry.setValue(product.getId(), true);
   }
   if (product.getName() != null) {
     fNameEntry.setValue(product.getName(), true);
   }
   if (product.getVersion() != null) {
     fVersionEntry.setValue(product.getVersion(), true);
   }
   fLaunchersButton.setSelection(product.includeLaunchers());
   super.refresh();
 }
  @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();
  }
Esempio n. 5
0
 public void dispose() {
   IProductModel model = getModel();
   if (model != null) model.removeModelChangedListener(this);
   super.dispose();
 }
Esempio n. 6
0
 /* (non-Javadoc)
  * @see org.eclipse.pde.internal.ui.editor.PDESection#cancelEdit()
  */
 public void cancelEdit() {
   fIdEntry.cancelEdit();
   fNameEntry.cancelEdit();
   fVersionEntry.cancelEdit();
   super.cancelEdit();
 }
Esempio n. 7
0
 /* (non-Javadoc)
  * @see org.eclipse.ui.forms.AbstractFormPart#commit(boolean)
  */
 public void commit(boolean onSave) {
   fIdEntry.commit();
   fNameEntry.commit();
   fVersionEntry.commit();
   super.commit(onSave);
 }
 @Override
 public void initialize(IManagedForm form) {
   IFeatureModel model = (IFeatureModel) getPage().getModel();
   if (model != null) model.addModelChangedListener(this);
   super.initialize(form);
 }
 @Override
 public void dispose() {
   IFeatureModel model = (IFeatureModel) getPage().getModel();
   if (model != null) model.removeModelChangedListener(this);
   super.dispose();
 }