[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Another PropertySheetViewer bug
|
<Randy_Giffen@xxxxxxx> wrote in message news:9nloru$cks$1@xxxxxxxxxxxxxxxx
> If the problem is that the undo/redo accelerators are always being sent to
> the active cell editor then you could implement your own
> CellEditorActionHandler to ensure that these accelerators are instead
> targeted to the specific actions on your local toolbar.
If you mean the CellEditActionHandler in PropertySheetPage, that isn't
possible. The field is private and has no setters or getters. We could
copy it like PropertySheetEntry, but then PropertySheetViewer isn't public,
so we'd have to copy it too.
> Since your editor is providing the page, perhaps you could explicitly
> obtain the editor selection and refresh the page at the end of your
> undo/redo action.
After talking with other WSAD developers, I found out that your suggestion
is being implemented quite frequently. Many Editors are setting up private
connections to their PropertySheet page (and other selection-sensitive
views) and ignoring the SelectionService's notifications.