Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Re: fixed size of StandaloneView
Re: fixed size of StandaloneView [message #103391] Fri, 29 August 2008 06:59 Go to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

did you try:

[JavaDoc]
void org.eclipse.ui.IPageLayout.setFixed(boolean isFixed)
Sets whether this layout is fixed. In a fixed layout, layout parts
cannot be moved or zoomed, and the initial set of views cannot be
closed.

Parameters:
isFixed true if this layout is fixed, false if not


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Roland Siebert [mailto:rollohusa@googlemail.com]
Bereitgestellt: Dienstag, 26. August 2008 13:40
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: fixed size of StandaloneView
Betreff: fixed size of StandaloneView

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: fixed size of StandaloneView [message #103912 is a reply to message #103391] Tue, 02 September 2008 13:00 Go to previous messageGo to next message
rollo is currently offline rolloFriend
Messages: 117
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010007070702090904020305
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi,

yes I had try it. But that's not want i looking for.

Here is an little screenshot.
What I mean is, that when you the mouse between two different views you
can change there ratio, which was set "Perspective" (look at my
snippet). But I want to set them a fixed ratio, so the user can not
change them.

Roland

Frank Appel schrieb:
> Hi,
>
> did you try:
>
> [JavaDoc]
> void org.eclipse.ui.IPageLayout.setFixed(boolean isFixed)
> Sets whether this layout is fixed. In a fixed layout, layout parts
> cannot be moved or zoomed, and the initial set of views cannot be
> closed.
>
> Parameters:
> isFixed true if this layout is fixed, false if not
>
>
> Ciao
> Frank
>
> -----Urspr
Re: fixed size of StandaloneView [message #103939 is a reply to message #103912] Tue, 02 September 2008 13:59 Go to previous message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Roland,

apparently this is not supported by the platform (RCP) and thus RAP
doesn't support it either.

I faintly remember that there were certain implications that
prevented this feature from making it into the platform. However I
filed a feature request at the platform team:

245967: Allow to prevent workbench parts from being resized
https://bugs.eclipse.org/bugs/show_bug.cgi?id=245967

Cheers,
Rüdiger

Roland Siebert wrote:
> Hi,
>
> yes I had try it. But that's not want i looking for.
>
> Here is an little screenshot.
> What I mean is, that when you the mouse between two different views you
> can change there ratio, which was set "Perspective" (look at my
> snippet). But I want to set them a fixed ratio, so the user can not
> change them.
>
> Roland
>
> Frank Appel schrieb:
>> Hi,
>>
>> did you try:
>>
>> [JavaDoc]
>> void org.eclipse.ui.IPageLayout.setFixed(boolean isFixed)
>> Sets whether this layout is fixed. In a fixed layout, layout parts
>> cannot be moved or zoomed, and the initial set of views cannot be
>> closed.
>>
>> Parameters:
>> isFixed true if this layout is fixed, false if not
>>
>>
>> Ciao
>> Frank
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Roland Siebert [mailto:rollohusa@googlemail.com]
>> Bereitgestellt: Dienstag, 26. August 2008 13:40
>> Bereitgestellt in: eclipse.technology.rap
>> Unterhaltung: fixed size of StandaloneView
>> Betreff: fixed size of StandaloneView
>>
>> 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
>>
>
>
> ------------------------------------------------------------ ------------
>
Previous Topic:applets in RAP applications
Next Topic:ClassNotFoundException: com.ibm.icu.text.Collator by opening an editor
Goto Forum:
  


Current Time: Fri Apr 26 11:10:31 GMT 2024

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

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

Back to the top