Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Let Eclipse generate Implementation class skeleton for Interface?
Let Eclipse generate Implementation class skeleton for Interface? [message #649725] Thu, 20 January 2011 12:53 Go to next message
Ben StoverFriend
Messages: 108
Registered: January 2010
Senior Member
Assume I have got an Java Interface definition file.

Is there a way to let Eclipse automatically geberate a corresponding java source skeleton file for the implementation of this Interface?

Ben

[Updated on: Thu, 20 January 2011 12:53]

Report message to a moderator

Re: Let Eclipse genrate Implem class skeleton for Interface? [message #649737 is a reply to message #649725] Thu, 20 January 2011 13:38 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 20.01.2011 13:53, Ben wrote:
> Assume I have got an Java Interface definition file.
>
> Is there a way to let Eclipse automatically geberate a corresponding
> java source skeleton file for the implementation of this Interface?
Just write the interface and then use Quick Fix (Ctrl+1) on the error.
Another way is to use Source > Override/Implement Methods....

Dani
>
> Ben
Re: Let Eclipse genrate Implem class skeleton for Interface? [message #649747 is a reply to message #649737] Thu, 20 January 2011 14:15 Go to previous message
shanky sohar is currently offline shanky soharFriend
Messages: 13
Registered: January 2011
Junior Member

create an interface with the methods..

Then at the time of creating a class add the interface,

This class file will automatically have the default implementation of the interface method
Previous Topic:How to change wrap column for "source format" operation?
Next Topic:[SOLVED] How to create hierarchy search scope from a MethodDeclaration instance?
Goto Forum:
  


Current Time: Wed Apr 24 16:43:51 GMT 2024

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

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

Back to the top