Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » View position
View position [message #459647] Tue, 05 December 2006 09:27 Go to next message
Eclipse UserFriend
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 #459648 is a reply to message #459647] Tue, 05 December 2006 09:42 Go to previous messageGo to next message
Eclipse UserFriend
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
>
Re: View position [message #459754 is a reply to message #459648] Thu, 07 December 2006 05:42 Go to previous message
Eclipse UserFriend
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
>>
>
>
Previous Topic:adding a view to the preference page to change color and font
Next Topic:GMF with RCP
Goto Forum:
  


Current Time: Wed Mar 26 21:36:11 EDT 2025

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

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

Back to the top