Package org.eclipse.gmf.runtime.diagram.ui.editparts

Examples of org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart


  /**
   * @generated
   */
  public List getRelTypesOnTarget(IAdaptable target) {
    IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target
        .getAdapter(IGraphicalEditPart.class);
    return Collections.EMPTY_LIST;
  }
View Full Code Here


  /**
   * @generated
   */
  public List getRelTypesOnSourceAndTarget(IAdaptable source,
      IAdaptable target) {
    IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source
        .getAdapter(IGraphicalEditPart.class);
    IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target
        .getAdapter(IGraphicalEditPart.class);
    return Collections.EMPTY_LIST;
  }
View Full Code Here

  /**
   * @generated
   */
  public List getTypesForSource(IAdaptable target,
      IElementType relationshipType) {
    IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target
        .getAdapter(IGraphicalEditPart.class);
    return Collections.EMPTY_LIST;
  }
View Full Code Here

  /**
   * @generated
   */
  public List getTypesForTarget(IAdaptable source,
      IElementType relationshipType) {
    IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source
        .getAdapter(IGraphicalEditPart.class);
    return Collections.EMPTY_LIST;
  }
View Full Code Here

   */
  protected EObject selectExistingElement(IAdaptable host, Collection types) {
    if (types.isEmpty()) {
      return null;
    }
    IGraphicalEditPart editPart = (IGraphicalEditPart) host
        .getAdapter(IGraphicalEditPart.class);
    if (editPart == null) {
      return null;
    }
    Diagram diagram = (Diagram) editPart.getRoot().getContents().getModel();
    HashSet<EObject> elements = new HashSet<EObject>();
    for (Iterator<EObject> it = diagram.getElement().eAllContents(); it
        .hasNext();) {
      EObject element = it.next();
      if (isApplicableElement(element, types)) {
View Full Code Here

  /**
   * @generated
   */
  public List getTypesForPopupBar(IAdaptable host) {
    IGraphicalEditPart editPart = (IGraphicalEditPart) host
        .getAdapter(IGraphicalEditPart.class);
    if (editPart instanceof es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.edit.parts.ProjectEditPart) {
      ArrayList<IElementType> types = new ArrayList<IElementType>(1);
      types.add(es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.providers.JadexAgentsElementTypes.Agent_2001);
      return types;
View Full Code Here

  /**
   * @generated
   */
  public List getRelTypesOnSource(IAdaptable source) {
    IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source
        .getAdapter(IGraphicalEditPart.class);
    return Collections.EMPTY_LIST;
  }
View Full Code Here

  /**
   * @generated
   */
  public List getRelTypesOnTarget(IAdaptable target) {
    IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target
        .getAdapter(IGraphicalEditPart.class);
    return Collections.EMPTY_LIST;
  }
View Full Code Here

  /**
   * @generated
   */
  public List getRelTypesOnSourceAndTarget(IAdaptable source,
      IAdaptable target) {
    IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source
        .getAdapter(IGraphicalEditPart.class);
    IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target
        .getAdapter(IGraphicalEditPart.class);
    return Collections.EMPTY_LIST;
  }
View Full Code Here

  /**
   * @generated
   */
  public List getTypesForSource(IAdaptable target,
      IElementType relationshipType) {
    IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target
        .getAdapter(IGraphicalEditPart.class);
    return Collections.EMPTY_LIST;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart

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.