Minor addition to user data...to allow for tracking of clients with bad behavior on public servers.
diff --git a/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/SharedObjectContainerUI.java b/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/SharedObjectContainerUI.java
index 8379a0b..aba7165 100644
--- a/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/SharedObjectContainerUI.java
+++ b/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/SharedObjectContainerUI.java
@@ -10,6 +10,7 @@
******************************************************************************/
package org.eclipse.ecf.internal.example.collab.ui;
+import java.net.InetAddress;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
@@ -68,17 +69,17 @@
} catch (final Exception e) {
}
try {
- topElements.add(Messages.SharedObjectContainerUI_OSGI_VERSION_LABEL + System.getProperty("org.osgi.framework.version")); //$NON-NLS-1$
- } catch (final Exception e) {
- }
- try {
- topElements.add(Messages.SharedObjectContainerUI_JAVA_VERSION_LABEL + System.getProperty("java.version")); //$NON-NLS-1$
- } catch (final Exception e) {
- }
- try {
topElements.add(Messages.SharedObjectContainerUI_OS_LABEL + Platform.getOS());
} catch (final Exception e) {
}
+ try {
+ topElements.add("Username: " + System.getProperty("user.name"));
+ } catch (final Exception e) {
+ }
+ try {
+ topElements.add("Hostname/IP: " + InetAddress.getLocalHost().toString());
+ } catch (final Exception e) {
+ }
return new User(clientID, usernick, topElements);
}