Package org.springframework.ide.eclipse.beans.ui.namespaces

Examples of org.springframework.ide.eclipse.beans.ui.namespaces.DefaultNamespaceDefinition


        Node currAttributeNode = beanAttributes.item(i);
        String currAttributeName = currAttributeNode.getNodeName();
        String uri = currAttributeNode.getNodeValue();
        if (isUnknownNamespace(currAttributeName, uri, namespaceDefinitionList)) {
          String schemaVersion = getSchemaVersionFromXml(uri);
          INamespaceDefinition namespaceDefinition = new DefaultNamespaceDefinition(attributeNameToPrefix(
              currAttributeName, uri), uri, schemaVersion, StsUiImages.XML_FILE.createImage());
          if (!"".equals(schemaVersion)) {
            this.selectedNamespaceVersionMap.put(namespaceDefinition, schemaVersion);
          }
          namespaceDefinitionList.add(namespaceDefinition);
View Full Code Here


        String currAttributeName = currAttributeNode.getNodeName();
        String uri = currAttributeNode.getNodeValue();
        if (isUnknownNamespace(currAttributeName, uri, namespaceDefinitionList)) {
          String schemaVersion = ConfigCoreUtils.getSelectedSchemaLocation(
              getConfigEditor().getDomDocument(), uri);
          INamespaceDefinition namespaceDefinition = new DefaultNamespaceDefinition(attributeNameToPrefix(
              currAttributeName, uri), uri, schemaVersion, StsUiImages.XML_FILE.createImage());
          if (!"".equals(schemaVersion)) { //$NON-NLS-1$
            this.selectedVersions.put(namespaceDefinition, schemaVersion);
          }
          namespaceDefinitionList.add(namespaceDefinition);
        }
      }
    }
    // Special case
    List<String> schemaInfo = ConfigCoreUtils.parseSchemaLocationAttr(getConfigEditor().getDomDocument());
    if (schemaInfo != null) {
      Iterator<String> iter = schemaInfo.iterator();
      while (iter.hasNext()) {
        String uri = iter.next();
        if (iter.hasNext()) {
          String schemaVersion = iter.next();
          if (!namespaceAttributeExistsInList(ConfigCoreUtils.ATTR_SCHEMA_LOCATION, uri,
              namespaceDefinitionList)) {
            INamespaceDefinition namespaceDefinition = new DefaultNamespaceDefinition(
                attributeNameToPrefix(ConfigCoreUtils.ATTR_SCHEMA_LOCATION, uri), uri, schemaVersion,
                StsUiImages.XML_FILE.createImage());
            if (!"".equals(schemaVersion)) { //$NON-NLS-1$
              this.selectedVersions.put(namespaceDefinition, schemaVersion);
            }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.beans.ui.namespaces.DefaultNamespaceDefinition

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.