summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-08 03:16:43 (EDT)
committerEike Stepper2007-10-08 03:16:43 (EDT)
commitce9ee11e8f91b86f97c2c6a68874042fb37f6b3f (patch)
tree3927e6cfc81e78db79ae83c643ce565438ec7083
parent537fb30fd1456d676a16b91f432e695cfc1a1d51 (diff)
downloadcdo-ce9ee11e8f91b86f97c2c6a68874042fb37f6b3f.zip
cdo-ce9ee11e8f91b86f97c2c6a68874042fb37f6b3f.tar.gz
cdo-ce9ee11e8f91b86f97c2c6a68874042fb37f6b3f.tar.bz2
[205668] Provide buddies example
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205668
-rw-r--r--plugins/org.eclipse.net4j.buddies.ui/plugin.xml2
-rw-r--r--plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/SharedIcons.java2
-rw-r--r--plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesItemProvider.java3
-rw-r--r--plugins/org.eclipse.net4j.ui/plugin.xml4
-rw-r--r--plugins/org.eclipse.net4j.util.ui/plugin.xml4
5 files changed, 9 insertions, 6 deletions
diff --git a/plugins/org.eclipse.net4j.buddies.ui/plugin.xml b/plugins/org.eclipse.net4j.buddies.ui/plugin.xml
index 51aa2d1..d8d8cdb 100644
--- a/plugins/org.eclipse.net4j.buddies.ui/plugin.xml
+++ b/plugins/org.eclipse.net4j.buddies.ui/plugin.xml
@@ -35,7 +35,7 @@
<view
category="org.eclipse.net4j"
class="org.eclipse.net4j.buddies.internal.ui.views.BuddiesView"
- icon="icons/full/view16/contacts.gif"
+ icon="icons/full/view16/buddies_view.gif"
id="org.eclipse.net4j.BuddiesView"
name="Buddies">
</view>
diff --git a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/SharedIcons.java b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/SharedIcons.java
index c093c3c..7337043 100644
--- a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/SharedIcons.java
+++ b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/SharedIcons.java
@@ -37,6 +37,8 @@ public class SharedIcons
@SuppressWarnings("unused")
private static final String WIZBAN = "wizban/";
+ public static final String OBJ_BUDDY = OBJ + "buddy";
+
public static Image getImage(String key)
{
key = mangleKey(key);
diff --git a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesItemProvider.java b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesItemProvider.java
index 855cdb8..8234665 100644
--- a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesItemProvider.java
+++ b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesItemProvider.java
@@ -10,6 +10,7 @@
**************************************************************************/
package org.eclipse.net4j.buddies.internal.ui.views;
+import org.eclipse.net4j.buddies.internal.ui.SharedIcons;
import org.eclipse.net4j.buddies.protocol.IBuddy;
import org.eclipse.net4j.util.container.IContainer;
import org.eclipse.net4j.util.lifecycle.LifecycleUtil;
@@ -54,7 +55,7 @@ public class BuddiesItemProvider extends ContainerItemProvider<IContainer<Object
if (obj instanceof IBuddy)
{
IBuddy buddy = (IBuddy)obj;
- // return SharedIcons.getImage(SharedIcons.OBJ_ACCEPTOR);
+ return SharedIcons.getImage(SharedIcons.OBJ_BUDDY);
}
return super.getImage(obj);
diff --git a/plugins/org.eclipse.net4j.ui/plugin.xml b/plugins/org.eclipse.net4j.ui/plugin.xml
index 810df36..73c5125 100644
--- a/plugins/org.eclipse.net4j.ui/plugin.xml
+++ b/plugins/org.eclipse.net4j.ui/plugin.xml
@@ -28,14 +28,14 @@
class="org.eclipse.net4j.internal.ui.views.AcceptorsView"
icon="icons/full/view16/acceptors.gif"
id="org.eclipse.net4j.AcceptorsView"
- name="Net4j Acceptors">
+ name="Acceptors">
</view>
<view
category="org.eclipse.net4j"
class="org.eclipse.net4j.internal.ui.views.ConnectorsView"
icon="icons/full/view16/connectors.gif"
id="org.eclipse.net4j.ConnectorsView"
- name="Net4j Connectors">
+ name="Connectors">
</view>
</extension>
diff --git a/plugins/org.eclipse.net4j.util.ui/plugin.xml b/plugins/org.eclipse.net4j.util.ui/plugin.xml
index c064f3d..94fd0ed 100644
--- a/plugins/org.eclipse.net4j.util.ui/plugin.xml
+++ b/plugins/org.eclipse.net4j.util.ui/plugin.xml
@@ -27,13 +27,13 @@
category="org.eclipse.net4j"
id="org.eclipse.net4j.util.Net4jContainerView"
class="org.eclipse.net4j.util.internal.ui.views.Net4jContainerView"
- name="Net4j Container"
+ name="Container"
icon="icons/full/view16/container.gif"/>
<view
category="org.eclipse.net4j"
id="org.eclipse.net4j.util.Net4jIntrospectorView"
class="org.eclipse.net4j.util.internal.ui.views.Net4jIntrospectorView"
- name="Net4j Introspector"
+ name="Introspector"
icon="icons/full/view16/javabean.gif"/>
</extension>