Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » methods of an Extended Class
methods of an Extended Class [message #1316174] Sat, 26 April 2014 10:31 Go to next message
alv alv is currently offline alv alvFriend
Messages: 2
Registered: April 2014
Junior Member
if i have to create a class like this:

Public class Mytable extend AbstractTableModel {
}

Is there a way to view in Eclipse (and automatically insert into class) all the methods of AbstractTableModel ? I mean ... If i implement an interface, Eclipse show me (with quickfix) all its methods (that i have to import into code). Is it possibile for extended class too ?

Thanks
Re: methods of an Extended Class [message #1317084 is a reply to message #1316174] Sat, 26 April 2014 22:52 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
There is a quick fix for this situation as well. Unless you defined the
subclass as abstract, there should be an error on the class statement
indicating that there are missing methods. Invoking Quickfix on the
error should give you an option to add unimplemented methods.
Re: methods of an Extended Class [message #1318387 is a reply to message #1316174] Sun, 27 April 2014 16:41 Go to previous messageGo to next message
Noopur Gupta is currently offline Noopur GuptaFriend
Messages: 58
Registered: December 2012
Member
Right-click in the sub-class > Source > Override/Implement Methods.

You can choose all the methods from the hierarchy that you want to override in the current class.
Re: methods of an Extended Class [message #1322045 is a reply to message #1318387] Tue, 29 April 2014 17:02 Go to previous message
alv alv is currently offline alv alvFriend
Messages: 2
Registered: April 2014
Junior Member
Really thanks
Previous Topic:Internal error
Next Topic:Generating a exectuable jar from jogl project
Goto Forum:
  


Current Time: Tue May 21 10:49:26 GMT 2024

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

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

Back to the top