Examples of IDiagramGraphicalViewer


Examples of org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer

  /**
   * @generated
   */
  private static int findElementsInDiagramByID(DiagramEditPart diagramPart,
      EObject element, List editPartCollector) {
    IDiagramGraphicalViewer viewer = (IDiagramGraphicalViewer) diagramPart
        .getViewer();
    final int intialNumOfEditParts = editPartCollector.size();

    if (element instanceof View) { // support notation element lookup
      EditPart editPart = (EditPart) viewer.getEditPartRegistry().get(
          element);
      if (editPart != null) {
        editPartCollector.add(editPart);
        return 1;
      }
    }

    String elementID = EMFCoreUtil.getProxyID(element);
    List associatedParts = viewer.findEditPartsForElement(elementID,
        IGraphicalEditPart.class);
    // perform the possible hierarchy disjoint -> take the top-most parts only
    for (Iterator editPartIt = associatedParts.iterator(); editPartIt
        .hasNext();) {
      EditPart nextPart = (EditPart) editPartIt.next();
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer

  /**
   * @generated
   */
  private static int findElementsInDiagramByID(DiagramEditPart diagramPart,
      EObject element, List<EditPart> editPartCollector) {
    IDiagramGraphicalViewer viewer = (IDiagramGraphicalViewer) diagramPart
        .getViewer();
    final int intialNumOfEditParts = editPartCollector.size();

    if (element instanceof View) { // support notation element lookup
      EditPart editPart = (EditPart) viewer.getEditPartRegistry().get(
          element);
      if (editPart != null) {
        editPartCollector.add(editPart);
        return 1;
      }
    }

    String elementID = EMFCoreUtil.getProxyID(element);
    @SuppressWarnings("unchecked")
    List<EditPart> associatedParts = viewer.findEditPartsForElement(
        elementID, IGraphicalEditPart.class);
    // perform the possible hierarchy disjoint -> take the top-most parts only
    for (EditPart nextPart : associatedParts) {
      EditPart parentPart = nextPart.getParent();
      while (parentPart != null && !associatedParts.contains(parentPart)) {
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer

  /**
   * @generated
   */
  private static int findElementsInDiagramByID(DiagramEditPart diagramPart,
      EObject element, List editPartCollector) {
    IDiagramGraphicalViewer viewer = (IDiagramGraphicalViewer) diagramPart
        .getViewer();
    final int intialNumOfEditParts = editPartCollector.size();

    if (element instanceof View) { // support notation element lookup
      EditPart editPart = (EditPart) viewer.getEditPartRegistry().get(
          element);
      if (editPart != null) {
        editPartCollector.add(editPart);
        return 1;
      }
    }

    String elementID = EMFCoreUtil.getProxyID(element);
    List associatedParts = viewer.findEditPartsForElement(elementID,
        IGraphicalEditPart.class);
    // perform the possible hierarchy disjoint -> take the top-most parts only
    for (Iterator editPartIt = associatedParts.iterator(); editPartIt
        .hasNext();) {
      EditPart nextPart = (EditPart) editPartIt.next();
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer

  /**
   * @generated
   */
  private static int findElementsInDiagramByID(DiagramEditPart diagramPart,
      EObject element, List editPartCollector) {
    IDiagramGraphicalViewer viewer = (IDiagramGraphicalViewer) diagramPart
        .getViewer();
    final int intialNumOfEditParts = editPartCollector.size();

    if (element instanceof View) { // support notation element lookup
      EditPart editPart = (EditPart) viewer.getEditPartRegistry().get(
          element);
      if (editPart != null) {
        editPartCollector.add(editPart);
        return 1;
      }
    }

    String elementID = EMFCoreUtil.getProxyID(element);
    List associatedParts = viewer.findEditPartsForElement(elementID,
        IGraphicalEditPart.class);
    // perform the possible hierarchy disjoint -> take the top-most parts only
    for (Iterator editPartIt = associatedParts.iterator(); editPartIt
        .hasNext();) {
      EditPart nextPart = (EditPart) editPartIt.next();
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer

  /**
   * @generated
   */
  private static int findElementsInDiagramByID(DiagramEditPart diagramPart,
      EObject element, List editPartCollector) {
    IDiagramGraphicalViewer viewer = (IDiagramGraphicalViewer) diagramPart
        .getViewer();
    final int intialNumOfEditParts = editPartCollector.size();

    if (element instanceof View) { // support notation element lookup
      EditPart editPart = (EditPart) viewer.getEditPartRegistry().get(
          element);
      if (editPart != null) {
        editPartCollector.add(editPart);
        return 1;
      }
    }

    String elementID = EMFCoreUtil.getProxyID(element);
    List associatedParts = viewer.findEditPartsForElement(elementID,
        IGraphicalEditPart.class);
    // perform the possible hierarchy disjoint -> take the top-most parts only
    for (Iterator editPartIt = associatedParts.iterator(); editPartIt
        .hasNext();) {
      EditPart nextPart = (EditPart) editPartIt.next();
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer

  /**
   * @generated
   */
  private static int findElementsInDiagramByID(DiagramEditPart diagramPart,
      EObject element, List<EditPart> editPartCollector) {
    IDiagramGraphicalViewer viewer = (IDiagramGraphicalViewer) diagramPart
        .getViewer();
    final int intialNumOfEditParts = editPartCollector.size();

    if (element instanceof View) { // support notation element lookup
      EditPart editPart = (EditPart) viewer.getEditPartRegistry().get(
          element);
      if (editPart != null) {
        editPartCollector.add(editPart);
        return 1;
      }
    }

    String elementID = EMFCoreUtil.getProxyID(element);
    @SuppressWarnings("unchecked")
    List<EditPart> associatedParts = viewer.findEditPartsForElement(
        elementID, IGraphicalEditPart.class);
    // perform the possible hierarchy disjoint -> take the top-most parts only
    for (EditPart nextPart : associatedParts) {
      EditPart parentPart = nextPart.getParent();
      while (parentPart != null && !associatedParts.contains(parentPart)) {
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer

  /**
   * @generated
   */
  private static int findElementsInDiagramByID(DiagramEditPart diagramPart,
      EObject element, List editPartCollector) {
    IDiagramGraphicalViewer viewer = (IDiagramGraphicalViewer) diagramPart
        .getViewer();
    final int intialNumOfEditParts = editPartCollector.size();

    if (element instanceof View) { // support notation element lookup
      EditPart editPart = (EditPart) viewer.getEditPartRegistry().get(
          element);
      if (editPart != null) {
        editPartCollector.add(editPart);
        return 1;
      }
    }

    String elementID = EMFCoreUtil.getProxyID(element);
    List associatedParts = viewer.findEditPartsForElement(elementID,
        IGraphicalEditPart.class);
    // perform the possible hierarchy disjoint -> take the top-most parts only
    for (Iterator editPartIt = associatedParts.iterator(); editPartIt
        .hasNext();) {
      EditPart nextPart = (EditPart) editPartIt.next();
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer

  /**
   * @generated
   */
  private static int findElementsInDiagramByID(DiagramEditPart diagramPart,
      EObject element, List<EditPart> editPartCollector) {
    IDiagramGraphicalViewer viewer = (IDiagramGraphicalViewer) diagramPart
        .getViewer();
    final int intialNumOfEditParts = editPartCollector.size();

    if (element instanceof View) { // support notation element lookup
      EditPart editPart = (EditPart) viewer.getEditPartRegistry().get(
          element);
      if (editPart != null) {
        editPartCollector.add(editPart);
        return 1;
      }
    }

    String elementID = EMFCoreUtil.getProxyID(element);
    @SuppressWarnings("unchecked")
    List<EditPart> associatedParts = viewer.findEditPartsForElement(
        elementID, IGraphicalEditPart.class);
    // perform the possible hierarchy disjoint -> take the top-most parts only
    for (EditPart nextPart : associatedParts) {
      EditPart parentPart = nextPart.getParent();
      while (parentPart != null && !associatedParts.contains(parentPart)) {
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer

  /**
   * @generated
   */
  private static int findElementsInDiagramByID(DiagramEditPart diagramPart,
      EObject element, List<EditPart> editPartCollector) {
    IDiagramGraphicalViewer viewer = (IDiagramGraphicalViewer) diagramPart
        .getViewer();
    final int intialNumOfEditParts = editPartCollector.size();

    if (element instanceof View) { // support notation element lookup
      EditPart editPart = (EditPart) viewer.getEditPartRegistry().get(
          element);
      if (editPart != null) {
        editPartCollector.add(editPart);
        return 1;
      }
    }

    String elementID = EMFCoreUtil.getProxyID(element);
    @SuppressWarnings("unchecked")
    List<EditPart> associatedParts = viewer.findEditPartsForElement(
        elementID, IGraphicalEditPart.class);
    // perform the possible hierarchy disjoint -> take the top-most parts only
    for (EditPart nextPart : associatedParts) {
      EditPart parentPart = nextPart.getParent();
      while (parentPart != null && !associatedParts.contains(parentPart)) {
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer

  /**
   * @generated
   */
  private static int findElementsInDiagramByID(DiagramEditPart diagramPart,
      EObject element, List<EditPart> editPartCollector) {
    IDiagramGraphicalViewer viewer = (IDiagramGraphicalViewer) diagramPart
        .getViewer();
    final int intialNumOfEditParts = editPartCollector.size();

    if (element instanceof View) { // support notation element lookup
      EditPart editPart = (EditPart) viewer.getEditPartRegistry().get(
          element);
      if (editPart != null) {
        editPartCollector.add(editPart);
        return 1;
      }
    }

    String elementID = EMFCoreUtil.getProxyID(element);
    @SuppressWarnings("unchecked")
    List<EditPart> associatedParts = viewer.findEditPartsForElement(
        elementID, IGraphicalEditPart.class);
    // perform the possible hierarchy disjoint -> take the top-most parts only
    for (EditPart nextPart : associatedParts) {
      EditPart parentPart = nextPart.getParent();
      while (parentPart != null && !associatedParts.contains(parentPart)) {
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.