| 
| Using Common Navigator Framework for EMF objects browsing [message #329277] | Wed, 18 June 2008 04:19  |  | 
| Eclipse User  |  |  |  |  | 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 11:16   |  | 
| Eclipse User  |  |  |  |  | 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
 |  |  |  | 
|  | 
|  | 
|  | 
Powered by 
FUDForum. Page generated in 7.46364 seconds