Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Unwanted selection events in MultiPageEditor
Unwanted selection events in MultiPageEditor [message #34054] Mon, 21 October 2002 17:29 Go to next message
Eclipse UserFriend
Originally posted by: zacw.acaciatel.com

I'm having a problem with my MultipageEditor relating to extraneous
selection events. I have a MultiPageEditor with each page displaying a
subset of the entire model (so all viewers share the same model) and all
viewers sharing a single pallette.

The problem I'm having is this:

whenever I select an editpart on GraphicalViewer #X, it is correctly
selected (visibly) but the RootEditPart of the the original
viewer(GraphicalViewer #0) ALSO registers a selectrequest and fires.

I wonder if I'm not disconnecting something that I should be when a new
sub-page of the editor is selected...

Right now I have a lousy workaround where I check to see if the source of
the selectEvent was generated by the currently selected GraphicalViewer and
ignore the event if it wasn't. Optimally I'd like to avoid the overhead of
having multiple unwanted events firing.

Any help is appreciated and I'll provide more detail if you need it.

Thanks,
Zac
Re: Unwanted selection events in MultiPageEditor [message #34158 is a reply to message #34054] Mon, 21 October 2002 17:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

Are you using a SelectionSynchronizer?

"Zac Wolfe" <zacw@acaciatel.com> wrote in message
news:ap1bgm$3fm$1@rogue.oti.com...
> I'm having a problem with my MultipageEditor relating to extraneous
> selection events. I have a MultiPageEditor with each page displaying a
> subset of the entire model (so all viewers share the same model) and all
> viewers sharing a single pallette.
>
> The problem I'm having is this:
>
> whenever I select an editpart on GraphicalViewer #X, it is correctly
> selected (visibly) but the RootEditPart of the the original
> viewer(GraphicalViewer #0) ALSO registers a selectrequest and fires.
>
> I wonder if I'm not disconnecting something that I should be when a new
> sub-page of the editor is selected...
>
> Right now I have a lousy workaround where I check to see if the source of
> the selectEvent was generated by the currently selected GraphicalViewer
and
> ignore the event if it wasn't. Optimally I'd like to avoid the overhead
of
> having multiple unwanted events firing.
>
> Any help is appreciated and I'll provide more detail if you need it.
>
> Thanks,
> Zac
>
>
Re: Unwanted selection events in MultiPageEditor [message #34221 is a reply to message #34158] Mon, 21 October 2002 18:17 Go to previous message
Eclipse UserFriend
Originally posted by: zacw.acaciatel.com

I am-- but probably incorrectly.

More on my situation:

Each of my sub-editors in the MultiPageEditorPart is equipped with 2
graphical viewers, both of which observe the same subset of the same model
(just observing different things). Should each of these sub-editors have a
single SelectionSynchronizer for it's 2 graphicalViewers, outlineveiwers,
etc. ? Or, should there be a single SelectionSynchronizer for the entire
MultiPageEditorPart since all the viewers are observing portions of the same
parent model?

"Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
news:ap1crq$4fi$1@rogue.oti.com...
> Are you using a SelectionSynchronizer?
>
> "Zac Wolfe" <zacw@acaciatel.com> wrote in message
> news:ap1bgm$3fm$1@rogue.oti.com...
> > I'm having a problem with my MultipageEditor relating to extraneous
> > selection events. I have a MultiPageEditor with each page displaying a
> > subset of the entire model (so all viewers share the same model) and all
> > viewers sharing a single pallette.
> >
> > The problem I'm having is this:
> >
> > whenever I select an editpart on GraphicalViewer #X, it is correctly
> > selected (visibly) but the RootEditPart of the the original
> > viewer(GraphicalViewer #0) ALSO registers a selectrequest and fires.
> >
> > I wonder if I'm not disconnecting something that I should be when a new
> > sub-page of the editor is selected...
> >
> > Right now I have a lousy workaround where I check to see if the source
of
> > the selectEvent was generated by the currently selected GraphicalViewer
> and
> > ignore the event if it wasn't. Optimally I'd like to avoid the overhead
> of
> > having multiple unwanted events firing.
> >
> > Any help is appreciated and I'll provide more detail if you need it.
> >
> > Thanks,
> > Zac
> >
> >
>
>
Previous Topic:need some help, new to gef
Next Topic:Create a "Separator Figure" in the graphic Editor/figure
Goto Forum:
  


Current Time: Wed Feb 05 04:52:17 GMT 2025

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

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

Back to the top