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

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


  public AbstractEOAttributePath getAttributePath() {
    return _entity.resolveKeyPath(_keyPath);
  }
 
  public String getJavaClassName() {
    AbstractEOAttributePath attributePath = getAttributePath();
    if (attributePath == null) {
      throw new IllegalStateException("The binding name '" + _name + "' refers to a keypath '" + _keyPath + " that could not be resolved on the entity '" + _entity.getName() + "'.");
    }
    return attributePath.getChildClassName();
  }
View Full Code Here


    } else {
      IEOAttribute attribute = null;
      if (element instanceof IEOAttribute) {
        attribute = (IEOAttribute) element;
      } else if (element instanceof AbstractEOAttributePath) {
        AbstractEOAttributePath attributePath = (AbstractEOAttributePath) element;
        attribute = attributePath.getChildIEOAttribute();
      }
      if (attribute != null) {
        boolean flattened = attribute.isFlattened();
        boolean inherited = attribute.isInherited();
        if (flattened && inherited) {
View Full Code Here

            EOFetchSpecification selectedFetchSpec = (EOFetchSpecification) selectedObject;
            setSelectedEntity(selectedFetchSpec.getEntity());
            getEntityEditor().setSelection(selection);
            // setActivePage(EOModelEditor.EOENTITY_PAGE);
          } else if (selectedObject instanceof AbstractEOAttributePath) {
            AbstractEOAttributePath selectedAttributePath = (AbstractEOAttributePath) selectedObject;
            setSelectedEntity(selectedAttributePath.getChildIEOAttribute().getEntity());
            getEntityEditor().setSelection(new StructuredSelection(selectedAttributePath.getChildIEOAttribute()));
            setActivePage(getPageNum(EOModelEditor.EOENTITY_PAGE));
          } else if (selectedObject instanceof EOStoredProcedure) {
            EOStoredProcedure selectedStoredProcedure = (EOStoredProcedure) selectedObject;
            setSelectedStoredProcedure(selectedStoredProcedure);
            // setActivePage(EOModel)
View Full Code Here

    } else {
      IEOAttribute attribute = null;
      if (element instanceof IEOAttribute) {
        attribute = (IEOAttribute) element;
      } else if (element instanceof AbstractEOAttributePath) {
        AbstractEOAttributePath attributePath = (AbstractEOAttributePath) element;
        attribute = attributePath.getChildIEOAttribute();
      }
      if (attribute != null) {
        boolean flattened = attribute.isFlattened();
        boolean inherited = attribute.isInherited();
        if (flattened && inherited) {
View Full Code Here

import org.objectstyle.wolips.eomodeler.core.utils.EOModelUtils;

public class FlattenAction extends EMAction {
  public void run(IAction action) {
    try {
      AbstractEOAttributePath attributePath = null;
      Object selectedObject = getSelectedObject();
      if (selectedObject instanceof AbstractEOAttributePath) {
        attributePath = (AbstractEOAttributePath) selectedObject;
      }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.eomodeler.core.model.AbstractEOAttributePath

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.