Setting initial Editor Area Size [message #449700] |
Thu, 18 May 2006 03:30  |
Eclipse User |
|
|
|
Originally posted by: Stephen.Egan.csiro.au
Hi,
I'm having trouble setting the initial editor area size in my =
application. I have a number of views in my perspective defined in my =
org.eclipse.ui.perspectiveExtensions extension. My first view is placed=
=
relative to the editor area, and the remaining views are placed relative=
=
to that. The trouble is that changing the size ratio for the first view=
=
doesn't seem to have much of an effect, and what little it does seems to=
=
have no relationship to the actual value of the ratio.
Any ideas, or are the Code Pixies playing with my mind again?
//Stephen
-- =
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
|
|
Re: Setting initial Editor Area Size [message #449747 is a reply to message #449700] |
Thu, 18 May 2006 17:07   |
Eclipse User |
|
|
|
Can you provide a code snippet from your IPerspectiveFactory class so we
can see how you are using IPageLayout?
My only guess at this point is that you are not using the addView API
correctly as it can be a bit tricky at first, especially the ratio paramter:
ratio - a ratio specifying how to divide the space currently occupied by
the reference part, in the range 0.05f to 0.95f. Values outside this
range will be clipped to facilitate direct manipulation. For a vertical
split, the part on top gets the specified ratio of the current space and
the part on bottom gets the rest. Likewise, for a horizontal split, the
part at left gets the specified ratio of the current space and the part
at right gets the rest.
Stephen Egan wrote:
> Hi,
> I'm having trouble setting the initial editor area size in my
> application. I have a number of views in my perspective defined in my
> org.eclipse.ui.perspectiveExtensions extension. My first view is
> placed relative to the editor area, and the remaining views are placed
> relative to that. The trouble is that changing the size ratio for the
> first view doesn't seem to have much of an effect, and what little it
> does seems to have no relationship to the actual value of the ratio.
> Any ideas, or are the Code Pixies playing with my mind again?
>
> //Stephen
>
|
|
|
|
|
Re: Setting initial Editor Area Size [message #449838 is a reply to message #449811] |
Sun, 21 May 2006 21:48   |
Eclipse User |
|
|
|
Originally posted by: Stephen.Egan.csiro.au
Hi Amber,
I do only want my Editor area to take up a small proportion of the =
screen. I am only using it as an area for navigating my EMF model, and =
=
the 3dview is the main view for that perspective (The 3dview isn't =
implemented as an editor, as I want to be able to undock it).
I am using perspectiveExtensions, as I want future plugins to be able to=
=
extend it. Some of these future plugins may not be devloped by myself a=
nd =
my team, so I want to allow maximum flexibility. Also, as matter of =
course, I have been using extensions as much as possible in all my RCP =
programming.
Regards,
Stephen.
On Fri, 19 May 2006 23:45:10 +1000, Amber Beerends <abeerends@cerner.com=
> =
wrote:
> How much space do you want the editor area to have? From what I can =
> tell from your extension definition, its just getting a small section =
on =
> the right side of the screen and the 3dview is getting the majority of=
=
> your screen real estate.
>
> As a side note, I'm not sure why you are using the perspectiveExtensio=
ns =
> extension. Do you not also own the perspective itself? The =
> perspectiveExtensions extension is available so that other plug-ins ca=
n =
> contribute to a perspective registered by other plug-ins.
-- =
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
|
|
|
Powered by
FUDForum. Page generated in 0.04509 seconds