Package org.objectstyle.wolips.eomodeler.utils

Examples of org.objectstyle.wolips.eomodeler.utils.ComboViewerBinding


        myBindingContext.bindValue(SWTObservables.observeText(myClassNameText, SWT.Modify), BeansObservables.observeValue(myEntity, EOEntity.CLASS_NAME), null, null);
        myBindingContext.bindValue(SWTObservables.observeText(myRestrictingQualifierText, SWT.Modify), BeansObservables.observeValue(myEntity, EOEntity.RESTRICTING_QUALIFIER), null, null);
        myBindingContext.bindValue(SWTObservables.observeSelection(myAbstractButton), BeansObservables.observeValue(myEntity, EOEntity.ABSTRACT_ENTITY), null, new BooleanUpdateValueStrategy());

        myParentEntityComboViewer.setInput(myEntity);
        myParentEntityBinding = new ComboViewerBinding(myParentEntityComboViewer, myEntity, EOEntity.PARENT, myEntity.getModel(), EOModel.ENTITIES, EOEntityListContentProvider.BLANK_ENTITY);
      }
    }
  }
View Full Code Here


      _bindingContext.bindValue(SWTObservables.observeText(_externalQueryText, SWT.Modify), BeansObservables.observeValue(_entity, EOEntity.EXTERNAL_QUERY), null, null);
      _bindingContext.bindValue(SWTObservables.observeText(_clientClassNameText, SWT.Modify), BeansObservables.observeValue(_entity, EOEntity.CLIENT_CLASS_NAME), null, null);
      _bindingContext.bindValue(SWTObservables.observeText(_parentClassNameText, SWT.Modify), BeansObservables.observeValue(_entity, EOEntity.PARENT_CLASS_NAME), null, null);

      _partialEntityComboViewer.setInput(_entity);
      _partialEntityBinding = new ComboViewerBinding(_partialEntityComboViewer, _entity, EOEntity.PARTIAL_ENTITY, _entity.getModel(), EOModel.ENTITIES, EOEntityListContentProvider.BLANK_ENTITY);
    }
  }
View Full Code Here

        myInsertComboViewer.setInput(myEntity);
        myDeleteComboViewer.setInput(myEntity);
        myFetchAllComboViewer.setInput(myEntity);
        myFetchWithPrimaryKeyComboViewer.setInput(myEntity);
        myNextPrimaryKeyComboViewer.setInput(myEntity);
        myInsertBinding = new ComboViewerBinding(myInsertComboViewer, myEntity, EOEntity.INSERT_PROCEDURE, myEntity.getModel(), EOModel.STORED_PROCEDURES, EOStoredProceduresListContentProvider.BLANK_STORED_PROCEDURE);
        myDeleteBinding = new ComboViewerBinding(myDeleteComboViewer, myEntity, EOEntity.DELETE_PROCEDURE, myEntity.getModel(), EOModel.STORED_PROCEDURES, EOStoredProceduresListContentProvider.BLANK_STORED_PROCEDURE);
        myFetchAllBinding = new ComboViewerBinding(myFetchAllComboViewer, myEntity, EOEntity.FETCH_ALL_PROCEDURE, myEntity.getModel(), EOModel.STORED_PROCEDURES, EOStoredProceduresListContentProvider.BLANK_STORED_PROCEDURE);
        myFetchWithPrimaryKeyBinding = new ComboViewerBinding(myFetchWithPrimaryKeyComboViewer, myEntity, EOEntity.FETCH_WITH_PRIMARY_KEY_PROCEDURE, myEntity.getModel(), EOModel.STORED_PROCEDURES, EOStoredProceduresListContentProvider.BLANK_STORED_PROCEDURE);
        myNextPrimaryKeyBinding = new ComboViewerBinding(myNextPrimaryKeyComboViewer, myEntity, EOEntity.NEXT_PRIMARY_KEY_PROCEDURE, myEntity.getModel(), EOModel.STORED_PROCEDURES, EOStoredProceduresListContentProvider.BLANK_STORED_PROCEDURE);
      }
    }
  }
View Full Code Here

        _bindingContext.bindValue(SWTObservables.observeText(_classNameText, SWT.Modify), BeansObservables.observeValue(_argument, AbstractEOArgument.CLASS_NAME), null, null);
        _bindingContext.bindValue(SWTObservables.observeSelection(_allowNullsButton), BeansObservables.observeValue(_argument, AbstractEOArgument.ALLOWS_NULL), null, new BooleanUpdateValueStrategy());

        _argumentChanged(argument);

        _dataTypeBinding = new ComboViewerBinding(_dataTypeComboViewer, _argument, AbstractEOArgument.DATA_TYPE, null, null, null);
        if (_argument.getDefinition() == null) {
          _derivedComboViewer.setSelection(new StructuredSelection(AbstractEOArgumentBasicEditorSection.COLUMN));
        } else {
          _derivedComboViewer.setSelection(new StructuredSelection(AbstractEOArgumentBasicEditorSection.DERIVED));
        }
