Package org.objectstyle.wolips.eomodeler.core.model.qualifier

Examples of org.objectstyle.wolips.eomodeler.core.model.qualifier.EOQualifier


  }

  public EOQualifier getQualifier() {
    List<EOQualifier> qualifiers = new LinkedList<EOQualifier>();
    for (EOQualifierEditor editor : _editors) {
      EOQualifier childQualifier = editor.getQualifier();
      if (childQualifier != null) {
        qualifiers.add(childQualifier);
      }
    }
    EOQualifier qualifier;
    if (qualifiers.isEmpty()) {
      qualifier = null;
    } else if (qualifiers.size() == 1) {
      qualifier = qualifiers.get(0);
    } else {
View Full Code Here


  protected void typeChanged() {
    IStructuredSelection selection = (IStructuredSelection) _typeCombo.getSelection();
    IQualifierType selectedQualifierType = (IQualifierType) selection.getFirstElement();

    if (selectedQualifierType != null && _qualifierType != selectedQualifierType) {
      EOQualifier previousQualifier = getQualifier();
      if (_typeEditor != null) {
        _typeEditor.dispose();
        _typeEditor = null;
      }
      _qualifierType = selectedQualifierType;
View Full Code Here

  protected void refreshQualifierTypes() {
    // IStructuredSelection selection = (IStructuredSelection)
    // _typeCombo.getSelection();
    // IQualifierType selectedQualifierType = (IQualifierType)
    // selection.getFirstElement();
    EOQualifier qualifier = _typeEditor.getQualifier();
    for (IQualifierType qualifierType : _qualifierTypes) {
      qualifierType.setQualifier(qualifier);
      _typeCombo.refresh(qualifierType);
    }
View Full Code Here

    _valueText = new Text(this, SWT.BORDER);
    _valueText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  }

  public void setQualifier(EOQualifier qualifier) {
    EOQualifier finalQualifier = qualifier;
    if (finalQualifier instanceof EOAggregateQualifier) {
      List<EOQualifier> qualifiers = ((EOAggregateQualifier) finalQualifier).getQualifiers();
      if (!qualifiers.isEmpty()) {
        finalQualifier = qualifiers.get(0);
      }
View Full Code Here

      _valueText.setText("");
    }
  }

  public EOQualifier getQualifier() {
    EOQualifier qualifier;
    if (_key == null) {
      qualifier = null;
    } else {
      EOQualifier.Comparison comparison = (EOQualifier.Comparison) ((IStructuredSelection) _operatorCombo.getSelection()).getFirstElement();
      String value = _valueText.getText();
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.eomodeler.core.model.qualifier.EOQualifier

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.