summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-07 17:58:36 (EDT)
committerEike Stepper2007-10-07 17:58:36 (EDT)
commit0e6b366ac9d1fe3a4197da9e9356b9da63c952db (patch)
tree4decf3fae8b08bc9158df425c1780d07c2914bf0
parentb0a0bad621a40e24eed3688bee13d11e6cc2f464 (diff)
downloadcdo-0e6b366ac9d1fe3a4197da9e9356b9da63c952db.zip
cdo-0e6b366ac9d1fe3a4197da9e9356b9da63c952db.tar.gz
cdo-0e6b366ac9d1fe3a4197da9e9356b9da63c952db.tar.bz2
[205668] Provide buddies example
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205668
-rw-r--r--plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/bundle/OM.java5
-rw-r--r--plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesView.java5
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/bundle/OM.java b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/bundle/OM.java
index 3b2581f..50f163d 100644
--- a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/bundle/OM.java
+++ b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/bundle/OM.java
@@ -44,11 +44,6 @@ public abstract class OM
public static final OMLogger LOG = BUNDLE.logger();
- void start() throws Exception
- {
- BuddyAdmin.INSTANCE.activate();
- }
-
void stop() throws Exception
{
BuddyAdmin.INSTANCE.deactivate();
diff --git a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesView.java b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesView.java
index ffda3c5..b4bf63d 100644
--- a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesView.java
+++ b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesView.java
@@ -31,6 +31,11 @@ public class BuddiesView extends ContainerView implements IListener
String userID = OM.PREF_USER_ID.getValue();
String password = OM.PREF_PASSWORD.getValue();
session = BuddiesUtil.openSession(connector, userID, password);
+ if (session == null)
+ {
+ throw new IllegalStateException("session == null");
+ }
+
session.addListener(this);
}