Home » Eclipse Projects » Remote Application Platform (RAP) » size of a StandaloneView
size of a StandaloneView [message #103227] |
Wed, 27 August 2008 11:25  |
Eclipse User |
|
|
|
Hi,
is there any possibility to fixed the size of a StandaloneView???
here a little snippet.
public class Perspective implements IPerspectiveFactory {
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
layout.setEditorAreaVisible(false);
layout.addStandaloneView(BannerView.ID, false, IPageLayout.TOP,
0.05f,
editorArea);
layout.addStandaloneView(NavigationView.ID, false,
IPageLayout.LEFT,
0.2f, editorArea);
layout.addStandaloneView(ContentView.ID, false, IPageLayout.RIGHT,
0.8f, editorArea);
}
}
In the moment i set the ratio to each view and they are resizeable in
the browser.
Can I make them fixed???
Greets Roland
|
|
|
Re: size of a StandaloneView [message #103302 is a reply to message #103227] |
Thu, 28 August 2008 12:05   |
Eclipse User |
|
|
|
Originally posted by: rsternberg.innoopract.com
Hi Roland,
you can forbid closing and moving views within a perspective, but to my
knowledge, it is not possible to forbid resizing a view. However, since
RAP provides a subset of the original workbench code, you could also ask
this question in an RCP newsgroup / forum etc.
If you find a way to achieve what you desire by means of RCP, and find
that the same solution does not work with RAP, then feel free to ask for
alternatives here or to file a bug against RAP.
Best regards,
Ralf
Roland Siebert wrote:
> Hi,
>
> is there any possibility to fixed the size of a StandaloneView???
>
> here a little snippet.
>
> public class Perspective implements IPerspectiveFactory {
>
> public void createInitialLayout(IPageLayout layout) {
>
> String editorArea = layout.getEditorArea();
> layout.setEditorAreaVisible(false);
>
> layout.addStandaloneView(BannerView.ID, false, IPageLayout.TOP,
> 0.05f,
> editorArea);
> layout.addStandaloneView(NavigationView.ID, false,
> IPageLayout.LEFT,
> 0.2f, editorArea);
> layout.addStandaloneView(ContentView.ID, false, IPageLayout.RIGHT,
> 0.8f, editorArea);
> }
> }
>
> In the moment i set the ratio to each view and they are resizeable in
> the browser.
> Can I make them fixed???
>
> Greets Roland
|
|
|
Re: size of a StandaloneView [message #103315 is a reply to message #103302] |
Thu, 28 August 2008 13:32  |
Eclipse User |
|
|
|
Hi,
I could be wrong but I think I can somehow remember that some time in
3.4 Platform-UI introduced support of ISizeProvider to ViewParts to
provide their preferred size. I think
https://bugs.eclipse.org/bugs/show_bug.cgi?id=202208 talks about this.
Tom
Ralf Sternberg schrieb:
> Hi Roland,
>
> you can forbid closing and moving views within a perspective, but to my
> knowledge, it is not possible to forbid resizing a view. However, since
> RAP provides a subset of the original workbench code, you could also ask
> this question in an RCP newsgroup / forum etc.
>
> If you find a way to achieve what you desire by means of RCP, and find
> that the same solution does not work with RAP, then feel free to ask for
> alternatives here or to file a bug against RAP.
>
> Best regards,
> Ralf
>
>
> Roland Siebert wrote:
>> Hi,
>>
>> is there any possibility to fixed the size of a StandaloneView???
>>
>> here a little snippet.
>>
>> public class Perspective implements IPerspectiveFactory {
>>
>> public void createInitialLayout(IPageLayout layout) {
>>
>> String editorArea = layout.getEditorArea();
>> layout.setEditorAreaVisible(false);
>>
>> layout.addStandaloneView(BannerView.ID, false, IPageLayout.TOP,
>> 0.05f,
>> editorArea);
>> layout.addStandaloneView(NavigationView.ID, false,
>> IPageLayout.LEFT,
>> 0.2f, editorArea);
>> layout.addStandaloneView(ContentView.ID, false, IPageLayout.RIGHT,
>> 0.8f, editorArea);
>> }
>> }
>>
>> In the moment i set the ratio to each view and they are resizeable in
>> the browser.
>> Can I make them fixed???
>>
>> Greets Roland
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
|
Goto Forum:
Current Time: Sat May 10 08:04:05 EDT 2025
Powered by FUDForum. Page generated in 0.03580 seconds
|