mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 07:35:24 +02:00
[cleanup] Fixing @since tag version
This commit is contained in:
parent
f597062442
commit
47f2f1bde5
2 changed files with 28 additions and 23 deletions
|
@ -3,13 +3,13 @@
|
|||
* 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
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
*
|
||||
* Initial Contributors:
|
||||
* The following IBM employees contributed to the Remote System Explorer
|
||||
* component that contains this file: David McKnight, Kushal Munir,
|
||||
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
|
||||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
*
|
||||
* Contributors:
|
||||
* Noriaki Takatsu (IBM) - [220126] [dstore][api][breaking] Single process server for multiple clients
|
||||
* 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.
|
||||
*
|
||||
*
|
||||
* @noextend This class is not intended to be subclassed by clients.
|
||||
* @noinstantiate This class is not intended to be instantiated by clients.
|
||||
*/
|
||||
public class UniversalServerUtilities {
|
||||
|
||||
|
||||
/**
|
||||
* getUserPreferencesDirectory() - returns directory on IFS where to store user settings
|
||||
*
|
||||
* @since org.eclipse.rse.services.dstore 3.0 the DataStore argument was added
|
||||
*/
|
||||
/**
|
||||
* getUserPreferencesDirectory() - returns directory on IFS where to store
|
||||
* user settings.
|
||||
*
|
||||
* 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)
|
||||
{
|
||||
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$
|
||||
if (clientUserID == null || clientUserID.equals("")) //$NON-NLS-1$
|
||||
{
|
||||
|
@ -48,30 +53,30 @@ public class UniversalServerUtilities {
|
|||
{
|
||||
clientUserID += File.separator;
|
||||
}
|
||||
|
||||
|
||||
// append a '/' if not there
|
||||
if ( userPreferencesDirectory.length() == 0 ||
|
||||
if ( userPreferencesDirectory.length() == 0 ||
|
||||
userPreferencesDirectory.charAt( userPreferencesDirectory.length() -1 ) != File.separatorChar ) {
|
||||
|
||||
|
||||
userPreferencesDirectory = userPreferencesDirectory + File.separator;
|
||||
}
|
||||
|
||||
|
||||
userPreferencesDirectory = userPreferencesDirectory + ".eclipse" + File.separator + //$NON-NLS-1$
|
||||
"RSE" + File.separator + clientUserID; //$NON-NLS-1$
|
||||
File dirFile = new File(userPreferencesDirectory);
|
||||
if (!dirFile.exists()) {
|
||||
dirFile.mkdirs();
|
||||
}
|
||||
|
||||
|
||||
return userPreferencesDirectory;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* logInfo
|
||||
*
|
||||
*
|
||||
* @param minerName
|
||||
*
|
||||
*
|
||||
* @param message Message text to be logged.
|
||||
* @since org.eclipse.rse.services.dstore 3.0
|
||||
*/
|
||||
|
@ -82,7 +87,7 @@ public class UniversalServerUtilities {
|
|||
|
||||
/**
|
||||
* logWarning
|
||||
*
|
||||
*
|
||||
* @param minerName
|
||||
* @param message Message text to be logged.
|
||||
* @since org.eclipse.rse.services.dstore 3.0
|
||||
|
@ -94,7 +99,7 @@ public class UniversalServerUtilities {
|
|||
|
||||
/**
|
||||
* logError
|
||||
*
|
||||
*
|
||||
* @param minerName
|
||||
* @param message Message text to be logged.
|
||||
* @param exception Exception that generated the error. Used to print a
|
||||
|
@ -108,7 +113,7 @@ public class UniversalServerUtilities {
|
|||
|
||||
/**
|
||||
* logDebugMessage
|
||||
*
|
||||
*
|
||||
* @param minerName
|
||||
* @param message Message text to be logged.
|
||||
* @since org.eclipse.rse.services.dstore 3.0
|
||||
|
|
|
@ -22,7 +22,7 @@ import java.io.File;
|
|||
* This interface is used by the extension point
|
||||
* 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.
|
||||
* @since 7.1
|
||||
* @since org.eclipse.rse.services 3.0
|
||||
*/
|
||||
public interface IFileServiceCodePageConverter {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue