Unwanted selection events in MultiPageEditor [message #34054] |
Mon, 21 October 2002 17:29 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03649 seconds