Multiple views don't care of perspective layout, is it a BUG ? [message #249248] |
Fri, 04 June 2004 08:42 |
Eclipse User |
|
|
|
Originally posted by: tommy.mi.com
Hi,
I don't know if it's a bug or me, but views which has the attribute
'allowMultiple' set to 'true', they (the views) don't care of the
perspective layout.
I use M8 and M9.
Exemple :
Two views declared in plugin.xml with attribute 'allowMultiple' set to
'true' :
- zone1.view
- zone2.view
Two IPlaceholderFolderLayout declared in MyPerspectiveFactory.java :
- zone1 on the left of the editor area
- zone2 on the bottom of the editor area
I add zone1.view to zone1 with method 'zone1.addPlaceholder("zone1.view")'
I add zone2.view to zone2 with method 'zone2.addPlaceholder("zone2.view")'
Let's open the perspective...
The opening of views is done with the method :
page.showView(primaryId, secondaryId, WorkbenchPage.VIEW_ACTIVATE);
* I open a zone2.view view with the secondary id '1'.
It's displayed in the folder zone2 --> OK.
* I open a zone1.view view with the secondary id '1'.
It's displayed in the folder zone1 --> OK.
* I open a zone1.view view with the secondary id '2'.
It's displayed in the folder zone2 --> NOK.
The folder zone2 is the folder which is in the right-bottom corner, so
it's the 'default' folder for views with no folder.
So, is it a bug or not ?
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.02961 seconds