summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-09 02:37:36 (EDT)
committerEike Stepper2007-10-09 02:37:36 (EDT)
commit6caddede4a012b47bcd3e7b22b3996af52e1a0db (patch)
treec6d1f7fe2d4530409625afc3f9b5405449f98bcd
parent16b12d5befb2aafd4788e27a2bbefe73ef7501d1 (diff)
downloadcdo-6caddede4a012b47bcd3e7b22b3996af52e1a0db.zip
cdo-6caddede4a012b47bcd3e7b22b3996af52e1a0db.tar.gz
cdo-6caddede4a012b47bcd3e7b22b3996af52e1a0db.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/plugin.xml2
-rw-r--r--plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/BuddiesServerProtocolFactory.java29
-rw-r--r--plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerProtocol.java (renamed from plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/BuddiesServerProtocol.java)4
-rw-r--r--plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerProtocolFactory.java27
-rw-r--r--plugins/org.eclipse.net4j.buddies/plugin.xml2
-rw-r--r--plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/BuddiesClientProtocolFactory.java30
-rw-r--r--plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/ClientProtocol.java (renamed from plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/BuddiesClientProtocol.java)4
-rw-r--r--plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/ClientProtocolFactory.java28
8 files changed, 61 insertions, 65 deletions
diff --git a/plugins/org.eclipse.net4j.buddies.server/plugin.xml b/plugins/org.eclipse.net4j.buddies.server/plugin.xml
index 2eee119..152e87f 100644
--- a/plugins/org.eclipse.net4j.buddies.server/plugin.xml
+++ b/plugins/org.eclipse.net4j.buddies.server/plugin.xml
@@ -20,7 +20,7 @@
<extension
point="org.eclipse.net4j.util.factories">
<factory
- class="org.eclipse.net4j.buddies.internal.server.protocol.BuddiesServerProtocolFactory"
+ class="org.eclipse.net4j.buddies.internal.server.protocol.ServerProtocolFactory"
productGroup="org.eclipse.net4j.serverProtocols"
type="buddies"/>
</extension>
diff --git a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/BuddiesServerProtocolFactory.java b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/BuddiesServerProtocolFactory.java
deleted file mode 100644
index be4cb80..0000000
--- a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/BuddiesServerProtocolFactory.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package org.eclipse.net4j.buddies.internal.server.protocol;
-
-import org.eclipse.net4j.buddies.internal.protocol.ProtocolConstants;
-import org.eclipse.net4j.util.container.IManagedContainer;
-
-import org.eclipse.internal.net4j.ServerProtocolFactory;
-
-/**
- * @author Eike Stepper
- */
-public class BuddiesServerProtocolFactory extends ServerProtocolFactory
-{
- public static final String TYPE = ProtocolConstants.PROTOCOL_NAME;
-
- public BuddiesServerProtocolFactory()
- {
- super(TYPE);
- }
-
- public BuddiesServerProtocol create(String description)
- {
- return new BuddiesServerProtocol();
- }
-
- public static BuddiesServerProtocol get(IManagedContainer container, String description)
- {
- return (BuddiesServerProtocol)container.getElement(PRODUCT_GROUP, TYPE, description);
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/BuddiesServerProtocol.java b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerProtocol.java
index ce8ea53..dc3b2a1 100644
--- a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/BuddiesServerProtocol.java
+++ b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerProtocol.java
@@ -24,9 +24,9 @@ import java.util.Map;
/**
* @author Eike Stepper
*/
-public class BuddiesServerProtocol extends SignalProtocol
+public class ServerProtocol extends SignalProtocol
{
- public BuddiesServerProtocol()
+ public ServerProtocol()
{
}
diff --git a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerProtocolFactory.java b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerProtocolFactory.java
new file mode 100644
index 0000000..49d899f
--- /dev/null
+++ b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerProtocolFactory.java
@@ -0,0 +1,27 @@
+package org.eclipse.net4j.buddies.internal.server.protocol;
+
+import org.eclipse.net4j.buddies.internal.protocol.ProtocolConstants;
+import org.eclipse.net4j.util.container.IManagedContainer;
+
+/**
+ * @author Eike Stepper
+ */
+public class ServerProtocolFactory extends org.eclipse.internal.net4j.ServerProtocolFactory
+{
+ public static final String TYPE = ProtocolConstants.PROTOCOL_NAME;
+
+ public ServerProtocolFactory()
+ {
+ super(TYPE);
+ }
+
+ public ServerProtocol create(String description)
+ {
+ return new ServerProtocol();
+ }
+
+ public static ServerProtocol get(IManagedContainer container, String description)
+ {
+ return (ServerProtocol)container.getElement(PRODUCT_GROUP, TYPE, description);
+ }
+} \ No newline at end of file
diff --git a/plugins/org.eclipse.net4j.buddies/plugin.xml b/plugins/org.eclipse.net4j.buddies/plugin.xml
index c662f1b..ff31b0d 100644
--- a/plugins/org.eclipse.net4j.buddies/plugin.xml
+++ b/plugins/org.eclipse.net4j.buddies/plugin.xml
@@ -20,7 +20,7 @@
<extension
point="org.eclipse.net4j.util.factories">
<factory
- class="org.eclipse.net4j.internal.buddies.protocol.BuddiesClientProtocolFactory"
+ class="org.eclipse.net4j.internal.buddies.protocol.ClientProtocolFactory"
productGroup="org.eclipse.net4j.clientProtocols"
type="buddies"/>
</extension>
diff --git a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/BuddiesClientProtocolFactory.java b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/BuddiesClientProtocolFactory.java
deleted file mode 100644
index 659bae1..0000000
--- a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/BuddiesClientProtocolFactory.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package org.eclipse.net4j.internal.buddies.protocol;
-
-import org.eclipse.net4j.buddies.internal.protocol.ProtocolConstants;
-
-import org.eclipse.net4j.util.container.IManagedContainer;
-
-import org.eclipse.internal.net4j.ClientProtocolFactory;
-
-/**
- * @author Eike Stepper
- */
-public final class BuddiesClientProtocolFactory extends ClientProtocolFactory
-{
- public static final String TYPE = ProtocolConstants.PROTOCOL_NAME;
-
- public BuddiesClientProtocolFactory()
- {
- super(TYPE);
- }
-
- public BuddiesClientProtocol create(String description)
- {
- return new BuddiesClientProtocol();
- }
-
- public static BuddiesClientProtocol get(IManagedContainer container, String description)
- {
- return (BuddiesClientProtocol)container.getElement(PRODUCT_GROUP, TYPE, description);
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/BuddiesClientProtocol.java b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/ClientProtocol.java
index e56e4f3..8d8ac0c 100644
--- a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/BuddiesClientProtocol.java
+++ b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/ClientProtocol.java
@@ -22,9 +22,9 @@ import org.eclipse.net4j.util.concurrent.ConcurrencyUtil;
/**
* @author Eike Stepper
*/
-public class BuddiesClientProtocol extends SignalProtocol
+public class ClientProtocol extends SignalProtocol
{
- public BuddiesClientProtocol()
+ public ClientProtocol()
{
}
diff --git a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/ClientProtocolFactory.java b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/ClientProtocolFactory.java
new file mode 100644
index 0000000..3bf305b
--- /dev/null
+++ b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/ClientProtocolFactory.java
@@ -0,0 +1,28 @@
+package org.eclipse.net4j.internal.buddies.protocol;
+
+import org.eclipse.net4j.buddies.internal.protocol.ProtocolConstants;
+
+import org.eclipse.net4j.util.container.IManagedContainer;
+
+/**
+ * @author Eike Stepper
+ */
+public final class ClientProtocolFactory extends org.eclipse.internal.net4j.ClientProtocolFactory
+{
+ public static final String TYPE = ProtocolConstants.PROTOCOL_NAME;
+
+ public ClientProtocolFactory()
+ {
+ super(TYPE);
+ }
+
+ public ClientProtocol create(String description)
+ {
+ return new ClientProtocol();
+ }
+
+ public static ClientProtocol get(IManagedContainer container, String description)
+ {
+ return (ClientProtocol)container.getElement(PRODUCT_GROUP, TYPE, description);
+ }
+} \ No newline at end of file