Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Common Navigator Framework - needs samples
Common Navigator Framework - needs samples [message #303688] Fri, 19 May 2006 07:15 Go to next message
Eclipse UserFriend
Originally posted by: lars.nospam.org

Hi forum,

I attended the Common Navigator Framework session at EclipseCon2006 and was
impressed.
What I really would like is some good samples, or is the best way to dig
into the source for WTP, DSP and CDT?

BR

Lars
Re: Common Navigator Framework - needs samples [message #303706 is a reply to message #303688] Fri, 19 May 2006 14:14 Go to previous messageGo to next message
Michael D. Elder is currently offline Michael D. ElderFriend
Messages: 62
Registered: July 2009
Member
Hi LO,

At this point, the best samples are the Resource extension
(org.eclipse.ui.navigator.resources) and the Test extension
(org.eclipse.ui.tests.navigator) both available in the Eclipse platform
CVS repo. There has been much interest in more formal, documented
samples so I'll be working on that and hope to have something out in a
few weeks.

-MDE.

LO wrote:
> Hi forum,
>
> I attended the Common Navigator Framework session at EclipseCon2006 and was
> impressed.
> What I really would like is some good samples, or is the best way to dig
> into the source for WTP, DSP and CDT?
>
> BR
>
> Lars
>
>
>
>
>
>
>
Re: Common Navigator Framework - needs samples [message #303710 is a reply to message #303688] Fri, 19 May 2006 14:35 Go to previous messageGo to next message
Michael Valenta is currently offline Michael ValentaFriend
Messages: 560
Registered: July 2009
Senior Member
Lars,

I am working on a simple example in the
org.eclipse.team.examples.filesystem plug-in. It's currently not in any
RC* build but you could load the plug-in from the repository if you
wanted to look at it. It's not quite completed but it does illustrate
the basic CN features (Content, Label and Action providers as well as
overriding the resource content extension using pipelining).

Michael

LO wrote:
> Hi forum,
>
> I attended the Common Navigator Framework session at EclipseCon2006 and was
> impressed.
> What I really would like is some good samples, or is the best way to dig
> into the source for WTP, DSP and CDT?
>
> BR
>
> Lars
>
>
>
>
>
>
>
Re: Common Navigator Framework - needs samples [message #303722 is a reply to message #303706] Fri, 19 May 2006 21:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lars.nospam.org

Hi Michael,

When I came back home from EclipseCon I was eager (you did a good
presentation) to throw away our "home-made" navigator
and replace it with the CommonNavigator approach solution. But not with
sucess....

W have some really basic things that I want to achive:
- Only show projects that has our specific nature
- Filter out all files with a leading dot (e.g. .project)
- Supply new, delete and all common resource activites
- Be VCS aware (e.g. ClearCase)

Is this something that is feasable for the CommonNavigator framework with
little or much coding?

BR

Lars






"Michael D. Elder" <mdelder@us.ibm.com> skrev i meddelandet
news:e4kjt0$cqa$1@utils.eclipse.org...
> Hi LO,
>
> At this point, the best samples are the Resource extension
> (org.eclipse.ui.navigator.resources) and the Test extension
> (org.eclipse.ui.tests.navigator) both available in the Eclipse platform
> CVS repo. There has been much interest in more formal, documented samples
> so I'll be working on that and hope to have something out in a few weeks.
>
> -MDE.
>
> LO wrote:
>> Hi forum,
>>
>> I attended the Common Navigator Framework session at EclipseCon2006 and
>> was impressed.
>> What I really would like is some good samples, or is the best way to dig
>> into the source for WTP, DSP and CDT?
>>
>> BR
>>
>> Lars
>>
>>
>>
>>
>>
>>
Re: Common Navigator Framework - needs samples [message #303731 is a reply to message #303722] Sat, 20 May 2006 21:44 Go to previous messageGo to next message
Michael D. Elder is currently offline Michael D. ElderFriend
Messages: 62
Registered: July 2009
Member
Hi LO,

Try
http://scribbledideas.blogspot.com/2006/05/building-common-n avigator-based-viewer.html
. You can take care of the first three items with no coding at all.
The last one will depend on your repository provider. If they define
Object Contributions for IResource elements, you should be fine.
Otherwise, you may need to define an extension (either
org.eclipse.ui.popupMenus or
org.eclipse.ui.navigator.navigatorContent:actionProvider) to add those
menu options. Assuming you already have the actions, this shouldn't be
difficult.

-MDE.

LO wrote:
> Hi Michael,
>
> When I came back home from EclipseCon I was eager (you did a good
> presentation) to throw away our "home-made" navigator
> and replace it with the CommonNavigator approach solution. But not with
> sucess....
>
> W have some really basic things that I want to achive:
> - Only show projects that has our specific nature
> - Filter out all files with a leading dot (e.g. .project)
> - Supply new, delete and all common resource activites
> - Be VCS aware (e.g. ClearCase)
>
> Is this something that is feasable for the CommonNavigator framework with
> little or much coding?
>
> BR
>
> Lars
>
>
>
>
>
>
> "Michael D. Elder" <mdelder@us.ibm.com> skrev i meddelandet
> news:e4kjt0$cqa$1@utils.eclipse.org...
>> Hi LO,
>>
>> At this point, the best samples are the Resource extension
>> (org.eclipse.ui.navigator.resources) and the Test extension
>> (org.eclipse.ui.tests.navigator) both available in the Eclipse platform
>> CVS repo. There has been much interest in more formal, documented samples
>> so I'll be working on that and hope to have something out in a few weeks.
>>
>> -MDE.
>>
>> LO wrote:
>>> Hi forum,
>>>
>>> I attended the Common Navigator Framework session at EclipseCon2006 and
>>> was impressed.
>>> What I really would like is some good samples, or is the best way to dig
>>> into the source for WTP, DSP and CDT?
>>>
>>> BR
>>>
>>> Lars
>>>
>>>
>>>
>>>
>>>
>>>
>
Re: Common Navigator Framework - needs samples [message #303800 is a reply to message #303731] Tue, 23 May 2006 15:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lars.nospam.org

Hi Michael,

Your blogg entry about common navigator (specially part II) was exactly what
I needed.

Thanx!

/Lars




"Michael D. Elder" <mdelder@us.ibm.com> skrev i meddelandet
news:e4o2jo$tkc$1@utils.eclipse.org...
> Hi LO,
>
> Try
> http://scribbledideas.blogspot.com/2006/05/building-common-n avigator-based-viewer.html .
> You can take care of the first three items with no coding at all. The last
> one will depend on your repository provider. If they define Object
> Contributions for IResource elements, you should be fine. Otherwise, you
> may need to define an extension (either org.eclipse.ui.popupMenus or
> org.eclipse.ui.navigator.navigatorContent:actionProvider) to add those
> menu options. Assuming you already have the actions, this shouldn't be
> difficult.
>
> -MDE.
>
> LO wrote:
>> Hi Michael,
>>
>> When I came back home from EclipseCon I was eager (you did a good
>> presentation) to throw away our "home-made" navigator
>> and replace it with the CommonNavigator approach solution. But not with
>> sucess....
>>
>> W have some really basic things that I want to achive:
>> - Only show projects that has our specific nature
>> - Filter out all files with a leading dot (e.g. .project)
>> - Supply new, delete and all common resource activites
>> - Be VCS aware (e.g. ClearCase)
>>
>> Is this something that is feasable for the CommonNavigator framework with
>> little or much coding?
>>
>> BR
>>
>> Lars
>>
>>
>>
>>
>>
>>
>> "Michael D. Elder" <mdelder@us.ibm.com> skrev i meddelandet
>> news:e4kjt0$cqa$1@utils.eclipse.org...
>>> Hi LO,
>>>
>>> At this point, the best samples are the Resource extension
>>> (org.eclipse.ui.navigator.resources) and the Test extension
>>> (org.eclipse.ui.tests.navigator) both available in the Eclipse platform
>>> CVS repo. There has been much interest in more formal, documented
>>> samples so I'll be working on that and hope to have something out in a
>>> few weeks.
>>>
>>> -MDE.
>>>
>>> LO wrote:
>>>> Hi forum,
>>>>
>>>> I attended the Common Navigator Framework session at EclipseCon2006 and
>>>> was impressed.
>>>> What I really would like is some good samples, or is the best way to
>>>> dig into the source for WTP, DSP and CDT?
>>>>
>>>> BR
>>>>
>>>> Lars
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>
Re: Common Navigator Framework - needs samples [message #304014 is a reply to message #303800] Sun, 28 May 2006 22:04 Go to previous messageGo to next message
Michael D. Elder is currently offline Michael D. ElderFriend
Messages: 62
Registered: July 2009
Member
I've posted a request for feedback from the community to prioritize
upcoming examples. Please respond to the blog at
http://scribbledideas.blogspot.com/ .

-MDE.

LO wrote:
> Hi Michael,
>
> Your blogg entry about common navigator (specially part II) was exactly what
> I needed.
>
> Thanx!
>
> /Lars
>
>
>
>
> "Michael D. Elder" <mdelder@us.ibm.com> skrev i meddelandet
> news:e4o2jo$tkc$1@utils.eclipse.org...
>> Hi LO,
>>
>> Try
>> http://scribbledideas.blogspot.com/2006/05/building-common-n avigator-based-viewer.html .
>> You can take care of the first three items with no coding at all. The last
>> one will depend on your repository provider. If they define Object
>> Contributions for IResource elements, you should be fine. Otherwise, you
>> may need to define an extension (either org.eclipse.ui.popupMenus or
>> org.eclipse.ui.navigator.navigatorContent:actionProvider) to add those
>> menu options. Assuming you already have the actions, this shouldn't be
>> difficult.
>>
>> -MDE.
>>
>> LO wrote:
>>> Hi Michael,
>>>
>>> When I came back home from EclipseCon I was eager (you did a good
>>> presentation) to throw away our "home-made" navigator
>>> and replace it with the CommonNavigator approach solution. But not with
>>> sucess....
>>>
>>> W have some really basic things that I want to achive:
>>> - Only show projects that has our specific nature
>>> - Filter out all files with a leading dot (e.g. .project)
>>> - Supply new, delete and all common resource activites
>>> - Be VCS aware (e.g. ClearCase)
>>>
>>> Is this something that is feasable for the CommonNavigator framework with
>>> little or much coding?
>>>
>>> BR
>>>
>>> Lars
>>>
>>>
>>>
>>>
>>>
>>>
>>> "Michael D. Elder" <mdelder@us.ibm.com> skrev i meddelandet
>>> news:e4kjt0$cqa$1@utils.eclipse.org...
>>>> Hi LO,
>>>>
>>>> At this point, the best samples are the Resource extension
>>>> (org.eclipse.ui.navigator.resources) and the Test extension
>>>> (org.eclipse.ui.tests.navigator) both available in the Eclipse platform
>>>> CVS repo. There has been much interest in more formal, documented
>>>> samples so I'll be working on that and hope to have something out in a
>>>> few weeks.
>>>>
>>>> -MDE.
>>>>
>>>> LO wrote:
>>>>> Hi forum,
>>>>>
>>>>> I attended the Common Navigator Framework session at EclipseCon2006 and
>>>>> was impressed.
>>>>> What I really would like is some good samples, or is the best way to
>>>>> dig into the source for WTP, DSP and CDT?
>>>>>
>>>>> BR
>>>>>
>>>>> Lars
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>
>
Re: Common Navigator Framework - needs samples [message #728552 is a reply to message #304014] Fri, 23 September 2011 13:20 Go to previous messageGo to next message
Baha Elkassaby is currently offline Baha ElkassabyFriend
Messages: 2
Registered: September 2011
Junior Member
Hello Michael,

I would like first to thank you for your great blog about CNF in particular. Having currently a project where I have to build a custom navigator, your blog was among the most important resource I used. But I guess this is no news to you Smile

I wanted to ask you a quick question following you article entitled: "Building a Common Navigator based viewer, Part II: Adding Content"
I have a scenario where I have to click on a specific type of file and be able to navigate within this file type (like in your example with the .properties file that shows a list of sub items corresponding to the .properties file structure and data model). Some of these files have however more than one level of sub items and I would like to be able to open their tree structure under the file.

to sum it up:
your example is
folder
--file.properties
----item1 (key=value)
----item2 (key=value)
...

what I would like to do
folder
--file.aformat
----item1
------subitem11 (key=value)
------subitem12
--------subitem111 (key=value)
------subitem13 (key=value)
----item2
...

I hope it made sense to you; so with your knowledge of CNF, do you think it is possible to implement such a thing using CNF, or would it be better to look to other frameworks (the modeling framework for instance?)

Thank you in advance for any response.

Kind regards.

baha
Re: Common Navigator Framework - needs samples [message #757757 is a reply to message #728552] Mon, 21 November 2011 14:03 Go to previous messageGo to next message
Mark Walters is currently offline Mark WaltersFriend
Messages: 25
Registered: June 2011
Junior Member
Hi Baha,
this is just extending Michael's example - is it not obvious from the code in the blog?
You just have to build the tree structure yourself - may the file property items parents and then add children for each subitem.

Ta,
Mark.
Re: Common Navigator Framework - needs samples [message #757759 is a reply to message #757757] Mon, 21 November 2011 14:15 Go to previous message
Baha Elkassaby is currently offline Baha ElkassabyFriend
Messages: 2
Registered: September 2011
Junior Member
Hello Mark,
thanks for your reply! I actually figured that out myself. My main problem was my relative short experience with eclipse rcp projects. Wink
So yes, I actually built my own tree structure then populated it and modified a bit the properties content provider example.
cheers!
baha
Previous Topic:Open View from a Dialog possible
Next Topic:Re use the "Tracing" Tab
Goto Forum:
  


Current Time: Thu Apr 18 11:47:52 GMT 2024

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

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

Back to the top