| 
| Common Navigator Content Issue [message #333393] | Mon, 08 December 2008 21:21  |  | 
| Eclipse User  |  |  |  |  | I have a Common Navigator Content Provider.  For get Elements I return back my model which implements a java.util.Collection, specifically
 extends Arraylist.
 
 A second object returned in the same returned array also extends
 ArrayList.
 
 However, when I go to view the tree only one object shows up.  I tried a
 second experiement where I returned new Object[]{new ArrayList(), new
 Vector()).  I got only one error complaining about a missing label
 provider.
 
 What am I doing wrong here?  I would expect to be able to return many
 types of collections in the same return value.
 |  |  |  | 
| 
| Re: Common Navigator Content Issue [message #333530 is a reply to message #333393] | Tue, 16 December 2008 16:12  |  | 
| Eclipse User  |  |  |  |  | getElements() returns an array of objects, each member of which is put into the underlying SWT tree.  I don't understand why your model objects
 extend ArrayList and what you are trying to accomplish there.  Normally,
 model objects are just normal objects which will appear in the navigator
 tree.
 
 Can you give some more background about what you are trying to do?
 
 Erik wrote:
 > I have a Common Navigator Content Provider.  For get Elements I return
 > back my model which implements a java.util.Collection, specifically
 > extends Arraylist.
 >
 > A second object returned in the same returned array also extends ArrayList.
 > However, when I go to view the tree only one object shows up.  I tried a
 > second experiement where I returned new Object[]{new ArrayList(), new
 > Vector()).  I got only one error complaining about a missing label
 > provider.
 > What am I doing wrong here?  I would expect to be able to return many
 > types of collections in the same return value.
 >
 
 
 --
 *new* Common Navigator Framework section in:
 3.4RC4 Platform Plugin Developer Guide (Programmer's Guide)
 http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/cnf.htm
 http://dev.eclipse.org/blogs/francis
 http://wiki.eclipse.org/Common_Navigator_Framework
 http://wiki.eclipse.org/Common_Navigator_Framework_Use_Cases
 
 
 You have brains in your head.
 You have feet in your shoes.
 - Dr Seuss, Oh the Places You'll Go
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.46606 seconds