Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2010-09-23 21:06:04 +0000
committerrelves2010-09-23 21:06:04 +0000
commit5b11f635b82228a31bfc47670077fc6ff27e2b7e (patch)
tree7918516fe5e6e14947a08a35e9be612044a67349 /org.eclipse.mylyn.oslc.ui/src
parent31eba7ce83c018f4d9d73eea88c93e0a0ff39b99 (diff)
downloadorg.eclipse.mylyn.tasks-5b11f635b82228a31bfc47670077fc6ff27e2b7e.tar.gz
org.eclipse.mylyn.tasks-5b11f635b82228a31bfc47670077fc6ff27e2b7e.tar.xz
org.eclipse.mylyn.tasks-5b11f635b82228a31bfc47670077fc6ff27e2b7e.zip
NEW - bug 324257: [oslc] fetching children of null appearing during service discovery
https://bugs.eclipse.org/bugs/show_bug.cgi?id=324257
Diffstat (limited to 'org.eclipse.mylyn.oslc.ui/src')
-rw-r--r--org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceDiscoveryProvider.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceDiscoveryProvider.java b/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceDiscoveryProvider.java
index fff36ea63..4abc86862 100644
--- a/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceDiscoveryProvider.java
+++ b/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceDiscoveryProvider.java
@@ -149,7 +149,12 @@ public class OslcServiceDiscoveryProvider implements ITreeContentProvider {
}
public String getLabel(Object o) {
- return element.toString();
+ if (element instanceof OslcServiceProvider) {
+ return ((OslcServiceProvider) element).getName();
+ } else if (element instanceof OslcServiceDescriptor) {
+ return ((OslcServiceDescriptor) element).getDescription();
+ }
+ return ""; //$NON-NLS-1$
}
public Object getParent(Object o) {

Back to the top