Package org.objectstyle.wolips.eomodeler.editors.relationship

Source Code of org.objectstyle.wolips.eomodeler.editors.relationship.EOJoinsContentProvider

package org.objectstyle.wolips.eomodeler.editors.relationship;

import java.util.List;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;
import org.objectstyle.wolips.eomodeler.core.model.EOJoin;
import org.objectstyle.wolips.eomodeler.core.model.EORelationship;

public class EOJoinsContentProvider implements IStructuredContentProvider {
  public Object[] getElements(Object _inputElement) {
    EORelationship relationship = (EORelationship) _inputElement;
    List<EOJoin> joinsList = relationship.getJoins();
    EOJoin[] joins = joinsList.toArray(new EOJoin[joinsList.size()]);
    return joins;
  }

  public void dispose() {
    // DO NOTHING
  }

  public void inputChanged(Viewer _viewer, Object _oldInput, Object _newInput) {
    // DO NOTHING
  }
}
TOP

Related Classes of org.objectstyle.wolips.eomodeler.editors.relationship.EOJoinsContentProvider

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.