| java.lang.Object org.netbeans.projectopener.Utils
Utils | public class Utils (Code) | | author: Milan Kubec |
Inner Class :public static class ProxySettings | |
Inner Class :public static class DialogDescriptor | |
Inner Class :public static class NBInstallDir | |
Constructor Summary | |
| Utils() |
Method Summary | |
public static int | compareReleaseTypes(String relType1, String relType2) | public static int | compareVersions(String verStr1, String verStr2) Compares two NB versions (only numbers), e.g. | public static File | createTempDir(File dir, String prefix) | public static File | createTempFile(File dir, String prefix, String suffix, boolean delOnExit) | public static void | download(String urlStr, File destFile) | public static String | exc2String(Throwable t) | public static Integer | getAnotherNBInstallDir(String nbv) | public static BasicService | getBasicService() | public static PersistenceService | getPersistenceService() | public static String | getPlatformLauncher() | public static String | getProperty(String pName) | public static SavedProjects | getSavedProjects(File dir) | public static String[] | getVersionParts(String s) Returns parts of the NB version number if it matches the regexp
e.g. | public static boolean | maybeAnotherProxy() | public static void | setProperty(String pName, String pVal) | public static boolean | showDocument(String url) | public static void | showErrMessage(String message, String title) | public static void | unzip(File srcFile, File destDir) |
compareReleaseTypes | public static int compareReleaseTypes(String relType1, String relType2)(Code) | | Compare release types in following way: dev < beta < rc < ""
|
compareVersions | public static int compareVersions(String verStr1, String verStr2)(Code) | | Compares two NB versions (only numbers), e.g. 5.5.1, 6.0,
returns negative if first version number parameter is lower than second,
positive if first is higher and 0 if both versions are the same
|
getBasicService | public static BasicService getBasicService()(Code) | | |
getPersistenceService | public static PersistenceService getPersistenceService()(Code) | | |
getPlatformLauncher | public static String getPlatformLauncher()(Code) | | |
getVersionParts | public static String[] getVersionParts(String s)(Code) | | Returns parts of the NB version number if it matches the regexp
e.g. '1.2.3beta2' = > [0] == 1.2.3, [1] == beta, [2] == 2
if not matches returns null
|
maybeAnotherProxy | public static boolean maybeAnotherProxy()(Code) | | |
showDocument | public static boolean showDocument(String url)(Code) | | Tries to open passed URL in system browser
using JNLP BasicService
|
|
|