View position [message #459647] |
Tue, 05 December 2006 09:27  |
Eclipse User |
|
|
|
Originally posted by: mike.swt.demon.co.uk
Hello
I am adding a View and an Editor to the workbench using an Action. In this I
am using the showView and openEditor methods on the active page.
The view appears to the right of the editor, is there a way of making it
appear to the left of the editor?
Many thanks
Mike
|
|
|
|
Re: View position [message #459754 is a reply to message #459648] |
Thu, 07 December 2006 05:42  |
Eclipse User |
|
|
|
Originally posted by: eclipse.patcom.demon.co.uk
Thanks Carsten
I had mis-understood the idea of a place holder and thought that if I
included my view in the persepecive it would become visible before it
should do. I have made that change now, the only problem I have is that
the ratio does not appear to have an effect and the view takes up most
of the window no matter what value I use for the ratio
Cheers
Mike
Carsten Spieker wrote:
> Hi Mike,
>
> if I understand your problem correctly, you have to add a placeholder for
> the view in the perspective the view should appear.
> Try something like this in your perspective class:
>
> public void createLayout(IPageLayout layout) {
> layour.addPlaceholder("your.view.id",IPageLayout.LEFT,.2f,layout.getEditorArea());
> }
>
> Greetz,
> Carsten
>
>
> "Mike Bennett" <mike@swt.demon.co.uk> schrieb im Newsbeitrag
> news:el3vla$tra$1@utils.eclipse.org...
>> Hello
>>
>> I am adding a View and an Editor to the workbench using an Action. In this
>> I am using the showView and openEditor methods on the active page.
>>
>> The view appears to the right of the editor, is there a way of making it
>> appear to the left of the editor?
>>
>> Many thanks
>>
>> Mike
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03802 seconds