Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Using Common Navigator Framework for EMF objects browsing
Using Common Navigator Framework for EMF objects browsing [message #329277] Wed, 18 June 2008 08:19 Go to next message
Yury Levin is currently offline Yury LevinFriend
Messages: 3
Registered: July 2009
Junior Member
I just started to move my EMF Object Browser to CNF, basing on Michael
Elder's presentation and articles. I've added filter to add only projects
of our nature and all model structure as EObject entries. It looks (and
works) fine, but I did not find answers for some questions:

1. How can I add "Workspace" entry as a parent for "Project" entries?

2. Can (and how) I use EObject "Application" entry instead of IProject
resource
entry or, backwards, I have to browse only IResource entries?

3. If it should be IResource entries and IProject entry has to be the
"base" entry, how can I remove all "obsolete" popup menu actions (for
example - use my "Delete" and "Rename" instead of standard, remove Run,
Debug and PDE Tools action groups and so on)?

4. How can I connect my EObject entries to ClearCase and add all proper
actions?

Thanks in advance,
Yury
Re: Using Common Navigator Framework for EMF objects browsing [message #329300 is a reply to message #329277] Wed, 18 June 2008 15:16 Go to previous messageGo to next message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
Hi Yury,

I answer your questions below, you also might want to look at the
current 3.4RC4 build, there is some new documentation about the CNF (in
the Platform Plugin Developers Guide) what might help you to better
understand the principals.

Francis

Yury Levin wrote:
> I just started to move my EMF Object Browser to CNF, basing on Michael
> Elder's presentation and articles. I've added filter to add only
> projects of our nature and all model structure as EObject entries. It
> looks (and works) fine, but I did not find answers for some questions:
>
> 1. How can I add "Workspace" entry as a parent for "Project" entries?
I'm not sure what you intend by this. The workspace resource
(IWorkspace) is in fact the root of the tree for the CN when it is used
with resources. Can you explain further what you are interested in?
>
> 2. Can (and how) I use EObject "Application" entry instead of IProject
> resource
> entry or, backwards, I have to browse only IResource entries?
As far as which object is actually in the CommonViewer, if you are using
resources it should be the IProject. However, you can make a content
provider (ITreeContentProvider) that looks up the corresponding EObject
application entry and does what you want with that.
>
> 3. If it should be IResource entries and IProject entry has to be the
> "base" entry, how can I remove all "obsolete" popup menu actions (for
> example - use my "Delete" and "Rename" instead of standard, remove Run,
> Debug and PDE Tools action groups and so on)?
In your viewer action binding you are probably including all of the
actions from org.eclipse.ui.resources. You can be more selective about
which of these actions you include and if you want your own, replace
when with your own implementation. Look at the code in the
org.eclipse.ui.navigator resources plugin for how these are implemented.
>
> 4. How can I connect my EObject entries to ClearCase and add all proper
> actions?
This is an issue for the Team support. I'm not that familiar with the
details of how that works (you should be able to just get the Team
actions from the CN by using the standard resource actions described
above) -- how the Team support is hooked to ClearCase I don't know. I
suggest you look at the Team support documentation.
>
> Thanks in advance,
> Yury
>
>


--
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


Re: Using Common Navigator Framework for EMF objects browsing [message #329332 is a reply to message #329300] Thu, 19 June 2008 13:46 Go to previous messageGo to next message
Yury Levin is currently offline Yury LevinFriend
Messages: 3
Registered: July 2009
Junior Member
Hi Francis,
Thank a lot for your fast reply.
I've opened 3.4RC4 new documentation and fixed all my CNF problem, except
ClearCase connection.

Thanks and Best Regards,
Yury
Re: Using Common Navigator Framework for EMF objects browsing [message #329469 is a reply to message #329300] Wed, 25 June 2008 13:59 Go to previous message
Yury Levin is currently offline Yury LevinFriend
Messages: 3
Registered: July 2009
Junior Member
Hi Francis,
Next question:
How to implement "Link open editors with content of the Navigator"
action?

Thanks and Best Regards,
Yury
Re: Using Common Navigator Framework for EMF objects browsing [message #329478 is a reply to message #329469] Wed, 25 June 2008 13:49 Go to previous message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
You need to implement an ILinkHelper.

Yury Levin wrote:
> Hi Francis,
> Next question:
> How to implement "Link open editors with content of the Navigator"
> action?
>
> Thanks and Best Regards,
> Yury
>
>


Previous Topic:decorator on tableviewer ...
Next Topic:Dynamically changing state of menus and toolbuttons
Goto Forum:
  


Current Time: Thu Nov 21 12:24:18 GMT 2024

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

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

Back to the top