• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

implementation class of an interface

 
Ranch Hand
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In eclipse ,

I have to find implementation class of an interface,how I can find this ?

I tried the option reference in workspace ,but not useful.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The do-it-yourself approach: do a find on the string "implements XXX".

A slightly better approach: right-click on the interface name, select Open Type Hierarchy. The Hierarchy view shows the interface with its implementation classes.
 
jacob deiter
Ranch Hand
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you ,please suggest when I use "open call hierarchy" Ctl+alt+h.,"reference" and "declaration".
[ October 22, 2008: Message edited by: jacob deiter ]
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am sorry, but I do not understand the question.
 
jacob deiter
Ranch Hand
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IN eclipse ,just right click,lot of option avaliable,like reference ->workspace and "declaration->workspace" .what are he use of both options
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The "reference" option will search for, and list, every place the selected item is referenced. References for interfaces include classes that implement them, variables declared to be of that type, methods that return objects that implement the interface, and so on.

The "declarations" option will search for, and show, all of the places where the selected item is declared. In other words, the statement that defines the item. For an interface, this would be the interface declaration, which means that you will typically get only one item in the list.

The "workspace" suboption limits the search to the workspace (all projects).

Doing any of these searches open the Search View which displays the results of the search using a tree view. You can expand the tree and double-click on any item to go to it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic