Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [CommonNavigator] setting up initial input accross many providers
[CommonNavigator] setting up initial input accross many providers [message #336074] Tue, 19 May 2009 18:11 Go to next message
Eclipse UserFriend
Originally posted by: aczerwonka.3esi.com

Not sure that I'm "getting it".

I'm wanting to setup the common navigator for central navigation of our RCP
product. I have threee separate clients (internal development teams) for
this central component. I've gone through the contentBinding, actions...
all that jazz. All good. Basically each group can define their own content
extensions. Perfect. Where I get confused in how each group can set their
own initial input into their own models. What I'd like to see if that each
group would contribute one root folder that they could their content.
Something like the following:

+--Group 1 Root
-- Group 1 Content
+--Group 2 Root
-- Group 2 Content
+--Group 3 Root
-- Group 3 Content

I don't want Group 1, 2 ro 3 knowing anything about eachother. How can each
group set their initial content? Is there an example out there? Right now
I've extended CommonNavigator with my own and overridden getInitialInput(),
but that binds everyone together. Is there an example out there somewhere I
can steal from?

--
andy
Re: [CommonNavigator] setting up initial input accross many providers [message #336075 is a reply to message #336074] Tue, 19 May 2009 18:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aczerwonka.3esi.com

BTW, I'm just wanting support for the first use case as described here:
http://scribbledideas.blogspot.com/2006/06/what-does-common- navigator-framework.html

Saying that, in this case, there is only one input, the file system.


"Andy Czerwonka" <aczerwonka@3esi.com> wrote in message
news:guusp6$fpu$1@build.eclipse.org...
> Not sure that I'm "getting it".
>
> I'm wanting to setup the common navigator for central navigation of our
> RCP product. I have threee separate clients (internal development teams)
> for this central component. I've gone through the contentBinding,
> actions... all that jazz. All good. Basically each group can define
> their own content extensions. Perfect. Where I get confused in how each
> group can set their own initial input into their own models. What I'd
> like to see if that each group would contribute one root folder that they
> could their content. Something like the following:
>
> +--Group 1 Root
> -- Group 1 Content
> +--Group 2 Root
> -- Group 2 Content
> +--Group 3 Root
> -- Group 3 Content
>
> I don't want Group 1, 2 ro 3 knowing anything about eachother. How can
> each group set their initial content? Is there an example out there?
> Right now I've extended CommonNavigator with my own and overridden
> getInitialInput(), but that binds everyone together. Is there an example
> out there somewhere I can steal from?
>
> --
> andy
>
Re: [CommonNavigator] setting up initial input accross many providers [message #336076 is a reply to message #336074] Tue, 19 May 2009 20:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aczerwonka.3esi.com

I found this two-year-old comment basically describing my issue:
http://rcpquickstart.com/2007/04/25/common-navigator-tutoria l-1-hello-world/#comment-7

Is this use case still not resolved?


"Andy Czerwonka" <aczerwonka@3esi.com> wrote in message
news:guusp6$fpu$1@build.eclipse.org...
> Not sure that I'm "getting it".
>
> I'm wanting to setup the common navigator for central navigation of our
> RCP product. I have threee separate clients (internal development teams)
> for this central component. I've gone through the contentBinding,
> actions... all that jazz. All good. Basically each group can define
> their own content extensions. Perfect. Where I get confused in how each
> group can set their own initial input into their own models. What I'd
> like to see if that each group would contribute one root folder that they
> could their content. Something like the following:
>
> +--Group 1 Root
> -- Group 1 Content
> +--Group 2 Root
> -- Group 2 Content
> +--Group 3 Root
> -- Group 3 Content
>
> I don't want Group 1, 2 ro 3 knowing anything about eachother. How can
> each group set their initial content? Is there an example out there?
> Right now I've extended CommonNavigator with my own and overridden
> getInitialInput(), but that binds everyone together. Is there an example
> out there somewhere I can steal from?
>
> --
> andy
>
Re: [CommonNavigator] setting up initial input accross many providers [message #336134 is a reply to message #336076] Mon, 25 May 2009 17:26 Go to previous message
No real name is currently offline No real nameFriend
Messages: 113
Registered: July 2009
Senior Member
I think you just need to define your own toplevel object that each
"root" adds to. You can either define a root object that everyone
derives from (if all your roots are similar in some way) and some type
of registration/add-a-root mechanism or use something else, such as an
eclipse extension, to define that root object. Your RCP would then just
access that extension to grab all the roots defined and add them to the
list that the toplevel object maintains.

>>
>> +--Group 1 Root
>> -- Group 1 Content
>> +--Group 2 Root
>> -- Group 2 Content
>> +--Group 3 Root
>> -- Group 3 Content
>>
>> I don't want Group 1, 2 ro 3 knowing anything about eachother. How can
>> each group set their initial content? Is there an example out there?
>> Right now I've extended CommonNavigator with my own and overridden
>> getInitialInput(), but that binds everyone together. Is there an example
>> out there somewhere I can steal from?
>>
>> --
>> andy
>>
>
>
Previous Topic:Strange behaviour of an open shell (needs a mouse click twice before noticing any event on the shell
Next Topic:ERROR: ‘Not implmented in this version’ for xml transfom.-Please help
Goto Forum:
  


Current Time: Thu Apr 25 06:16:13 GMT 2024

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

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

Back to the top