Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Common Navigator Content Issue
Common Navigator Content Issue [message #333393] Tue, 09 December 2008 02:21 Go to next message
Erik Englund is currently offline Erik EnglundFriend
Messages: 49
Registered: July 2009
Member
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 21:12 Go to previous message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
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


Previous Topic:IStatus not found at runtime
Next Topic:Perspectives frequently resetted
Goto Forum:
  


Current Time: Sat Dec 21 16:43:01 GMT 2024

Powered by FUDForum. Page generated in 0.02546 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top