-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PoC - FlyoutPaletteComposite with custom area #692
base: master
Are you sure you want to change the base?
PoC - FlyoutPaletteComposite with custom area #692
Conversation
c6dafa9
to
edd5aa0
Compare
edd5aa0
to
2ec6a8c
Compare
Hi Patrick, I got a chance to try this out and in effect compare it to our existing implementation, where we render an 'overview ruler' between the palette and the main editor window. Some observations / differences in behaviour:
I'm starting to think that the behaviours we have to date are making this more 'bespoke' than a general 'custom area' and that the behaviours are very tied to the fact that the component represents an overview ruler, which is always rendered on the right hand side, regardless of palette dock position / undocked state. I'm not sure where that leaves us as such, but perhaps in the direction of attempting to add specific support for provision of an overview ruler - but I'm not sure that you / GEF team want to go down that route. If it is useful at all, I can share the layout algorithm I have in our bespoke implementation (reflecting the behaviours I mentioned above). It is essentially the contents of the layout(boolean) method and the two private layoutEast and layoutWest type methods. |
But in that case I have to agree with @azoitl... To me, this sounds like you want to have the ruler be part of the viewer and not the palette. Especially when e.g. the ruler should remain when the palette is detached. |
Yes I think you are right, I added a comment in the other thread, pasting it here now: I guess with our current bespoke implementation we are 'piggy-backing' on the palette composite to get an overview ruler to appear, but I am starting to think now that perhaps the ability to create a custom area (ie. overview ruler) which visually appears between the editor area and the palette, could perhaps come from the class above - which creates the palette composite, ie 'GraphicalEditorWithFlyoutPalette' or something along those lines. Whilst we use the 'GraphicalEditorWithFlyoutPalette' code as a basis for our own version of that class, do you think it would be useful to have a change within 'GraphicalEditorWithFlyoutPalette' itself, which provides a means to have an overview ruler component placed between the editor view and the palette composite? I have a hunch that this approach may have been attempted many years ago on our side, but for some reason there was issues with it, but I can't recall now what those issues were, and perhaps they are no longer relevant. |
No. As the documentation of the My suggestion is to do something similar to what is done in the LogicEditor; To override the Lines 700 to 705 in a0edaa8
Lines 577 to 580 in a0edaa8
In the example those rulers are put to the northern and western side of the editor but in your own implementation, you are free to put them wherever you want. |
Thanks Patrick, that sounds like the way forward with this stuff and sorry for all the time spent thus far when it looks like the overview ruler should never have been in the palette to begin with! I will try the approach suggested above when I get time. |
No description provided.