Home » Eclipse Projects » GEF » Order of entries in property sheet
Order of entries in property sheet [message #107307] |
Thu, 27 November 2003 23:32  |
Eclipse User |
|
|
|
Originally posted by: PeterMayne.ap.spherion.com
I have an IPropertySource with "Width" and "Height" properties.
Unfortunately, they display in the property sheet in the order "Height",
"Width", rather than my preferred logical order of "Width", "Height".
A quick trek through the code leads me to believe that properties are
displayed in the current locale's sort order, rather than (say) the
order in which I put them in my IPropertyDescriptor[].
Probably a hopeless question, but can I ensure that my properties are
displayed in an order I insist on (say, the order in which I put them in
my IPropertyDescriptor[]), rather than having them arbitrarily sorted?
Thanks.
PJDM
--
Peter Mayne
Spherion Technology Solutions
Canberra, ACT, Australia
"Dude, where's my IDE?"
|
|
|
Re: Order of entries in property sheet [message #107319 is a reply to message #107307] |
Fri, 28 November 2003 00:25   |
Eclipse User |
|
|
|
Originally posted by: brian.fernandes.codito.com
Hi Peter,
This bug addresses the issue. Indeed, its quite a pain that the property
sheet entries are sorted ... Oh, well.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=1883
Brian.
"Peter Mayne" <PeterMayne@ap.spherion.com> wrote in message
news:bq6j0r$siq$1@eclipse.org...
> I have an IPropertySource with "Width" and "Height" properties.
>
> Unfortunately, they display in the property sheet in the order "Height",
> "Width", rather than my preferred logical order of "Width", "Height".
>
> A quick trek through the code leads me to believe that properties are
> displayed in the current locale's sort order, rather than (say) the
> order in which I put them in my IPropertyDescriptor[].
>
> Probably a hopeless question, but can I ensure that my properties are
> displayed in an order I insist on (say, the order in which I put them in
> my IPropertyDescriptor[]), rather than having them arbitrarily sorted?
>
> Thanks.
>
> PJDM
> --
> Peter Mayne
> Spherion Technology Solutions
> Canberra, ACT, Australia
> "Dude, where's my IDE?"
>
|
|
|
Re: Order of entries in property sheet [message #107459 is a reply to message #107307] |
Mon, 01 December 2003 00:19   |
Eclipse User |
|
|
|
Check Bug 44800 too.
"Peter Mayne" <PeterMayne@ap.spherion.com> wrote in message
news:bq6j0r$siq$1@eclipse.org...
> I have an IPropertySource with "Width" and "Height" properties.
>
> Unfortunately, they display in the property sheet in the order "Height",
> "Width", rather than my preferred logical order of "Width", "Height".
>
> A quick trek through the code leads me to believe that properties are
> displayed in the current locale's sort order, rather than (say) the
> order in which I put them in my IPropertyDescriptor[].
>
> Probably a hopeless question, but can I ensure that my properties are
> displayed in an order I insist on (say, the order in which I put them in
> my IPropertyDescriptor[]), rather than having them arbitrarily sorted?
>
> Thanks.
>
> PJDM
> --
> Peter Mayne
> Spherion Technology Solutions
> Canberra, ACT, Australia
> "Dude, where's my IDE?"
>
|
|
|
Re: Order of entries in property sheet [message #107697 is a reply to message #107459] |
Tue, 02 December 2003 14:47   |
Eclipse User |
|
|
|
See http://www.javadude.com/eclipse/ for an example of ordering them
yourself. Not super pretty, but a simple way to fix it...
-- Scott
In article <bqeiq7$4sn$1@eclipse.org>, anotherneatguy@yahoo.com says...
> Check Bug 44800 too.
>
> "Peter Mayne" <PeterMayne@ap.spherion.com> wrote in message
> news:bq6j0r$siq$1@eclipse.org...
> > I have an IPropertySource with "Width" and "Height" properties.
> >
> > Unfortunately, they display in the property sheet in the order "Height",
> > "Width", rather than my preferred logical order of "Width", "Height".
> >
> > A quick trek through the code leads me to believe that properties are
> > displayed in the current locale's sort order, rather than (say) the
> > order in which I put them in my IPropertyDescriptor[].
> >
> > Probably a hopeless question, but can I ensure that my properties are
> > displayed in an order I insist on (say, the order in which I put them in
> > my IPropertyDescriptor[]), rather than having them arbitrarily sorted?
> >
> > Thanks.
> >
> > PJDM
> > --
> > Peter Mayne
> > Spherion Technology Solutions
> > Canberra, ACT, Australia
> > "Dude, where's my IDE?"
> >
>
>
>
|
|
| | | |
Re: Order of entries in property sheet [message #107961 is a reply to message #107947] |
Thu, 04 December 2003 10:14  |
Eclipse User |
|
|
|
Gotcha -- definitely, the prefix wouldn't be translated.
Of course this is a hack... It would be better to come up with a cleaner
way to do this (such as explicit ordering, perhaps just an option that
allows the sort call to be turned off). I implemented this hack based on
what I could override easily.
- Scott
In article <bqni2b$gaa$1@eclipse.org>, none@us.ibm.com says...
> Meaning when you do i18n on your program, and your !Kung translator goes to
> translate "a1:height", it might be confusing.
>
> But, you could avoid this by not externalizing the prefix, and adding it
> programmatically at the time when you parse your properties file.
>
> Thanks for the suggestion!
>
|
|
|
Goto Forum:
Current Time: Mon Jul 14 11:43:33 EDT 2025
Powered by FUDForum. Page generated in 0.04302 seconds
|