Community
Participate
Working Groups
It isn't currently possible to add multiple instances of the same view to a perspective through IPageLayout. Because of this you cannot create a perspective with multiple instances of the same view in its default layout.
Yes, this is currently a known limitation. Can you provide more details about your scenario?
Actually I eventually gave up the solution due to some other limitations (not bugs), but still decided to file this report so that it didn't stay unnoticed. What I am trying to do is to create an all-purpose collection management framework based on RCP. That framework would let developers define their own types of objects and collections using Eclipse extension point mechanism. The views containing the collections and editors for the objects would be generated automatically. The idea was to define and register a single "collection" view and then open one instance for each collection defined by the developer in his plugin.xml. That's what I needed the functionality for.
Sounds interesting. You might be interested in commenting on our generic navigator work. See bug 36961.
Sorry, out of time for new API for 3.1. Will consider post-3.1.
We _desperately_ need a solution for this. It is a critical need of my application (previously implemented in Swing, being ported to Eclipse RCP) that we have a programmatic way of some kind to specify a perspective with multiple of the same view. We already have an action that opens multiple of the same view using the primary+":"+secondary ID, and then we arrange them within the workbench page manually. We now need to programmatically create for our app a pre-defined arrangement of views (multiple instances of the same View class). We'd like to use perspectives to do this, but if we can't do it yet (and if the capability can't be added until post-3.1 as you previous message states), then we need some way--any way--to do it without perspectives until we can. Specifically what _we're_ trying to do is to divide up the workbench page into a number of views (all instances of the same class) that each contain different images. The application is like an image browser where the user can drag and drop images that are listed in a Navigator-like "workspace" (actually a database query) into one of the views. It is very important that several views be visible on the page simultaneously so that we can make the maximum use of screen real estate and so the user can compare different images to each other. One common example is where we want to view a mosaic of many images across the top of the page and below it have 2 views open that show two images that are a part of that mosaic at higher resolution.
I've applied a patch to PageLayout and FolderLayout that allows you to pass a compound id (primaryId:secondaryId) to addView. Although it would be better to have separate addView(primaryId, secondaryId, ...) methods, this is consistent with the way placeholders are added currently. Could you please try this out in the next nightly build, and let me know if this works for you?
Mark confirmed that the fix works just fine. Closing.
Verified by Mark.