Docking editor tabs #247
-
|
I can't seem to find the documentation and I'm kinda now to swing. I'm doing a small ide for something and I can't figure out how to do dockable tabs like IDEs have, nor I can find an example of this. Could someone help me with some hints? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
|
Do you have a specific IDE in mind, and maybe screenshots showing what you're trying to replicate? I could put together an example of showing the tabs on top like the IDE document style. |
Beta Was this translation helpful? Give feedback.
-
|
If you want to enforce the separation, there is currently no specific way to do that part. There is a feature to allow defining a loose "type" for each dockable, but that is only used when the framework does the docking for you through To replicate editor panel like that, each dockable should return true from |
Beta Was this translation helpful? Give feedback.
-
|
The order can make a big difference. Try: |
Beta Was this translation helpful? Give feedback.
-
|
I'm interested in trying this out. Do you have a working minimal case that I can try to play with? |
Beta Was this translation helpful? Give feedback.
-
|
Bit of an update here. We're getting closer! I think I have anchors working fairly smooth within the UI. Persistence is still a work in progress and doesn't appear to restore properly. |
Beta Was this translation helpful? Give feedback.




If you want to enforce the separation, there is currently no specific way to do that part. There is a feature to allow defining a loose "type" for each dockable, but that is only used when the framework does the docking for you through
Docking.display. This is probably a feature I should add at some point.To replicate editor panel like that, each dockable should return true from
isClosable(already the default in the interface) andDockableTabPreference.TOPfromgetTabPreference(this defaults toNONE, so you will have to override it).