Skip to main content



      Home
Home » Eclipse Projects » GEF » Order of entries in property sheet
Order of entries in property sheet [message #107307] Thu, 27 November 2003 23:32 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #107780 is a reply to message #107697] Tue, 02 December 2003 17:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

I hope your translators know how to translate "a1:x" vs. "a3:width" ;-)

"Scott Stanchfield" <scott@javadude.com> wrote in message
news:MPG.1a36b6401339bf21989684@news.eclipse.org...
> See http://www.javadude.com/eclipse/ for an example of ordering them
> yourself. Not super pretty, but a simple way to fix it...
>
> -- Scott
> >
Re: Order of entries in property sheet [message #107930 is a reply to message #107780] Thu, 04 December 2003 08:15 Go to previous messageGo to next message
Eclipse UserFriend
Eh? Not sure what you mean...

(I saw the smiley, but perhaps it's just too early and I'm being
dense...)

-- Scott


In article <bqj2af$89o$1@eclipse.org>, none@us.ibm.com says...
> I hope your translators know how to translate "a1:x" vs. "a3:width" ;-)
>
> "Scott Stanchfield" <scott@javadude.com> wrote in message
> news:MPG.1a36b6401339bf21989684@news.eclipse.org...
> > See http://www.javadude.com/eclipse/ for an example of ordering them
> > yourself. Not super pretty, but a simple way to fix it...
> >
> > -- Scott
> > >
>
>
>
Re: Order of entries in property sheet [message #107947 is a reply to message #107930] Thu, 04 December 2003 10:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

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!

"Scott Stanchfield" <scott@javadude.com> wrote in message
news:MPG.1a38fd85d072d1e2989685@news.eclipse.org...
> Eh? Not sure what you mean...
>
> (I saw the smiley, but perhaps it's just too early and I'm being
> dense...)
>
> -- Scott
>
>
> In article <bqj2af$89o$1@eclipse.org>, none@us.ibm.com says...
> > I hope your translators know how to translate "a1:x" vs. "a3:width" ;-)
> >
> > "Scott Stanchfield" <scott@javadude.com> wrote in message
> > news:MPG.1a36b6401339bf21989684@news.eclipse.org...
> > > See http://www.javadude.com/eclipse/ for an example of ordering them
> > > yourself. Not super pretty, but a simple way to fix it...
> > >
> > > -- Scott
> > > >
> >
> >
> >
Re: Order of entries in property sheet [message #107961 is a reply to message #107947] Thu, 04 December 2003 10:14 Go to previous message
Eclipse UserFriend
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!
>
Previous Topic:Draw Table in the editor
Next Topic:Resizing Controls
Goto Forum:
  


Current Time: Mon Jul 14 11:43:33 EDT 2025

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

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

Back to the top