Skip to main content



      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 11:05 Go to next message
Eclipse UserFriend
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 11:18 Go to previous messageGo to next message
Eclipse UserFriend
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 11:36 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 06:33:01 EDT 2025

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

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

Back to the top