/** * Returns a string representation of the platform. * * @return a string representation of the platform */ public String toString() { return name.toString().toLowerCase() + ",version=" + version + ",arch=" + arch.toString().toLowerCase() + ",symbolicName=" + symbolicName + ",javaVersion=" + javaVersion; }
/** * Returns the installation path for the specified platform name. * <p/> * This looks for a variable named {@code TargetPanel.dir.<platform name>}. If none is found, it searches the * parent platforms, in a breadth-first manner. * * @param installData the installation data * @param name the platform name * @return the default path, or {@code null} if none is found */ private static String getTargetPanelDir(InstallData installData, Platform.Name name) { String path = null; List<Platform.Name> queue = new ArrayList<Platform.Name>(); queue.add(name); while (!queue.isEmpty()) { name = queue.remove(0); path = installData.getVariable(PREFIX + name.toString().toLowerCase()); if (path != null) { break; } Collections.addAll(queue, name.getParents()); } return path; } }