Community
Participate
Working Groups
DiagramEditorWithFlyoutPalette#createPaletteViewerProvider() returns a PaletteViewerProvider that cannot be extended. All I wanted to do was add a Keystroke listener to the palette's keyhandler, and there's no way to do that without copying the code or losing that functionality. Is it possible to put that code in a separate class and expose it? PS: Note that the fields paletteKeyHandler and paletteMouseListener, which are relevant to the anonymous PaletteViewerProvider class, are in fact declared in DiagramEditorWithFlyoutPalette.
Created attachment 48679 [details] Patch I've separated the code out in a separate, extensible class called ExtendedPaletteViewerProvider (which can be changed, of course).
Created attachment 48681 [details] Java class Whoops, attached the last piece of code without testing. I couldn't pass the graphicalViewer in the constructor of the class since the PaletteViewerProvider could be created before the graphicalViewer was. The new code fixes that problem.
Changing component
Moving to the next release, GMF 2.1.
This is no longer a problem for us, but sounds like it might be a valid request anyway.
[GMF Restructure] Bug 319140 : product GMF and component Runtime was the original product and component for this bug