Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Auto generated eventhandler(How to have an auto generated eventhandler?)
Auto generated eventhandler [message #699852] Fri, 22 July 2011 13:32 Go to next message
Eran is currently offline EranFriend
Messages: 3
Registered: July 2011
Junior Member
i'm kinda new to the eclipse(Indigo) and java environment.
I do come from the Visual Studio 2010 and C#. and in the VS when i double clicking an event in the designer (like the click of the Button class) the Vs create but itself the handler method.
how can I do it in the eclipse?

[Updated on: Sat, 23 July 2011 07:23]

Report message to a moderator

Re: Auto generated eventhandler [message #699895 is a reply to message #699852] Fri, 22 July 2011 14:20 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
It sounds similar to Source->Override/Implement Methods... You can also
get this effect if you type Ctrl-Space in the body of the class. Of
course when you create the class with the wizard, you can tell it to
generate all the methods you want as well...


On 22/07/2011 6:32 AM, Eran wrote:
> i'm kinda new to the eclipse(Indigo) and java environment.
> I do come from the Visual Studio 2010 and C#. and in the VS when i
> double clicking an event in the designer (like the click of the Button
> class) the Vs create but itself the handler method.
> how can I do it in the eclipse?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Auto generated eventhandler [message #700014 is a reply to message #699852] Fri, 22 July 2011 17:02 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 7/22/11 9:32 AM, Eran wrote:
> i'm kinda new to the eclipse(Indigo) and java environment.
> I do come from the Visual Studio 2010 and C#. and in the VS when i
> double clicking an event in the designer (like the click of the Button
> class) the Vs create but itself the handler method.
> how can I do it in the eclipse?

http://www.eclipse.org/windowbuilder/

Eric
Re: Auto generated eventhandler [message #700152 is a reply to message #700014] Fri, 22 July 2011 22:43 Go to previous messageGo to next message
Eran is currently offline EranFriend
Messages: 3
Registered: July 2011
Junior Member
thanks for replying

Eric - the windowBuilder looks great, but if I understand correctly it doesn't suits for Android application. so thanks but i guess its not the solution.

Ed - the "Source->Override/Implement Methods..." does not apply to the button but to the Hello class. and when Im in the graphical/xml view of the gui, the "Source->Override/Implement Methods..." is not available.

the object is BUTTON, and the property is android:OnClick
and the class contain the button is class Hello extends Activity. if its help in something.
Re: Auto generated eventhandler [message #700187 is a reply to message #700152] Fri, 22 July 2011 23:58 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 07/22/2011 05:43 PM, Eran wrote:
> thanks for replying
>
> Eric - the windowBuilder looks great, but if I understand correctly it
> doesn't suits for Android application. so thanks but i guess its not the
> solution.
>
> Ed - the "Source->Override/Implement Methods..." does not apply to the
> button but to the Hello class. and when Im in the graphical/xml view of
> the gui, the "Source->Override/Implement Methods..." is not available.
>
> the object is BUTTON, and the property is android:OnClick
> and the class contain the button is class Hello extends Activity. if its
> help in something.
>
It sounds like you are doing Android development. The Android
development tools are provided by Google. You should ask Android
related questions on the Android forums provided by Google.
icon14.gif  Re: Auto generated eventhandler [message #700318 is a reply to message #700187] Sat, 23 July 2011 07:21 Go to previous message
Eran is currently offline EranFriend
Messages: 3
Registered: July 2011
Junior Member
ok. thanks.
Previous Topic:How do I stop the Eclipse debugger from doing a full build every time?
Next Topic:How do I "load ImageIcons as resources through the class loader"?
Goto Forum:
  


Current Time: Sat Apr 20 02:12:41 GMT 2024

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

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

Back to the top