protected void handleUndo(Control control) { if (_binding != null) { if (control.equals(_entityClassNameText)) { _entityClassNameText.setText(this._binding.getEntityClassName()); } else if (control.equals(_persistenceUnitText)) { _persistenceUnitText.setText(this._binding.getPersistenceUnit().toString()); } else if (control.equals(_transcationManagerText)) { _transcationManagerText.setText(this._binding.getTransactionManager()); } else if (control.equals(_deleteCheckbox)) { _deleteCheckbox.setSelection(this._binding.getConsume().isConsumeDelete()); } else if (control.equals(_lockEntityCheckbox)) { _lockEntityCheckbox.setSelection(this._binding.getConsume().isConsumeLockEntity()); } else if (control.equals(_maximumResultsText)) { setTextValue( _maximumResultsText, PropTypeUtil.getPropValueString(this._binding.getConsume().getMaximumResults())); } else if (control.equals(_queryText)) { _queryText.setText(this._binding.getConsume().getConsumerQuery()); } else if (control.equals(_namedQueryText)) { _namedQueryText.setText(this._binding.getConsume().getConsumerNamedQuery()); } else if (control.equals(_nativeQueryText)) { _nativeQueryText.setText(this._binding.getConsume().getConsumerNativeQuery()); } else if (control.equals(_transactedCheckbox)) { _transactedCheckbox.setSelection(this._binding.getConsume().isConsumerTransacted()); } else { super.handleUndo(control); } } setHasChanged(false); }
protected void handleUndo(Control control) { if (_binding != null) { if (control.equals(_configURIText)) { _configURIText.setText(this._binding.getConfigURI()); } else if (control.equals(_nameText)) { _nameText.setText(_binding.getName() == null ? "" : _binding.getName()); // $NON-NLS-1$ } else { super.handleUndo(control); } } setHasChanged(false); }
protected void handleUndo(Control control) { if (_binding != null) { if (control.equals(_queryText)) { _queryText.setText(this._binding.getQuery()); } else if (control.equals(_dataSourceRefText)) { _dataSourceRefText.setText(this._binding.getDataSourceRef()); } else if (control.equals(_placeholderText)) { _placeholderText.setText(this._binding.getPlaceholder()); } else if (control.equals(_batchCheckbox)) { _batchCheckbox.setSelection(this._binding.isBatch()); } else if (control.equals(_operationSelectionCombo)) { String opName = CamelBindingUtil.getOperationNameForStaticOperationSelector(this._binding); setTextValue(_operationSelectionCombo, opName); } else { super.handleUndo(control); } } setHasChanged(false); }
protected void handleUndo(Control control) { if (_binding != null) { super.handleUndo(control); } }