|
Re: Different custom presentations for different sites [message #521392 is a reply to message #521304] |
Wed, 17 March 2010 08:42 |
|
A lot of what you want is determined in the perspective. i.e.
standalone view with no tabs/title, creating a view as a fast view, etc.
How the views are stacked together (CTabFolder or some other widget) is
controlled by the presentation, so if you want to customize the tabs in
a stack, you are correct, you'd have to overwrite it.
To pass information from the perspective to the presentation, you can
customize both a part and a folder/stack. So for your case where you
want to customize one set of view tabs, when you create your perspective
you would create a folder and get the IFolderLayout, and then call
setProperty(String id, String value) on it. Then use
org.eclipse.ui.presentations.IStackPresentationSite.getPrope rty(String)
to get the property when creating that stack.
Later,
PW
--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
|
|
|
|
Powered by
FUDForum. Page generated in 0.03265 seconds