Weird ordering of buttons in new Eclipse 3.5m7

May 14th, 2009

I just upgraded to Eclipse 3.5M7 and when I wanted to close an editor with changes I noticed that the buttons are in different unintuitive order. I liked the Cancel/OK switch, but save the editor looks strange. Look for yourself.

Old:

save-34

New:

This might be because of JFace dialog button order on GTK+

Tags: ,
  1. Carsten
    May 14th, 2009 at 15:11
    Reply | Quote | #1

    *ARRGHHHH*

    At least it should be *desktop dependent*, not toolkit dependent. On my KDE desktop, all applications have YES|NO|Cancel, and Eclipse wants to mess that up now? I really hope this is configurable somewhere.

  2. Carsten
    May 14th, 2009 at 15:14
    Reply | Quote | #2

    Ah, looking at the changelog, it is configurable.
    Add

    gtk-alternative-button-order=1

    to your ~/.gtkrc-2.0

  3. Ivar Meikas
    May 14th, 2009 at 16:35
    Reply | Quote | #3

    Thanks for the great hint :)

  4. AhtiK
    May 14th, 2009 at 16:45
    Reply | Quote | #4

    Actually this new order seems to be also for MacOSX. Not sure how to tweak it there. Anyway, great hint from Carsten, thanks!

    In the long run this change makes sense — SWT goal is to be kind of “invisible UI bridge” between java code and native OS.

  5. Remy Chi Jian Suen
    May 14th, 2009 at 18:56
    Reply | Quote | #5

    We changed this to fix bug 57762. Technically speaking, we are correct if you look at the GNOME HIG. The dialog matches the example although I guess we are technically wrong because we don’t use the exact text.

    “Extra buttons may be used to provide alternates to the primary action proposed by the alert text. Place these buttons to the left of the Cancel button, or the affirmative button if Cancel is not present. An example of a common alternate action would be a Quit without Saving button in a save confirmation alert. This is an alternative to the primary suggested action Save and the Cancel button.”

    In any case, this change was intentional.

  6. Ivar Meikas
    May 14th, 2009 at 19:01
    Reply | Quote | #6

    Then this is Gnome issue :P

Comments are closed.

TimeGT Task and Note Manager