Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Fixed view size
Fixed view size [message #457260] Fri, 27 October 2006 15:32 Go to next message
Danilo Tuler is currently offline Danilo TulerFriend
Messages: 7
Registered: July 2009
Junior Member
I noticed that in Eclipse Java Perspective the side views, like Package
Explorer, and the bottom views, like Console, are kept with fixed width or
height, respectively.

I would like to implement this exact behaviour.
I guess I need to code this, as the sizes are always specified by
percentage.

I'm trying to find JDT code that does that, but I'm not finding it.
Can anybody point to the right code?

Thanks in advance,
Danilo
Re: Fixed view size [message #458072 is a reply to message #457260] Mon, 13 November 2006 15:46 Go to previous messageGo to next message
hannes Niederhausen is currently offline hannes NiederhausenFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,

> I'm trying to find JDT code that does that, but I'm not finding it.

Why are you thinking you may find such an example in the JDT Code, as far as
I see, there are no fixed size views in JDT.

I have the same problem like you. I want to create a "navigation view" with
a fixed width. Did you already solve this problem?

Best regards
Hannes
Re: Fixed view size [message #458075 is a reply to message #458072] Mon, 13 November 2006 16:56 Go to previous messageGo to next message
Gordon Hirsch is currently offline Gordon HirschFriend
Messages: 100
Registered: July 2009
Senior Member
Hannes Niederhausen wrote:
> Hi,
>
>> I'm trying to find JDT code that does that, but I'm not finding it.
>
> Why are you thinking you may find such an example in the JDT Code, as far as
> I see, there are no fixed size views in JDT.

I agree that it doesn't seem possible to have a fixed size view today.
This is one of the items requested in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=151715

Perhaps the original post was referring to the fact that when the window
is resized in a particular direction, the extra area goes to the editor
(if any, if possible).

>
> I have the same problem like you. I want to create a "navigation view" with
> a fixed width. Did you already solve this problem?

We have exactly the same need for a navigation view. We've resorted to
overriding WorkbenchWindowAdvisor.createWindowContents(), creating the
fixed panel within the shell, but outside of the workbench proper.

Unfortunately, this approach adds a lot of complexity. Also there are
limitations; see https://bugs.eclipse.org/bugs/show_bug.cgi?id=73821
Re: Fixed view size [message #458310 is a reply to message #458075] Thu, 16 November 2006 21:58 Go to previous messageGo to next message
Danilo Tuler is currently offline Danilo TulerFriend
Messages: 7
Registered: July 2009
Junior Member
> Perhaps the original post was referring to the fact that when the window
> is resized in a particular direction, the extra area goes to the editor
> (if any, if possible).

Yes, I wasn't aware of the editor.
I don't use editors, just views. That makes my life a little more difficult.

-- Danilo
Re: Fixed view size [message #464621 is a reply to message #458075] Tue, 13 March 2007 08:53 Go to previous message
hannes Niederhausen is currently offline hannes NiederhausenFriend
Messages: 6
Registered: July 2009
Junior Member
>>
>> I have the same problem like you. I want to create a "navigation view"
>> with
>> a fixed width. Did you already solve this problem?
>
> We have exactly the same need for a navigation view. We've resorted to
> overriding WorkbenchWindowAdvisor.createWindowContents(), creating the
> fixed panel within the shell, but outside of the workbench proper.

Can you send a small code snippet how you solved this?

thanks
Hannes
Previous Topic:IllegalStateException when starting OSGi
Next Topic:Perspectives in a RCP Application
Goto Forum:
  


Current Time: Mon Sep 16 19:49:20 GMT 2024

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

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

Back to the top