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

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


import org.objectstyle.wolips.eomodeler.core.model.EOEntity;
import org.objectstyle.wolips.eomodeler.core.model.EORelationship;

public class EORelationshipsContentProvider implements IStructuredContentProvider {
  public Object[] getElements(Object _inputElement) {
    EOEntity entity = (EOEntity) _inputElement;
    Set<EORelationship> relationshipsList = entity.getRelationships();
    EORelationship[] relationships = relationshipsList.toArray(new EORelationship[relationshipsList.size()]);
    return relationships;
  }
View Full Code Here


  }

  @Override
  public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
    try {
      EOEntity rootEntity = _attributePath.getRootEntity();
      _newAttribute = rootEntity.addBlankIEOAttribute(_attributePath);
      return Status.OK_STATUS;
    } catch (DuplicateNameException e) {
      throw new ExecutionException("Failed to flatten.", e);
    }
  }
View Full Code Here

        boolean modelSelected = false;
        List<String> entityNames = new LinkedList<String>();
        Iterator selectionIter = selection.iterator();
        while (!modelSelected && selectionIter.hasNext()) {
          Object obj = selectionIter.next();
          EOEntity entity = EOModelUtils.getRelatedEntity(obj);
          if (entity != null) {
            model = entity.getModel();
            entityNames.add(entity.getName());
          } else {
            model = EOModelUtils.getRelatedModel(obj);
            if (model != null) {
              modelSelected = true;
            }
View Full Code Here

TOP

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

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.