static String getProfilePath () { String baseDir = System.getProperty ("user.home"); //$NON-NLS-1$ /* * Bug in Sun JRE. Under some circumstances the value of java property "user.home" is * "?", even when the HOME environment variable has a valid value. If this happens * then attempt to read the value from the environment directly. */ if (baseDir.equals ("?")) { //$NON-NLS-1$ long /*int*/ ptr = C.getenv (wcsToMbcs (null, "HOME", true)); //$NON-NLS-1$ if (ptr != 0) { int length = C.strlen (ptr); byte[] bytes = new byte[length]; C.memmove (bytes, ptr, length); baseDir = new String (mbcsToWcs (null, bytes)); } } return baseDir + Mozilla.SEPARATOR_OS + ".mozilla" + Mozilla.SEPARATOR_OS + "eclipse"; //$NON-NLS-1$ //$NON-NLS-2$ }
static String getProfilePath () { String baseDir = System.getProperty ("user.home"); //$NON-NLS-1$ /* * Bug in Sun JRE. Under some circumstances the value of java property "user.home" is * "?", even when the HOME environment variable has a valid value. If this happens * then attempt to read the value from the environment directly. */ if (baseDir.equals ("?")) { //$NON-NLS-1$ int /*long*/ ptr = C.getenv (wcsToMbcs (null, "HOME", true)); //$NON-NLS-1$ if (ptr != 0) { int length = C.strlen (ptr); byte[] bytes = new byte[length]; C.memmove (bytes, ptr, length); baseDir = new String (mbcsToWcs (null, bytes)); } } return baseDir + Mozilla.SEPARATOR_OS + ".mozilla" + Mozilla.SEPARATOR_OS + "eclipse"; //$NON-NLS-1$ //$NON-NLS-2$ }
static String getProfilePath () { String baseDir = System.getProperty ("user.home"); //$NON-NLS-1$ /* * Bug in Sun JRE. Under some circumstances the value of java property "user.home" is * "?", even when the HOME environment variable has a valid value. If this happens * then attempt to read the value from the environment directly. */ if (baseDir.equals ("?")) { //$NON-NLS-1$ int /*long*/ ptr = C.getenv (wcsToMbcs (null, "HOME", true)); //$NON-NLS-1$ if (ptr != 0) { int length = C.strlen (ptr); byte[] bytes = new byte[length]; C.memmove (bytes, ptr, length); baseDir = new String (mbcsToWcs (null, bytes)); } } return baseDir + Mozilla.SEPARATOR_OS + ".mozilla" + Mozilla.SEPARATOR_OS + "eclipse"; //$NON-NLS-1$ //$NON-NLS-2$ }
byte[] bytes = new byte[size]; XPCOM.memmove (bytes, prop, size); String propertyName = new String (MozillaDelegate.mbcsToWcs (null, bytes)); String propertyValue = null;
byte[] bytes = new byte[size]; XPCOM.memmove (bytes, prop, size); String propertyName = new String (MozillaDelegate.mbcsToWcs (null, bytes)); String propertyValue = null;
byte[] bytes = new byte[size]; XPCOM.memmove (bytes, prop, size); String propertyName = new String (MozillaDelegate.mbcsToWcs (null, bytes)); String propertyValue = null;
byte[] bytes = new byte[size]; XPCOM.memmove (bytes, prop, size); String propertyName = new String (MozillaDelegate.mbcsToWcs (null, bytes)); String propertyValue = null;
byte[] bytes = new byte[size]; XPCOM.memmove (bytes, prop, size); String propertyName = new String (MozillaDelegate.mbcsToWcs (null, bytes)); String[] propertyValues = null; byte[] buffer = new byte[length]; C.memmove (buffer, ptr, length); String value = new String (MozillaDelegate.mbcsToWcs (null, buffer)); if (value.length () > 0) { String separator = System.getProperty ("path.separator"); // $NON-NLS-1$
byte[] bytes = new byte[size]; XPCOM.memmove (bytes, prop, size); String propertyName = new String (MozillaDelegate.mbcsToWcs (null, bytes)); String[] propertyValues = null; byte[] buffer = new byte[length]; C.memmove (buffer, ptr, length); String value = new String (MozillaDelegate.mbcsToWcs (null, buffer)); if (value.length () > 0) { String separator = System.getProperty ("path.separator"); // $NON-NLS-1$
byte[] buffer = new byte[length]; C.memmove (buffer, ptr, length); mozillaPath = new String (MozillaDelegate.mbcsToWcs (null, buffer));
byte[] buffer = new byte[length]; C.memmove (buffer, ptr, length); mozillaPath = new String (MozillaDelegate.mbcsToWcs (null, buffer));
byte[] buffer = new byte[length]; C.memmove (buffer, ptr, length); mozillaPath = new String (MozillaDelegate.mbcsToWcs (null, buffer));
byte[] buffer = new byte[length]; C.memmove (buffer, ptr, length); mozillaPath = new String (MozillaDelegate.mbcsToWcs (null, buffer));
byte[] buffer = new byte[length]; C.memmove (buffer, ptr, length); mozillaPath = new String (MozillaDelegate.mbcsToWcs (null, buffer));
String allCookies = new String (MozillaDelegate.mbcsToWcs (null, bytes)); StringTokenizer tokenizer = new StringTokenizer (allCookies, ";"); //$NON-NLS-1$ while (tokenizer.hasMoreTokens ()) {
String allCookies = new String (MozillaDelegate.mbcsToWcs (null, bytes)); StringTokenizer tokenizer = new StringTokenizer (allCookies, ";"); //$NON-NLS-1$ while (tokenizer.hasMoreTokens ()) {
String allCookies = new String (MozillaDelegate.mbcsToWcs (null, bytes)); StringTokenizer tokenizer = new StringTokenizer (allCookies, ";"); //$NON-NLS-1$ while (tokenizer.hasMoreTokens ()) {
String allCookies = new String (MozillaDelegate.mbcsToWcs (null, bytes)); StringTokenizer tokenizer = new StringTokenizer (allCookies, ";"); //$NON-NLS-1$ while (tokenizer.hasMoreTokens ()) {
String allCookies = new String (MozillaDelegate.mbcsToWcs (null, bytes)); StringTokenizer tokenizer = new StringTokenizer (allCookies, ";"); //$NON-NLS-1$ while (tokenizer.hasMoreTokens ()) {
bytes = new byte[length]; C.memmove (bytes, greBuffer, length); result = new String (MozillaDelegate.mbcsToWcs (null, bytes)); } else { result = ""; //$NON-NLS-1$