Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Preferencpage Bug?
Preferencpage Bug? [message #162054] Wed, 26 November 2003 05:19 Go to next message
Eclipse UserFriend
Originally posted by: m.bauer.signsoft.com

Hi,

i wrote a preferencepage and overwrote the performOK()-Method. But the
container doesn't seem to call this method, when the OK-Button is pressed to
leave preferences panel.
So how do I detect, that an user pressed the OK-Button?

Thanks in Advance

Michael Bauer
Re: Preferencpage Bug? [message #162160 is a reply to message #162054] Wed, 26 November 2003 08:24 Go to previous messageGo to next message
Eclipse UserFriend
Hi Michael,

> i wrote a preferencepage and overwrote the performOK()-Method. But the
> container doesn't seem to call this method, when the OK-Button is pressed
to
> leave preferences panel.
Did you write the method performOK with a capitalized K?

Bye,

Thorsten
Re: Preferencpage Bug? [message #162191 is a reply to message #162160] Wed, 26 November 2003 08:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: m.bauer.signsoft.com

Yes. I'm just wondering that this method is never called. My idea for this
problem is the following:

This method returns a boolean value. Because this is used by the Preference
container, it could be possible, that a preference pages performOK() method
of a preference page that is called earlier than mine, returns false. From
this moment, eclipse semms not to call all the other methods and just closes
the preference window.

If this is the reason, than they should change the specification. Because
the spec clearly says, the the perform method is called, when the user
presses ok.

Michael Bauer


"Thorsten Sch
Re: Preferencpage Bug? [message #162407 is a reply to message #162191] Wed, 26 November 2003 15:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Newsletter.ThorstenSchaefer.de

Hi Michael,

> > Did you write the method performOK with a capitalized K?
> Yes. [...]
The solution is much simpler than you thought: just take a lowercase "k" in
"performOk()". The framework calls this method and it doesn't make anything
in the default implementation. You didn't override the method because of
your typo and so your method doesn't get called.
By the way: I'm working on a eclipse plugin in my diploma thesis, which
checks implementation restrictions. One checker will test if there are
possible typos like in your case and give warnings for these issues. If
you're interested in it, just write me a short mail and I'll inform you when
the checker is finished.

HTH,

Thorsten
Re: Preferencpage Bug? [message #162675 is a reply to message #162407] Thu, 27 November 2003 04:17 Go to previous message
Eclipse UserFriend
Originally posted by: m.bauer.signsoft.com

Thanks for the solution. I'll chekck it right now. I'm just wondering about
it, because the framework says, it is named with a capital "k". Well. I'll
try it out right now and post here short, if it works.

Michael Bauer

"Thorsten Sch
Previous Topic:System.out from a plugin
Next Topic:What's with the funky text insertion cursor in M5?
Goto Forum:
  


Current Time: Sun Aug 31 04:36:30 EDT 2025

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

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

Back to the top