Perspective Placeholder [message #1725163] |
Tue, 01 March 2016 10:28 |
Nin Pa Messages: 36 Registered: September 2013 |
Member |
|
|
Hi,
I want to use a placeholder in a perspective so that I can dynamically add and remove views to / from it, accessing it from other classes. How is it possible?
It is possible to create a placeholder in a folder like this:
IFolderLayout folder = layout.createFolder("myview", IPageLayout.LEFT, 0.25f, editorArea);
folder.addPlaceholder("MyView:*");
Now i want to access it from the outside to add / remove views.
Additionally I want these dynamically added views to not be closeable.
Any ideas?
Thanks in advance!
[Updated on: Tue, 01 March 2016 10:33] Report message to a moderator
|
|
|
|
Re: Perspective Placeholder [message #1728788 is a reply to message #1728782] |
Thu, 07 April 2016 11:50 |
Sebastian Habenicht Messages: 42 Registered: January 2013 |
Member |
|
|
Hi again,
concerning not closable views: I just tried one thing that I found in the google results...
I added a specific view initially to the perspective using the org.eclipse.ui.perspectiveExtensions extension point. In the extension element details of the perspective extension's sub entry 'view' you can set the closable flag to false. This opens the view without the close action in its tab (the context menu action is disabled as well).
Opening that view programmatically seems to respect this setting for this specific view in this specific perspective since the close button is never shown in its tab in this perspective.
Hope, this helps you.
Regards,
Sebastian
[Updated on: Thu, 07 April 2016 11:51] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03196 seconds