SWT.BOTTOM does not work [message #188127] |
Mon, 02 February 2004 04:51  |
Eclipse User |
|
|
|
Originally posted by: t1.s-neubert.net
Hello everyone,
trying to write my first plugin, I've found a serious plroblem. Here is
the code I use to add two views to the plugins perspective within the
MyPerspectiveFactory
----------------------
String editorArea = layout.getEditorArea();
IFolderLayout messages = layout.createFolder(
"messages", SWT.BOTTOM, 0.2f, editorArea);
messages.addView("org.eclipse.myplugin.views.MessagesView");
------------------------
When I test the perpective with the code above, eclipse, does not position
the view at the bottom but at the left side. The same is true for SWT.TOP.
Is that a bug or am I doing something wrong?
Kind reagrds, Tobias Neubert
|
|
|
Re: SWT.BOTTOM does not work [message #188674 is a reply to message #188127] |
Tue, 03 February 2004 10:24  |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
Tobias Neubert wrote:
>Hello everyone,
>
>trying to write my first plugin, I've found a serious plroblem. Here is
>the code I use to add two views to the plugins perspective within the
>MyPerspectiveFactory
>
>----------------------
>String editorArea = layout.getEditorArea();
>IFolderLayout messages = layout.createFolder(
> "messages", SWT.BOTTOM, 0.2f, editorArea);
>messages.addView("org.eclipse.myplugin.views.MessagesView");
>------------------------
>
>When I test the perpective with the code above, eclipse, does not position
>the view at the bottom but at the left side. The same is true for SWT.TOP.
>Is that a bug or am I doing something wrong?
>
>
The latter. Use IPageLayout.BOTTOM.
Dani
>Kind reagrds, Tobias Neubert
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03683 seconds