Package com.intellij.util.xml

Examples of com.intellij.util.xml.GenericDomValue


  private static Collection<StrutsPackage> removeCurrentElementFromVariants(final ConvertContext context,
                                                                            final Collection<StrutsPackage> allVariants) {
    final StrutsPackage currentElement = (StrutsPackage)DomUtil.getDomElement(context.getTag());
    assert currentElement != null : "currentElement was null for " + context.getTag();
    final GenericDomValue currentNameElement = currentElement.getGenericInfo().getNameDomElement(currentElement);
    if (currentNameElement == null) {
      return allVariants; // skip due to XML errors
    }

    final String currentName = currentNameElement.getStringValue();
    if (currentName == null) {
      return allVariants; // skip due to XML errors
    }

    final StrutsPackage currentElementInVariants = DomUtil.findByName(allVariants, currentName);
View Full Code Here


   * @param helper helper object
   */
  protected void checkDomElement(DomElement element, DomElementAnnotationHolder holder, DomHighlightingHelper helper) {
    final int oldSize = holder.getSize();
    if (element instanceof GenericDomValue) {
      final GenericDomValue genericDomValue = (GenericDomValue)element;
      if (shouldCheckResolveProblems(genericDomValue)) {
        helper.checkResolveProblems(genericDomValue, holder);
      }
    }
    for (final Class<? extends T> aClass : getDomClasses()) {
View Full Code Here

    for (final AbstractDomChildrenDescription description : domElement.getGenericInfo().getChildrenDescriptions()) {
      final JComponent boundComponent = getBoundComponent(description);
      if (boundComponent != null) {
        if (description instanceof DomFixedChildDescription && DomUtil.isGenericValueType(((DomFixedChildDescription)description).getType())) {
          if ((description.getValues(domElement)).size() == 1) {
            final GenericDomValue element = domElement.getManager().createStableValue(new Factory<GenericDomValue>() {
              public GenericDomValue create() {
                return domElement.isValid() ? (GenericDomValue)description.getValues(domElement).get(0) : null;
              }
            });
            doBind(DomUIFactory.createControl(element, commitOnEveryChange(element)), boundComponent);
View Full Code Here

TOP

Related Classes of com.intellij.util.xml.GenericDomValue

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.