Community
Participate
Working Groups
Currently, workbench placeholders are implemented using a special subclass of LayoutPart. This is problematic because their public interface does not behave the same as other LayoutParts, requiring instanceof checks wherever any LayoutPart is used. Placeholders should be implemented using a separate data structure from the objects used to display real parts.
Created attachment 14271 [details] org.eclipse.ui.workbench I'm just going to post these here now where they're easily found. There are no known bugs right now, but state saving is still less than ideal. Savestate adds placeholders for visible views. I've come to the conclusion that with this implementation it has to be this way. The way it was previously done was that restorestate adds placeholders instead. We could do this too but it means using different tags for placeholders and views, and in the end, we still need to create placeholders that weren't there before in order to show the view. Otherwise, this patch does solve a lot of bugs, and chops a lot of code out of PerspectiveHelper.
Created attachment 14272 [details] org.eclipse.ui.tests Test suites for placeholders. Even if the new style placeholders are too high risk to implement these tests should prove useful. Note that several of these tests rightly fail with old style placeholders.
Sorry I didn't get this in for 3.1. It's still on my radar, though.
There are currently no plans to work on this feature. PW
Changes requested on bug 193523
We've moved on...