Examples of DomCollectionChildDescription


Examples of com.intellij.util.xml.reflect.DomCollectionChildDescription

  @Nullable
  public static ResolvingElementQuickFix createFix(final String newName, final Class<? extends DomElement> clazz, final DomElement scope) {

    final List<DomElement> parents = ModelMergerUtil.getImplementations(scope);
    final DomCollectionChildDescription childDescription = getChildDescription(parents, clazz);
    if (newName.length() > 0 && childDescription != null) {
      return new ResolvingElementQuickFix(clazz, newName, parents, childDescription);
    }
    return null;
  }
View Full Code Here

Examples of com.intellij.util.xml.reflect.DomCollectionChildDescription

        final String stringValue = ElementPresentationManager.getElementName(element);
        if (stringValue != null) {
          final DomElement parent = element.getManager().getIdentityScope(element);
          final DomGenericInfo domGenericInfo = parent.getGenericInfo();
          final String tagName = element.getXmlElementName();
          final DomCollectionChildDescription childDescription = domGenericInfo.getCollectionChildDescription(tagName, element.getXmlElementNamespaceKey());
          if (childDescription != null) {
            final ArrayList<DomElement> list = new ArrayList<DomElement>(childDescription.getValues(parent));
            list.remove(element);
            return list;
          }
        }
      }
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.