View Full Code Here

  protected void _argumentChanged(AbstractEOArgument argument) {
    EOAttribute attribute = (EOAttribute) argument;
    if (attribute != null) {
      _prototypeComboViewer.setInput(attribute);
      _prototypeBinding = new ComboViewerBinding(_prototypeComboViewer, attribute, EOAttribute.PROTOTYPE, attribute.getEntity().getModel(), EOModel.ENTITIES, EOEntityListContentProvider.BLANK_ENTITY);

      getBindingContext().bindValue(SWTObservables.observeSelection(_primaryKeyButton), BeansObservables.observeValue(attribute, EOAttribute.PRIMARY_KEY), null, new BooleanUpdateValueStrategy());
      getBindingContext().bindValue(SWTObservables.observeSelection(_classPropertyButton), BeansObservables.observeValue(attribute, EOAttribute.CLASS_PROPERTY), null, new BooleanUpdateValueStrategy());
      getBindingContext().bindValue(SWTObservables.observeSelection(_lockingButton), BeansObservables.observeValue(attribute, EOAttribute.USED_FOR_LOCKING), null, new BooleanUpdateValueStrategy());
    }
View Full Code Here

      _entityIndex = entityIndex;
      if (_entityIndex != null) {
        _selectedAttribute = null;
        _dataBindingContext = new DataBindingContext();
        //_dataBindingContext.bindValue(ViewersObservables.observeSingleSelection(_attributesComboViewer), BeansObservables.observeValue(this, "selectedAttribute"), null, null);
        _selectedAttributeBinding = new ComboViewerBinding(_attributesComboViewer, this, "selectedAttribute", null, null, null);

        updateAttributes();
        updateButtons();
      }
    }
View Full Code Here

        _bindingContext.bindValue(SWTObservables.observeSelection(_toManyButton), BeansObservables.observeValue(_relationship, EORelationship.TO_MANY), null, new BooleanUpdateValueStrategy());
        _bindingContext.bindValue(SWTObservables.observeSelection(_optionalButton), BeansObservables.observeValue(_relationship, EORelationship.OPTIONAL), null, new BooleanUpdateValueStrategy());
        //_bindingContext.bindValue(SWTObservables.observeSelection(_mandatoryButton), BeansObservables.observeValue(_relationship, EORelationship.MANDATORY), null, new BooleanUpdateValueStrategy());
        _bindingContext.bindValue(SWTObservables.observeSelection(_classPropertyButton), BeansObservables.observeValue(_relationship, EORelationship.CLASS_PROPERTY), null, new BooleanUpdateValueStrategy());

        _deleteRuleBinding = new ComboViewerBinding(_deleteRuleComboViewer, _relationship, EORelationship.DELETE_RULE, null, null, null);
        _joinSemanticBinding = new ComboViewerBinding(_joinSemanticComboViewer, _relationship, EORelationship.JOIN_SEMANTIC, _relationship.getEntity().getModel().getModelGroup(), EOModelGroup.MODELS, null);
        _entityBinding = new ComboViewerBinding(_entityComboViewer, _relationship, EORelationship.DESTINATION, _relationship.getEntity().getModel(), EOModel.ENTITIES, null);

        // boolean flattened = myRelationship.isFlattened();
        // myDefinitionLabel.setVisible(flattened);
        // myDefinitionText.setVisible(flattened);
View Full Code Here

      // EOEntityIndex.INDEX_TYPE), null, null);
      // _bindingContext.bindValue(ViewersObservables.observeSingleSelection(_orderCombo),
      // BeansObservables.observeValue(_entityIndex, EOEntityIndex.ORDER),
      // null, null);

      _constraintBinding = new ComboViewerBinding(_constraintCombo, _entityIndex, EOEntityIndex.CONSTRAINT, null, null, null);
      _indexTypeBinding = new ComboViewerBinding(_indexTypeCombo, _entityIndex, EOEntityIndex.INDEX_TYPE, null, null, null);
      _orderBinding = new ComboViewerBinding(_orderCombo, _entityIndex, EOEntityIndex.ORDER, null, null, null);
    }
  }
View Full Code Here

  }

  protected void _argumentChanged(AbstractEOArgument _argument) {
    EOArgument argument = (EOArgument) _argument;
    if (argument != null) {
      myDirectionBinding = new ComboViewerBinding(myDirectionComboViewer, argument, EOArgument.DIRECTION, null, null, null);
    }
  }
View Full Code Here

    _databaseConfig = databaseContext;

    if (_databaseConfig != null) {
      _bindingContext = new DataBindingContext();
      _authenticationMethodComboViewer.setInput(_databaseConfig);
      _authenticationMethodBinding = new ComboViewerBinding(_authenticationMethodComboViewer, _databaseConfig, EODatabaseConfig.AUTHENTICATION_METHOD, null, null, null);
      _bindingContext.bindValue(SWTObservables.observeText(_usernameText, SWT.Modify), BeansObservables.observeValue(_databaseConfig, EODatabaseConfig.USERNAME), null, null);
      _bindingContext.bindValue(SWTObservables.observeText(_passwordText, SWT.Modify), BeansObservables.observeValue(_databaseConfig, EODatabaseConfig.PASSWORD), null, null);
      _bindingContext.bindValue(SWTObservables.observeText(_serverUrlText, SWT.Modify), BeansObservables.observeValue(_databaseConfig, EODatabaseConfig.URL), null, null);
      _bindingContext.bindValue(SWTObservables.observeText(_timeoutText, SWT.Modify), BeansObservables.observeValue(_databaseConfig, EODatabaseConfig.TIMEOUT), null, null);
      _scopeComboViewer.setInput(_databaseConfig);
      _scopeBinding = new ComboViewerBinding(_scopeComboViewer, _databaseConfig, EODatabaseConfig.SCOPE, null, null, null);
      _bindingContext.bindValue(SWTObservables.observeText(_plugInClassNameText, SWT.Modify), BeansObservables.observeValue(_databaseConfig, EODatabaseConfig.PLUGIN), null, null);
      _bindingContext.bindValue(SWTObservables.observeText(_initialContextFactoryText, SWT.Modify), BeansObservables.observeValue(_databaseConfig, EODatabaseConfig.INITIAL_CONTEXT_FACTORY), null, null);
    }
  }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.eomodeler.utils.ComboViewerBinding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.