Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2008-06-19 22:27:17 -0400
committerslewis2008-06-19 22:27:17 -0400
commitb068f597db3ff7c42346c9718fcd2085122e028c (patch)
tree329af8bd32948c6bdc2fc6241341a0f25e118bfc /examples/bundles/org.eclipse.ecf.example.collab
parent3ae4e9bee5ed1132ad3a77c393a6ffac19c1f62b (diff)
downloadorg.eclipse.ecf-b068f597db3ff7c42346c9718fcd2085122e028c.tar.gz
org.eclipse.ecf-b068f597db3ff7c42346c9718fcd2085122e028c.tar.xz
org.eclipse.ecf-b068f597db3ff7c42346c9718fcd2085122e028c.zip
Minor addition to user data...to allow for tracking of clients with bad behavior on public servers.v20080622-1412
Diffstat (limited to 'examples/bundles/org.eclipse.ecf.example.collab')
-rw-r--r--examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/SharedObjectContainerUI.java7
1 files changed, 4 insertions, 3 deletions
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 8379a0bda..aba716515 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,15 +69,15 @@ public class SharedObjectContainerUI {
} catch (final Exception e) {
}
try {
- topElements.add(Messages.SharedObjectContainerUI_OSGI_VERSION_LABEL + System.getProperty("org.osgi.framework.version")); //$NON-NLS-1$
+ topElements.add(Messages.SharedObjectContainerUI_OS_LABEL + Platform.getOS());
} catch (final Exception e) {
}
try {
- topElements.add(Messages.SharedObjectContainerUI_JAVA_VERSION_LABEL + System.getProperty("java.version")); //$NON-NLS-1$
+ topElements.add("Username: " + System.getProperty("user.name"));
} catch (final Exception e) {
}
try {
- topElements.add(Messages.SharedObjectContainerUI_OS_LABEL + Platform.getOS());
+ topElements.add("Hostname/IP: " + InetAddress.getLocalHost().toString());
} catch (final Exception e) {
}
return new User(clientID, usernick, topElements);

Back to the top