Examples of EOArgument


Examples of org.objectstyle.wolips.eomodeler.core.model.EOArgument

  public EOArgumentsCellModifier(TableViewer _argumentsTableViewer) {
    super(_argumentsTableViewer);
  }

  public Object getValue(Object _element, String _property) {
    EOArgument argument = (EOArgument) _element;
    Object value = null;
    if (EOArgument.DIRECTION.equals(_property)) {
      EOArgumentDirection direction = argument.getDirection();
      value = new Integer(direction.getID());
    } else if (AbstractEOArgument.ALLOWS_NULL.equals(_property)) {
      value = super.getValue(_element, _property);
      if (value == null) {
        value = Boolean.FALSE;
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.EOArgument

    return value;
  }

  protected boolean _modify(Object _element, String _property, Object _value) throws Throwable {
    boolean modified = false;
    EOArgument argument = (EOArgument) _element;
    if (EOArgument.DIRECTION.equals(_property)) {
      Integer argumentID = (Integer) _value;
      int argumentIDInt = argumentID.intValue();
      EOArgumentDirection direction = EOArgumentDirection.getArgumentDirectionByID(argumentIDInt);
      argument.setDirection(direction);
      modified = true;
    }
    return modified;
  }
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.EOArgument

    GridData prototypeComboLayoutData = new GridData(GridData.FILL_HORIZONTAL);
    prototypeCombo.setLayoutData(prototypeComboLayoutData);
  }

  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

Examples of org.objectstyle.wolips.eomodeler.core.model.EOArgument

    if (ComparisonUtils.equals(selection, getSelection())) {
      return;
    }
   
    super.setInput(part, selection);
    EOArgument attribute = null;
    Object selectedObject = ((IStructuredSelection) selection).getFirstElement();
    if (selectedObject instanceof EOArgument) {
      attribute = (EOArgument) selectedObject;
    }
    setArgument(attribute);
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.EOArgument

  public EOArgumentsLabelProvider(String[] _columnProperties) {
    super(_columnProperties);
  }

  public Image getColumnImage(Object _element, String _property) {
    EOArgument argument = (EOArgument) _element;
    Image image = null;
    if (AbstractEOArgument.ALLOWS_NULL.equals(_property)) {
      image = yesNoImage(argument.isAllowsNull(), Activator.getDefault().getImageRegistry().get(Activator.ALLOW_NULL_ICON), null, null);
    }
    return image;
  }
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.EOArgument

  protected String yesNoText(EOAttribute _attribute, Boolean _bool) {
    return yesNoText(_bool, !_attribute.getEntity().isPrototype());
  }

  public String getColumnText(Object _element, String _property) {
    EOArgument argument = (EOArgument) _element;
    String text = null;
    if (AbstractEOArgument.ALLOWS_NULL.equals(_property)) {
      // DO NOTHING
    } else if (EOArgument.DIRECTION.equals(_property)) {
      text = argument.getDirection().getName();
    } else {
      text = super.getColumnText(_element, _property);
    }
    return text;
  }
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.EOArgument

      text = attributePath.getChildAttribute().getName();
    } else if (_element instanceof EOFetchSpecification) {
      EOFetchSpecification fetchSpec = (EOFetchSpecification) _element;
      text = fetchSpec.getName();
    } else if (_element instanceof EOArgument) {
      EOArgument argument = (EOArgument) _element;
      text = argument.getName();
    } else if (_element instanceof EOStoredProcedure) {
      EOStoredProcedure storedProcedure = (EOStoredProcedure) _element;
      text = storedProcedure.getName();
    } else if (_element instanceof EODatabaseConfig) {
      EODatabaseConfig databaseConfig = (EODatabaseConfig) _element;
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.EOArgument

          } else if (selectedObject instanceof EOStoredProcedure) {
            EOStoredProcedure selectedStoredProcedure = (EOStoredProcedure) selectedObject;
            setSelectedStoredProcedure(selectedStoredProcedure);
            // setActivePage(EOModel)
          } else if (selectedObject instanceof EOArgument) {
            EOArgument selectedArgument = (EOArgument) selectedObject;
            setSelectedStoredProcedure(selectedArgument.getStoredProcedure());
            getStoredProcedureEditor().setSelection(_selection);
            setActivePage(getPageNum(EOModelEditor.EOSTOREDPROCEDURE_PAGE));
          } else if (selectedObject instanceof EODatabaseConfig) {
            // EODatabaseConfig selectedDatabaseConfig =
            // (EODatabaseConfig) selectedObject;
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.EOArgument

      text = attributePath.getChildAttribute().getName();
    } else if (_element instanceof EOFetchSpecification) {
      EOFetchSpecification fetchSpec = (EOFetchSpecification) _element;
      text = fetchSpec.getName();
    } else if (_element instanceof EOArgument) {
      EOArgument argument = (EOArgument) _element;
      text = argument.getName();
    } else if (_element instanceof EOStoredProcedure) {
      EOStoredProcedure storedProcedure = (EOStoredProcedure) _element;
      text = storedProcedure.getName();
    } else if (_element instanceof EODatabaseConfig) {
      EODatabaseConfig databaseConfig = (EODatabaseConfig) _element;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.