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 07:53 Go to next message
Ben Stover
Messages: 104
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 07: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 08:38 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
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 09:15 Go to previous message
shanky sohar is currently offline shanky sohar
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: Sun Apr 20 04:21:00 EDT 2014

Powered by FUDForum. Page generated in 0.02113 seconds