1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 20:45:22 +02:00

[cleanup] Fixing @since tag version

This commit is contained in:
Martin Oberhuber 2008-04-23 20:01:29 +00:00
parent f597062442
commit 47f2f1bde5
2 changed files with 28 additions and 23 deletions

View file

@ -3,13 +3,13 @@
* This program and the accompanying materials are made available under the terms * This program and the accompanying materials are made available under the terms
* of the Eclipse Public License v1.0 which accompanies this distribution, and is * of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html * available at http://www.eclipse.org/legal/epl-v10.html
* *
* Initial Contributors: * Initial Contributors:
* The following IBM employees contributed to the Remote System Explorer * The following IBM employees contributed to the Remote System Explorer
* component that contains this file: David McKnight, Kushal Munir, * component that contains this file: David McKnight, Kushal Munir,
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson, * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
* *
* Contributors: * Contributors:
* Noriaki Takatsu (IBM) - [220126] [dstore][api][breaking] Single process server for multiple clients * Noriaki Takatsu (IBM) - [220126] [dstore][api][breaking] Single process server for multiple clients
* Martin Oberhuber (Wind River) - [cleanup] Add API "since" Javadoc tags * Martin Oberhuber (Wind River) - [cleanup] Add API "since" Javadoc tags
@ -23,22 +23,27 @@ import org.eclipse.dstore.core.model.DataStore;
/** /**
* Utilities for dstore servers. * Utilities for dstore servers.
* *
* @noextend This class is not intended to be subclassed by clients. * @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients. * @noinstantiate This class is not intended to be instantiated by clients.
*/ */
public class UniversalServerUtilities { public class UniversalServerUtilities {
/** /**
* getUserPreferencesDirectory() - returns directory on IFS where to store user settings * getUserPreferencesDirectory() - returns directory on IFS where to store
* * user settings.
* @since org.eclipse.rse.services.dstore 3.0 the DataStore argument was added *
*/ * The dataStore argument was added in version 3.0 in order to support
* multiple clients in separate Threads each. Before that version, the
* method did not have any argument.
*
* @since org.eclipse.rse.services.dstore 3.0
*/
public static String getUserPreferencesDirectory(DataStore dataStore) public static String getUserPreferencesDirectory(DataStore dataStore)
{ {
String userPreferencesDirectory = dataStore.getClient().getProperty("user.home"); //$NON-NLS-1$ String userPreferencesDirectory = dataStore.getClient().getProperty("user.home"); //$NON-NLS-1$
String clientUserID = System.getProperty("client.username"); //$NON-NLS-1$ String clientUserID = System.getProperty("client.username"); //$NON-NLS-1$
if (clientUserID == null || clientUserID.equals("")) //$NON-NLS-1$ if (clientUserID == null || clientUserID.equals("")) //$NON-NLS-1$
{ {
@ -48,30 +53,30 @@ public class UniversalServerUtilities {
{ {
clientUserID += File.separator; clientUserID += File.separator;
} }
// append a '/' if not there // append a '/' if not there
if ( userPreferencesDirectory.length() == 0 || if ( userPreferencesDirectory.length() == 0 ||
userPreferencesDirectory.charAt( userPreferencesDirectory.length() -1 ) != File.separatorChar ) { userPreferencesDirectory.charAt( userPreferencesDirectory.length() -1 ) != File.separatorChar ) {
userPreferencesDirectory = userPreferencesDirectory + File.separator; userPreferencesDirectory = userPreferencesDirectory + File.separator;
} }
userPreferencesDirectory = userPreferencesDirectory + ".eclipse" + File.separator + //$NON-NLS-1$ userPreferencesDirectory = userPreferencesDirectory + ".eclipse" + File.separator + //$NON-NLS-1$
"RSE" + File.separator + clientUserID; //$NON-NLS-1$ "RSE" + File.separator + clientUserID; //$NON-NLS-1$
File dirFile = new File(userPreferencesDirectory); File dirFile = new File(userPreferencesDirectory);
if (!dirFile.exists()) { if (!dirFile.exists()) {
dirFile.mkdirs(); dirFile.mkdirs();
} }
return userPreferencesDirectory; return userPreferencesDirectory;
} }
/** /**
* logInfo * logInfo
* *
* @param minerName * @param minerName
* *
* @param message Message text to be logged. * @param message Message text to be logged.
* @since org.eclipse.rse.services.dstore 3.0 * @since org.eclipse.rse.services.dstore 3.0
*/ */
@ -82,7 +87,7 @@ public class UniversalServerUtilities {
/** /**
* logWarning * logWarning
* *
* @param minerName * @param minerName
* @param message Message text to be logged. * @param message Message text to be logged.
* @since org.eclipse.rse.services.dstore 3.0 * @since org.eclipse.rse.services.dstore 3.0
@ -94,7 +99,7 @@ public class UniversalServerUtilities {
/** /**
* logError * logError
* *
* @param minerName * @param minerName
* @param message Message text to be logged. * @param message Message text to be logged.
* @param exception Exception that generated the error. Used to print a * @param exception Exception that generated the error. Used to print a
@ -108,7 +113,7 @@ public class UniversalServerUtilities {
/** /**
* logDebugMessage * logDebugMessage
* *
* @param minerName * @param minerName
* @param message Message text to be logged. * @param message Message text to be logged.
* @since org.eclipse.rse.services.dstore 3.0 * @since org.eclipse.rse.services.dstore 3.0

View file

@ -22,7 +22,7 @@ import java.io.File;
* This interface is used by the extension point * This interface is used by the extension point
* It allows overriding the Universal File Subsystem translation of files, and results in * It allows overriding the Universal File Subsystem translation of files, and results in
* binary transfer, with calls to the implementor to handle code page conversion. * binary transfer, with calls to the implementor to handle code page conversion.
* @since 7.1 * @since org.eclipse.rse.services 3.0
*/ */
public interface IFileServiceCodePageConverter { public interface IFileServiceCodePageConverter {