Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Simple Eclipse multi-page editor question(Simple Eclipse multi-page editor question)
Simple Eclipse multi-page editor question [message #526805] Mon, 12 April 2010 22:50 Go to next message
Eclipse UserFriend
Hi,
Can someone tell me if there is any way to customize the Eclipse Multipage editor (MultiPageEditorPart) so that the tabs appear at the top instead of at the bottom? I looked at the MultiPageEditorPart.createContainer() method and saw that it specifys the style SWT.BOTTON. However, I saw no way in which I can override this behavior to show my tabs at the top.

Thanks in advance for any help.

Regards,
-Manas
Re: Simple Eclipse multi-page editor question [message #526929 is a reply to message #526805] Tue, 13 April 2010 10:09 Go to previous messageGo to next message
Eclipse UserFriend
There's no API way to change this. The fact that an MPEP is implemented
using a CTabFolder is "hidden".

The only way you could do it is the hack you mentioned, getContainer()
followed by an instanceof check ... totally unsupported.

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
Re: Simple Eclipse multi-page editor question [message #552057 is a reply to message #526805] Tue, 10 August 2010 12:22 Go to previous message
Eclipse UserFriend
after the container is created if you do getContainer it should be of type CTabFolder.

CTabFolder objects have a method setTabPosition which will allow you to specify SWT.TOP

**WARNING**
The reason getContainer returns type Composite is that it is not guaranteed to be a particular type (in this case CTabFolder) so if in future releases of eclipse they could very well change the underlying container type and it would then break your code. I was looking for a link to the documentation but couldn't find it.

Hope that helps.
Previous Topic:Error "org.eclipse.jface"
Next Topic:change text hover style
Goto Forum:
  


Current Time: Sun Aug 31 06:46:41 EDT 2025

Powered by FUDForum. Page generated in 0.03002 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top