Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Issue with Preferene Pages
Issue with Preferene Pages [message #327951] Fri, 09 May 2008 12:00 Go to next message
Eclipse UserFriend
Originally posted by: avikram.novell.com

Hi,

I am trying to add a new property page, with a non-default width. I added
the following routine doComputeSize to do that,

protected Point doComputeSize()
{
Point size;

size = baseComposite.computeSize( SWT.DEFAULT, SWT.DEFAULT );
baseComposite.setSize(size);

return size;
}

It works perfectly on Windows, but on Linux I get a horizontal scroll bar
when the width is more than the default width that a preference page has
to accomodate for the extra width. The actual width of the page remains
same. The same code works perfectly on Windows.

If you try invoking the page second time, it works perfectly even on Linux.
I was curious whether anybody else has seen an issue like this.

There was another issue,
How can one dynamically change the size of a preference page. There is no
layout() available for a preference page, isn't it?

thanks for the help,
aditya
Re: Issue with Preferene Pages [message #328013 is a reply to message #327951] Mon, 12 May 2008 14:17 Go to previous message
Eclipse UserFriend
Originally posted by: avikram.novell.com

any help on this would be appreciated.

--aditya

aditya vikram wrote:

> Hi,
>
> I am trying to add a new property page, with a non-default width. I added
> the following routine doComputeSize to do that,
>
> protected Point doComputeSize()
> {
> Point size;
>
> size = baseComposite.computeSize( SWT.DEFAULT, SWT.DEFAULT );
> baseComposite.setSize(size);
>
> return size;
> }
>
> It works perfectly on Windows, but on Linux I get a horizontal scroll bar
> when the width is more than the default width that a preference page has
> to accomodate for the extra width. The actual width of the page remains
> same. The same code works perfectly on Windows.
>
> If you try invoking the page second time, it works perfectly even on
> Linux. I was curious whether anybody else has seen an issue like this.
>
> There was another issue,
> How can one dynamically change the size of a preference page. There is no
> layout() available for a preference page, isn't it?
>
> thanks for the help,
> aditya
Previous Topic:Eclipse Update manager with Login Credentials???
Next Topic:Update Site Project - some issues
Goto Forum:
  


Current Time: Sun Jun 30 00:04:50 GMT 2024

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

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

Back to the top