Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Separate GEF view with separate selection
Separate GEF view with separate selection [message #234221] Wed, 16 May 2007 12:17 Go to next message
Eclipse UserFriend
Originally posted by: msched.msched.no-ip.org

Hi!

We're writing a graphical editor with outline view which basically shows
some text and images (roughly like a word processor). In addition to
these "content elements", our model also includes styles, which are
displayed in a separate view, somewhat similar to the outline view. The
style view is also GEF-based, i.e. we take the model instances from our
model tree and create matching edit parts which contribute to the tree
control in the view.

Our problem is that this view should have a selection independent from that
of the "main editor" (i.e. graphical viewer and outline view). We have to
be able to select content in the editor and at the same time select a style
in the style view. All normal editor actions should always use the editor's
selection, while the view's actions should refer to the view's own actions.

Also, we will have an "apply style" action which is basically a
SelectionAction in the main editor, but also aware of the selection in the
style view. I expect we might have to manually write the code to access the
style view in this case, but how should we go about handling the style
view's separate selection in the first place? For example, even when we
don't hook up the style view to the edit domain's selection synchronizer,
our editor actions still get updated when the focus switches to the style
view (and the style view's root edit part is reported as the current
selection, whereas we need the actions to still be tied to the main
editor's selection).

Thanks in advance,
Marian.
Re: Separate GEF view with separate selection [message #234400 is a reply to message #234221] Tue, 22 May 2007 18:12 Go to previous message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

Since, your styles viewer is disconnected from the selection synchronizer
the only thing I can suggest is debug #fireSelectionChanged() from your
styles viewer and check who is listening to selection events on the style
viewer and how these events are handled.

Cheers,
Alex
Previous Topic:Chopbox anchor feedback
Next Topic:wizard during command execution
Goto Forum:
  


Current Time: Fri Aug 12 21:47:48 GMT 2022

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

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

Back to the top