Fixed view size [message #457260] |
Fri, 27 October 2006 11:32  |
Eclipse User |
|
|
|
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 #458075 is a reply to message #458072] |
Mon, 13 November 2006 11:56   |
Eclipse User |
|
|
|
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 #464621 is a reply to message #458075] |
Tue, 13 March 2007 04:53  |
Eclipse User |
|
|
|
>>
>> 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
|
|
|
Powered by
FUDForum. Page generated in 0.18595 seconds