Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to disable resizing of view / view folder in RCP
How to disable resizing of view / view folder in RCP [message #660898] Tue, 22 March 2011 09:18 Go to next message
Kay Chee Cheung is currently offline Kay Chee CheungFriend
Messages: 8
Registered: July 2009
Junior Member
I am only a beginner in RCP. I want to keep the size of viewpart in RCP
fixed so that users cannot resize them. I tried :-
layout.setfixed(true)
and it does not work.
Help would be much appreciated.
Re: How to disable resizing of view / view folder in RCP [message #661125 is a reply to message #660898] Wed, 23 March 2011 09:48 Go to previous messageGo to next message
sagar  is currently offline sagar Friend
Messages: 2
Registered: March 2011
Junior Member
I think you are setting shell size again in your view.
Re: How to disable resizing of view / view folder in RCP [message #661139 is a reply to message #661125] Wed, 23 March 2011 10:54 Go to previous messageGo to next message
Kay Chee Cheung is currently offline Kay Chee CheungFriend
Messages: 8
Registered: July 2009
Junior Member
I am not changing the size of the shell. I just want to fix the size of the
view and make it not resizable by user.
I did Google search and tried one suggested solution to let the viewPart
implement ISizeProvider. However the resultant viewPart can still be
resized.
May be it is the IFolderLayout within the IPageLayout that is being resized
by dragging the mouse at the divider between two IFolderLayouts. Hence
modifying viewPart within the IFolderLayout has no effect on the ability to
resize.
Re: How to disable resizing of view / view folder in RCP [message #661233 is a reply to message #661139] Wed, 23 March 2011 15:58 Go to previous messageGo to next message
Dilton McGowan II is currently offline Dilton McGowan IIFriend
Messages: 110
Registered: July 2009
Senior Member
On Wed, 23 Mar 2011 21:54:32 +1100, Kay Chee Cheung wrote:

> I am not changing the size of the shell. I just want to fix the size of
> the view and make it not resizable by user. I did Google search and
> tried one suggested solution to let the viewPart implement
> ISizeProvider. However the resultant viewPart can still be resized.
> May be it is the IFolderLayout within the IPageLayout that is being
> resized by dragging the mouse at the divider between two IFolderLayouts.
> Hence modifying viewPart within the IFolderLayout has no effect on the
> ability to resize.

This article might help some:

http://wiki.eclipse.org/FAQ_How_do_I_create_fixed_views_and_ perspectives%3F
Re: How to disable resizing of view / view folder in RCP [message #661512 is a reply to message #661233] Fri, 25 March 2011 01:58 Go to previous message
Kay Chee Cheung is currently offline Kay Chee CheungFriend
Messages: 8
Registered: July 2009
Junior Member
Thanks Dilton. However, when I opened the link, there is no text under the
title.
Anyway, after searching more on the Web, the answers that I am getting are
that it is not possible within the standard platform. So thanks everyone
for looking and responding to my question.




"Dilton" <diltonm@gmail.com> wrote in message
news:imd5bj$jbd$3@news.eclipse.org...
> On Wed, 23 Mar 2011 21:54:32 +1100, Kay Chee Cheung wrote:
>
>> I am not changing the size of the shell. I just want to fix the size of
>> the view and make it not resizable by user. I did Google search and
>> tried one suggested solution to let the viewPart implement
>> ISizeProvider. However the resultant viewPart can still be resized.
>> May be it is the IFolderLayout within the IPageLayout that is being
>> resized by dragging the mouse at the divider between two IFolderLayouts.
>> Hence modifying viewPart within the IFolderLayout has no effect on the
>> ability to resize.
>
> This article might help some:
>
> http://wiki.eclipse.org/FAQ_How_do_I_create_fixed_views_and_ perspectives%3F
Previous Topic:Window's process for RCP app.
Next Topic:How to set background color for UI Element associated with command ?
Goto Forum:
  


Current Time: Tue Apr 23 11:35:13 GMT 2024

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

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

Back to the top