Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Open resource set for view instead of editor
Open resource set for view instead of editor [message #468223] Tue, 04 August 2009 15:05 Go to next message
Greg Mising name is currently offline Greg Mising nameFriend
Messages: 47
Registered: July 2009
Member
Instead of opening a resource set into an editor I'd like to open it for a
specific view with a tree viewer. Then I'd like to be able to launch an
editor for each tree node (by double clicking it for example). I could do
this using RCP methods but I'd really like to keep my code inline with EMF
best practices and I can't figure out how to take the code from the
generated editor and apply it to a view.

Greg
Re: Open resource set for view instead of editor [message #468236 is a reply to message #468223] Tue, 04 August 2009 15:18 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30692
Registered: July 2009
Senior Member
Greg,

Will your view support modification of what's being viewed or is it
strictly a read only viewer? In the latter case, just create a new
ResourceSetImpl and load your data into that. The editor shows how to
set up a tree viewer with content and label providers as well as the
adapter factory that drives them. If you need full editing, you'll want
to create an adapter factory editing domain...


Greg wrote:
> Instead of opening a resource set into an editor I'd like to open it
> for a specific view with a tree viewer. Then I'd like to be able to
> launch an editor for each tree node (by double clicking it for
> example). I could do this using RCP methods but I'd really like to
> keep my code inline with EMF best practices and I can't figure out how
> to take the code from the generated editor and apply it to a view.
>
> Greg
>
Re: Open resource set for view instead of editor [message #468237 is a reply to message #468236] Tue, 04 August 2009 15:36 Go to previous message
Greg Mising name is currently offline Greg Mising nameFriend
Messages: 47
Registered: July 2009
Member
Hi Ed. I do need to support editing from the tree viewer. I'll look into
your suggestion. Thanks a lot for your quick reply!

Greg
Previous Topic:copy ResourceSet containing metamodel and model
Next Topic:Re: Metamodeling
Goto Forum:
  


Current Time: Thu Dec 12 22:55:17 GMT 2019

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

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

Back to the top