Examples of EOEntity


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

  }

  public String getJavaTypeName() throws JavaModelException {
    String javaTypeName = _typeName;
    if (javaTypeName != null) {
      EOEntity entity = getModelGroup().getEntityNamed(_typeName);
      if (entity != null) {
        javaTypeName = entity.getClassName();
      }
      javaTypeName = BindingReflectionUtils.getFullClassName(_componentType.getJavaProject(), javaTypeName);
    }
    return javaTypeName;
  }
View Full Code Here

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

  }

  public String getJavaParameterTypeName() throws JavaModelException {
    String javaParameterTypeName = _parameterTypeName;
    if (javaParameterTypeName != null) {
      EOEntity entity = getModelGroup().getEntityNamed(_parameterTypeName);
      if (entity != null) {
        javaParameterTypeName = entity.getClassName();
      }
      javaParameterTypeName = BindingReflectionUtils.getFullClassName(_componentType.getJavaProject(), javaParameterTypeName);
    }
    return javaParameterTypeName;
  }
View Full Code Here

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

      EOModelObject jumpToModelObject = null;
      EORelationship inverseRelationship = relationship.getInverseRelationship();
      if (inverseRelationship != null) {
        jumpToModelObject = inverseRelationship;
      } else {
        EOEntity destination = relationship.getDestination();
        jumpToModelObject = destination;
      }
      if (jumpToModelObject != null) {
        Iterator selectionListenersIter = EORelationshipsTableViewer.this.getSelectionListeners().iterator();
        while (selectionListenersIter.hasNext()) {
View Full Code Here

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

import org.objectstyle.wolips.eomodeler.editors.entity.SubclassEntityDialog;

public class SubclassEntityAction extends EMAction {
  public void run(IAction action) {
    EOModel model = null;
    EOEntity entity = null;
    Object selectedObject = getSelectedObject();
    if (selectedObject instanceof EOModel) {
      model = (EOModel) selectedObject;
    } else if (selectedObject instanceof IEOEntityRelative) {
      entity = ((IEOEntityRelative) selectedObject).getEntity();
      model = entity.getModel();
    }
    if (model != null) {
      SubclassEntityDialog dialog = new SubclassEntityDialog(getWindow().getShell(), model, entity, model.getModelGroup().getEditingModel());
      dialog.setBlockOnOpen(true);
      int results = dialog.open();
      if (results == Window.OK) {
        String entityName = dialog.getEntityName();
        if (entityName != null && entityName.trim().length() > 0) {
          try {
            EOEntity parentEntity = dialog.getParentEntity();
            InheritanceType inheritanceType = dialog.getInheritanceType();
            String restrictingQualifier = dialog.getRestrictingQualifier();
            EOModel destinationModel = dialog.getDestinationModel();
            SubclassOperation operation = new SubclassOperation(parentEntity, inheritanceType, destinationModel, entityName, restrictingQualifier);
            operation.addContext(EOModelUtils.getUndoContext(model));
View Full Code Here

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

  public Object getComparisonValue(Object _obj, String _property) {
    EORelationship relationship = (EORelationship) _obj;
    Object value = null;
    if (EORelationship.DESTINATION.equals(_property)) {
      EOEntity destination = relationship.getDestination();
      if (destination != null) {
        value = destination.getName();
      }
    } else if (EOJoin.SOURCE_ATTRIBUTE.equals(_property)) {
      EOJoin firstJoin = relationship.getFirstJoin();
      if (firstJoin != null) {
        value = firstJoin.getSourceAttribute().getName();
View Full Code Here

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

      text = model.getName();
      if (model.isDirty()) {
        text = text + "*";
      }
    } else if (_element instanceof EOEntity) {
      EOEntity entity = (EOEntity) _element;
      text = entity.getName();
    } else if (_element instanceof EOAttribute) {
      EOAttribute attribute = (EOAttribute) _element;
      text = attribute.getName();
    } else if (_element instanceof EORelationship) {
      EORelationship relationship = (EORelationship) _element;
View Full Code Here

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

  }

  public Font getFont(Object element) {
    Font font = null;
    if (element instanceof EOEntity) {
      EOEntity entity = (EOEntity) element;
      if (BooleanUtils.isTrue(entity.isAbstractEntity())) {
        font = getInheritedFont();
      }
    } else if (element instanceof EODatabaseConfig) {
      EODatabaseConfig databaseConfig = (EODatabaseConfig) element;
      if (databaseConfig.isActive()) {
View Full Code Here

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

  public EOEntitiesLabelProvider(String tableName) {
    super(tableName);
  }

  public String getColumnText(Object _element, String _property) {
    EOEntity entity = (EOEntity) _element;
    String text = null;
    if (EOEntity.PARENT.equals(_property)) {
      EOEntity parent = entity.getParent();
      if (parent != null) {
        text = parent.getName();
      }
    } else {
      text = super.getColumnText(_element, _property);
    }
    return text;
View Full Code Here

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

    } else if (EORelationship.CLASS_PROPERTY.equals(property)) {
      // DO NOTHING
    } else if (EORelationship.OPTIONAL.equals(property)) {
      // DO NOTHING
    } else if (EORelationship.DESTINATION.equals(property)) {
      EOEntity destination = relationship.getDestination();
      if (destination != null) {
        text = destination.getName();
      }
    } else if (EOJoin.SOURCE_ATTRIBUTE.equals(property)) {
      EOJoin firstJoin = relationship.getFirstJoin();
      if (firstJoin != null) {
        EOAttribute sourceAttribute = firstJoin.getSourceAttribute();
View Full Code Here

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

  public EOEntitiesViewerSorter(String tableName) {
    super(tableName);
  }

  public Object getComparisonValue(Object _obj, String _property) {
    EOEntity entity = (EOEntity) _obj;
    Object value = null;
    if (EOEntity.PARENT.equals(_property)) {
      EOEntity parent = entity.getParent();
      if (parent != null) {
        value = parent.getName();
      }
    } else {
      value = super.getComparisonValue(_obj, _property);
    }
    return value;
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.