Пример #1
0
 protected void handleModify(final Control control) {
   if (control.equals(_entityClassNameText)) {
     updateFeature(_binding, "entityClassName", _entityClassNameText.getText().trim());
   } else if (control.equals(_persistenceUnitText)) {
     updateFeature(_binding, "persistenceUnit", _persistenceUnitText.getText().trim());
   } else if (control.equals(_transcationManagerText)) {
     updateFeature(_binding, "transactionManager", _transcationManagerText.getText().trim());
   } else if (control.equals(_deleteCheckbox)) {
     updateConsumeFeature("consumeDelete", _deleteCheckbox.getSelection());
   } else if (control.equals(_lockEntityCheckbox)) {
     updateConsumeFeature("consumeLockEntity", _lockEntityCheckbox.getSelection());
   } else if (control.equals(_maximumResultsText)) {
     try {
       Integer port = new Integer(_maximumResultsText.getText().trim());
       updateConsumeFeature("maximumResults", port.intValue());
     } catch (NumberFormatException nfe) {
       updateConsumeFeature("maximumResults", _maximumResultsText.getText().trim());
     }
   } else if (control.equals(_queryText)) {
     updateConsumeFeature("consumerQuery", _queryText.getText().trim());
   } else if (control.equals(_namedQueryText)) {
     updateConsumeFeature("consumerNamedQuery", _namedQueryText.getText().trim());
   } else if (control.equals(_nativeQueryText)) {
     updateConsumeFeature("consumerNativeQuery", _nativeQueryText.getText().trim());
   } else if (control.equals(_transactedCheckbox)) {
     updateConsumeFeature("consumerTransacted", _transactedCheckbox.getSelection());
   } else {
     super.handleModify(control);
   }
   validate();
   setHasChanged(false);
   setDidSomething(true);
 }
Пример #2
0
 protected void handleModify(final Control control) {
   if (control.equals(_configURIText)) {
     updateFeature(_binding, "configURI", _configURIText.getText().trim()); // $NON-NLS-1$
   } else if (control.equals(_opSelectorComposite)) {
     int opType = _opSelectorComposite.getSelectedOperationSelectorType();
     updateOperationSelectorFeature(
         opType, _opSelectorComposite.getSelectedOperationSelectorValue());
     fireChangedEvent(_opSelectorComposite);
   } else if (control.equals(_nameText)) {
     super.updateFeature(_binding, "name", _nameText.getText().trim()); // $NON-NLS-1$
   }
   super.handleModify(control);
   setHasChanged(false);
   setDidSomething(true);
 }
Пример #3
0
 protected void handleModify(final Control control) {
   if (control.equals(_queryText)) {
     updateFeature(_binding, "query", _queryText.getText().trim());
   } else if (control.equals(_dataSourceRefText)) {
     updateFeature(_binding, "dataSourceRef", _dataSourceRefText.getText().trim());
   } else if (control.equals(_placeholderText)) {
     updateFeature(_binding, "placeholder", _placeholderText.getText().trim());
   } else if (control.equals(_batchCheckbox)) {
     boolean value = _batchCheckbox.getSelection();
     updateFeature(_binding, "batch", value);
   } else if (control.equals(_operationSelectionCombo)) {
     updateCamelOperationSelectorFeature(
         "operationName", _operationSelectionCombo.getText().trim());
   }
   super.handleModify(control);
   validate();
   setHasChanged(false);
 }