Package org.objectstyle.woenvironment.frameworks

Examples of org.objectstyle.woenvironment.frameworks.Version


  }

  protected synchronized void ensureDefaultsInitialized() {
    if (!_defaultsInitialized) {
      _defaultsInitialized = true;
      _woVersionDefault = new Version(VariablesPlugin.getDefault().getGlobalVariables().getString("wo.version", "5.3.3"));
      _inlineBindingPrefixDefault = VariablesPlugin.getDefault().getGlobalVariables().getString("component.inlineBindingPrefix", "[");
      _inlineBindingSuffixDefault = VariablesPlugin.getDefault().getGlobalVariables().getString("component.inlineBindingSuffix", "]");
      // MS: This is pretty hacky -- Technically this plugin doesn't depend on the Bindings preference plugin, and I don't want to add it because it brings in a bunch
      // of JDT dependencies that we don't want here, but I can't move the preferences out of the plugin easily without changing their key name.
      _wellFormedTemplateRequiredDefault = VariablesPlugin.getDefault().getGlobalVariables().getBoolean("component.wellFormedTemplateRequired", "yes".equals(Platform.getPreferencesService().getString("org.objectstyle.wolips.bindings", "WellFormedTemplate", null, null)));
View Full Code Here


      remove("version");
    }
  }

  public Version getVersion() {
    Version versionDefault = getVersionDefault();
    return new Version(get("version", versionDefault == null ? null : versionDefault.getVersionStr()));
  }
View Full Code Here

      remove("wo.version");
    }
  }

  public Version getWOVersion() {
    Version woVersionDefault = getWOVersionDefault();
    return new Version(get("wo.version", woVersionDefault == null ? null : woVersionDefault.getVersionStr()));
  }
View Full Code Here

        }
        else {
          foundationFramework = projectFrameworkAdaptor.getLinkedFrameworkNamed("JavaFoundation");
        }
        if (foundationFramework != null) {
          Version version = foundationFramework.getVersion();
          if (version != null && !version.isUndefined()) {
            buildProperties.setWOVersionDefault(version);
          }
        }
       
        boolean wellFormedTemplateRequiredDefault;
View Full Code Here

    }
    return cachedClasspathEntries.clone();
  }
 
  public Version getVersion() {
    Version version = null;
    File pomFile = project.getLocation().append("pom.xml").toFile();
    if (pomFile.exists()) {
      try {
        Document pomDocument = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(pomFile);
        pomDocument.normalize();
        NodeList versionNodes = (NodeList) XPathFactory.newInstance().newXPath().compile("//project/version").evaluate(pomDocument, XPathConstants.NODESET);
        if (versionNodes.getLength() == 0) {
          versionNodes = (NodeList) XPathFactory.newInstance().newXPath().compile("//parent/version").evaluate(pomDocument, XPathConstants.NODESET);
        }
        if (versionNodes.getLength() > 0) {
          String versionStr = versionNodes.item(0).getFirstChild().getNodeValue();
          if (versionStr != null) {
            version = new Version(versionStr);
          }
        }
      } catch (Throwable t) {
        JdtPlugin.getDefault().getPluginLogger().log(t);
      }
View Full Code Here

TOP

Related Classes of org.objectstyle.woenvironment.frameworks.Version

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.