Package org.eclipse.emf.ecore

Examples of org.eclipse.emf.ecore.ENamedElement


  /**
   * @generated
   */
  public static ImageDescriptor getImageDescriptor(IAdaptable hint) {
    ENamedElement element = getElement(hint);
    if (element == null) {
      return null;
    }
    return getImageDescriptor(element);
  }
View Full Code Here


  /**
   * @generated
   */
  public static Image getImage(IAdaptable hint) {
    ENamedElement element = getElement(hint);
    if (element == null) {
      return null;
    }
    return getImage(element);
  }
View Full Code Here

        // check for shortcut status if necessary
        if (!checkShortcut || isShortcut(s) == shortcutRequired) {
          EObject obj = s.resolveSemanticElement();
          if (objectClass.isInstance(obj)) {
            // check containing feature name
            ENamedElement e = (ENamedElement) obj;
            if (name == null || (e.getName() != null && e.getName().equals(name))) {
              if (containingFeature == null || containingFeature.equals(obj.eContainingFeature())) {
              assertNotNull(s);
              return s;
              }
            }
            found += e.getName() + "[" + obj.eContainingFeature() + "],";
          }
        }
      }
    }
View Full Code Here

        return e.eClass().getName() + ": '" + e.getName() + "'";    // InternetApplication: 'root'
      } else {
        return e.eClass().getName();      // InternetApplication
      }
    } else if (object instanceof ENamedElement) {
      ENamedElement e = (ENamedElement) object;
      if (e.getName() != null && !e.getName().isEmpty()) {
        return e.eClass().getName() + ": '" + e.getName() + "'";    // EClass: 'root'
      } else {
        return e.eClass().getName();      // EClass
      }
    } else {
      return object.eClass().getName();      // EObject
    }
  }
View Full Code Here

  /**
   * @generated
   */
  public static ImageDescriptor getImageDescriptor(IAdaptable hint) {
    ENamedElement element = getElement(hint);
    if (element == null) {
      return null;
    }
    return getImageDescriptor(element);
  }
View Full Code Here

  /**
   * @generated
   */
  public static Image getImage(IAdaptable hint) {
    ENamedElement element = getElement(hint);
    if (element == null) {
      return null;
    }
    return getImage(element);
  }
View Full Code Here

  /**
   * @generated
   */
  public static ImageDescriptor getImageDescriptor(IAdaptable hint) {
    ENamedElement element = getElement(hint);
    if (element == null) {
      return null;
    }
    return getImageDescriptor(element);
  }
View Full Code Here

  /**
   * @generated
   */
  public static Image getImage(IAdaptable hint) {
    ENamedElement element = getElement(hint);
    if (element == null) {
      return null;
    }
    return getImage(element);
  }
View Full Code Here

  /**
   * @generated
   */
  public static ImageDescriptor getImageDescriptor(IAdaptable hint) {
    ENamedElement element = getElement(hint);
    if (element == null) {
      return null;
    }
    return getImageDescriptor(element);
  }
View Full Code Here

  /**
   * @generated
   */
  public static Image getImage(IAdaptable hint) {
    ENamedElement element = getElement(hint);
    if (element == null) {
      return null;
    }
    return getImage(element);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.ecore.ENamedElement

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.