Examples of LibraryInfo


Examples of com.intellij.facet.ui.libraries.LibraryInfo

  public static LibraryInfo createJarDownloadInfo(final boolean useBrainsUrl, final String jarName, final String version,
                                                  final String... requiredClasses) {
    final String v = version == null || version.length() == 0 ? "" : "/" + version + "/";
    if (useBrainsUrl)
      return new LibraryInfo(jarName, DOWNLOADING_URL + v + jarName, DOWNLOAD_JETBRAINS_COM, null,
          requiredClasses);
    else
      return new LibraryInfo(jarName, MAVEN_DOWNLOADING_URL + v
          + jarName.substring(0, jarName.lastIndexOf('.')) + "-" + version + ".jar", DOWNLOAD_MAVEN_ORG, null,
          requiredClasses);
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.launching.LibraryInfo

        }
        return buf.toString();
    }

    private double getJavaVersion() {
        LibraryInfo libInfo = LaunchingPlugin.getLibraryInfo(fVMInstance.getInstallLocation().getAbsolutePath());
        if (libInfo == null) {
            return 0D;
        }
        String version = libInfo.getVersion();
        int index = version.indexOf("."); //$NON-NLS-1$
        int nextIndex = version.indexOf(".", index+1); //$NON-NLS-1$
        try {
            if (index > 0 && nextIndex>index) {
                return Double.parseDouble(version.substring(0,nextIndex));
View Full Code Here

Examples of org.eclipse.jdt.internal.launching.LibraryInfo

        }
        return buf.toString();
    }

    private double getJavaVersion() {
        LibraryInfo libInfo = LaunchingPlugin.getLibraryInfo(fVMInstance.getInstallLocation().getAbsolutePath());
        if (libInfo == null) {
            return 0D;
        }
        String version = libInfo.getVersion();
        int index = version.indexOf("."); //$NON-NLS-1$
        int nextIndex = version.indexOf(".", index+1); //$NON-NLS-1$
        try {
            if (index > 0 && nextIndex>index) {
                return Double.parseDouble(version.substring(0,nextIndex));
View Full Code Here

Examples of org.eclipse.jdt.internal.launching.LibraryInfo

        }
        return buf.toString();
    }

    private double getJavaVersion() {
        LibraryInfo libInfo = LaunchingPlugin.getLibraryInfo(fVMInstance.getInstallLocation().getAbsolutePath());
        if (libInfo == null) {
            return 0D;
        }
        String version = libInfo.getVersion();
        int index = version.indexOf("."); //$NON-NLS-1$
        int nextIndex = version.indexOf(".", index+1); //$NON-NLS-1$
        try {
            if (index > 0 && nextIndex>index) {
                return Double.parseDouble(version.substring(0,nextIndex));
View Full Code Here

Examples of org.eclipse.jdt.internal.launching.LibraryInfo

        }
        return buf.toString();
    }

    private double getJavaVersion() {
        LibraryInfo libInfo = LaunchingPlugin.getLibraryInfo(fVMInstance.getInstallLocation().getAbsolutePath());
        if (libInfo == null) {
            return 0D;
        }
        String version = libInfo.getVersion();
        int index = version.indexOf("."); //$NON-NLS-1$
        int nextIndex = version.indexOf(".", index+1); //$NON-NLS-1$
        try {
            if (index > 0 && nextIndex>index) {
                return Double.parseDouble(version.substring(0,nextIndex));
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.