Community
Participate
Working Groups
Created attachment 278146 [details] How VScode does it When no editors are open the user currently sees a big empty space on his screen. We could use this area to provide some guiding / onboarding text. See how Visual Studio code does it. We could also show the product's icon there. The question is what exactly would we show there? This list must somehow be extendable by the installed plugins. And from a technical point of view: - How can we draw into that area? Do we need an SWT enhancement here? I think this would nicely complement the work done in bug 543746.
+1
I think it's a good idea. +1
I don't have any clue how to even start looking around in today's code. Questions are: - Where is the rendering code of the empty editor area? Is this just an empty CTabFolder? - Does the editor area have a corresponding element in the E4 application model? - ... Can anybody give some pointers where I should look into and where I can start to debug / play around?
IIRC AreaRenderer is responsible for rendering the MArea.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
I love how Visual Studio Code does this. Please reopen if you have plans to work on this.
(In reply to Lars Vogel from comment #6) > I love how Visual Studio Code does this. Please reopen if you have plans to > work on this. I would need some hints how to "draw" into the empty editor area to start working on this.
Created attachment 286110 [details] Writing in the empty editor area I made a little plugin to get you started. 1. Register a model addon 2. Find the editor area (CTabFolder) 3. Add a paint listener to the CTabFolder 4. Draw something when it has no items
Created attachment 286187 [details] First prototype (In reply to Wim Jongman from comment #8) > I made a little plugin to get you started. Thank you for that. Attached you see my first prototype. Btw. can somebody tell me how I can format the keySequence out of the MKeyBinding in the same way as it's formatted e.g. in the menu items?
(In reply to Matthias Becker from comment #9) > Attached you see my first prototype. Very nice.
Matthias, can you convert your prototype to a Gerrit?
(In reply to Lars Vogel from comment #11) > Matthias, can you convert your prototype to a Gerrit? Ping. Would be really nice to have this in for 4.21.
(In reply to Lars Vogel from comment #12) > (In reply to Lars Vogel from comment #11) > > Matthias, can you convert your prototype to a Gerrit? > > Ping. Would be really nice to have this in for 4.21. I will try my best.
(In reply to Matthias Becker from comment #13) > I will try my best. Happy to help / test if you push the initial state to Gerrit.
Let's aim for 4.22 M1. There is not enough time to do it proper for 4.21.
Matthias, is this something you could work on in 4.22?
I tried a little bit and checked what could be done. The editor area is a CTabFolder. In Matthias' prototype he draws an icon and some shortcuts (commands) using the GraphicalContext. I wonder whether we could have kind of onboarding capabilities in the CTabFolder itself, maybe even without using the GC then. I can imagine a composite you pass to the CTabFolder with all the content and layout(data) you like. The CTabFolder (if not CTabItems are created yet), shows this "onboarding composite" then. Would that be possible? A question to the SWT experts! What has to be done then?
Created attachment 287305 [details] CTabFolder subclass
Created attachment 287306 [details] Snippet using the new CTabFolder
(In reply to Marcus Höpfner from comment #17) > > I can imagine a composite you pass to the CTabFolder with all the content > and layout(data) you like. The CTabFolder (if not CTabItems are created > yet), shows this "onboarding composite" then. That is a great idea. I took a stab at it and it turns out to be very simple. Please try the attached MyCTabFolder and SnippetCTabFolderWithOnboarding.
Marcus, can you help with this bug?
Yes I'll do. I'll start mid of November with this.
Too late for 4.22.
I wanted to incorporate Wim's CTabFolder implementation. Unfortunately I didn't find the e4 model of the workbench. In which plugin is it located?
(In reply to Marcus Höpfner from comment #24) > I wanted to incorporate Wim's CTabFolder implementation. > Unfortunately I didn't find the e4 model of the workbench. > In which plugin is it located? Marcus, do you still need help with that? I tried to answer that on the mailing list.
(In reply to Lars Vogel from comment #25) > (In reply to Marcus Höpfner from comment #24) > > I wanted to incorporate Wim's CTabFolder implementation. > > Unfortunately I didn't find the e4 model of the workbench. > > In which plugin is it located? > > Marcus, do you still need help with that? I tried to answer that on the > mailing list. No thanks (at least not yet). Business kept me busy. I'll try it out next week. Thanks for the answer.
Moved to https://github.com/eclipse-platform/eclipse.platform.ui/issues/633