diff options
author | Andrey Loskutov | 2016-01-07 21:11:53 +0000 |
---|---|---|
committer | Andrey Loskutov | 2016-01-07 21:11:53 +0000 |
commit | 99e351989b664361d67301543e836c2f84860038 (patch) | |
tree | df8aedc7fb1c36ebc78c0acc4c444652c025fdf9 /bundles/org.eclipse.swt/Eclipse SWT Program | |
parent | c98a35a24d3d416c116d748eeedb75c131d5ec31 (diff) | |
download | eclipse.platform.swt-99e351989b664361d67301543e836c2f84860038.tar.gz eclipse.platform.swt-99e351989b664361d67301543e836c2f84860038.tar.xz eclipse.platform.swt-99e351989b664361d67301543e836c2f84860038.zip |
Bug 485367 - cleaned trailing spaces in swt (win32)
Change-Id: I47413fc0f50677957d3e3269dbaca97413b56d30
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Program')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Program/win32/org/eclipse/swt/program/Program.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/win32/org/eclipse/swt/program/Program.java b/bundles/org.eclipse.swt/Eclipse SWT Program/win32/org/eclipse/swt/program/Program.java index 1702acf585..b879a47525 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Program/win32/org/eclipse/swt/program/Program.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Program/win32/org/eclipse/swt/program/Program.java @@ -227,7 +227,7 @@ public static Program [] getPrograms () { int [] lpcName = new int [] {lpName.length ()}; FILETIME ft = new FILETIME (); int dwIndex = 0, count = 0; - while (OS.RegEnumKeyEx (OS.HKEY_CLASSES_ROOT, dwIndex, lpName, lpcName, null, null, null, ft) != OS.ERROR_NO_MORE_ITEMS) { + while (OS.RegEnumKeyEx (OS.HKEY_CLASSES_ROOT, dwIndex, lpName, lpcName, null, null, null, ft) != OS.ERROR_NO_MORE_ITEMS) { String path = lpName.toString (0, lpcName [0]); lpcName [0] = lpName.length (); Program program = getProgram (path, null); @@ -257,7 +257,7 @@ public static Program [] getPrograms () { * * @param fileName the file or program name or URL (http:// or https://) * @return <code>true</code> if the file is launched, otherwise <code>false</code> - * + * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT when fileName is null</li> * </ul> @@ -278,23 +278,23 @@ public static boolean launch (String fileName) { * @param fileName the file name or program name or URL (http:// or https://) * @param workingDir the name of the working directory or null * @return <code>true</code> if the file is launched, otherwise <code>false</code> - * + * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT when fileName is null</li> * </ul> - * + * * @since 3.6 */ public static boolean launch (String fileName, String workingDir) { if (fileName == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); - + /* Use the character encoding for the default locale */ long /*int*/ hHeap = OS.GetProcessHeap (); TCHAR buffer = new TCHAR (0, fileName, true); int byteCount = buffer.length () * TCHAR.sizeof; long /*int*/ lpFile = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount); OS.MoveMemory (lpFile, buffer, byteCount); - + long /*int*/ lpDirectory = 0; if (workingDir != null && OS.PathIsExe(lpFile)) { TCHAR buffer1 = new TCHAR (0, workingDir, true); @@ -302,7 +302,7 @@ public static boolean launch (String fileName, String workingDir) { lpDirectory = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount); OS.MoveMemory (lpDirectory, buffer1, byteCount); } - + SHELLEXECUTEINFO info = new SHELLEXECUTEINFO (); info.cbSize = SHELLEXECUTEINFO.sizeof; info.lpFile = lpFile; @@ -317,12 +317,12 @@ public static boolean launch (String fileName, String workingDir) { /** * Executes the program with the file as the single argument * in the operating system. It is the responsibility of the - * programmer to ensure that the file contains valid data for + * programmer to ensure that the file contains valid data for * this program. * * @param fileName the file or program name * @return <code>true</code> if the file is launched, otherwise <code>false</code> - * + * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT when fileName is null</li> * </ul> @@ -441,8 +441,8 @@ public boolean equals(Object other) { } /** - * Returns an integer hash code for the receiver. Any two - * objects that return <code>true</code> when passed to + * Returns an integer hash code for the receiver. Any two + * objects that return <code>true</code> when passed to * <code>equals</code> must return the same value for this * method. * |