From mboxrd@z Thu Jan 1 00:00:00 1970 From: Umair Rasool To: sourcenav@sources.redhat.com Subject: How to find cross reference for local variables. Date: Wed, 09 May 2001 03:09:00 -0000 Message-id: <3AF919DB.87675C3D@ifi.uio.no> X-SW-Source: 2001-q2/msg00141.html Dear Sir, My question is regarding finding references to a class. Please consider the following example public class Database{ // class body public void writeToDatabase(){ // method body } } public class AnotherClass{ Database db = new Database; public void useDb(){ db.writeToDatabsse } } In this example I want to find all the places in other classes where the class Database is used. By using the xref feature in Source Navigator I don't get any references to the class Database. In other words Source Navigator is unable to find references to class Database, because the variable (db in this example) is defined (and initilalized) in the class body of class AnotherClass. If the varialbe in defined (or initlized) in a class method then Source Navigator gives all references to this particular class. Is there any way of finding out all the classes in the source code that are using the class underconsideration in their bodies and not in their methods? Are there som preferences that I may have to set to get through this problem? Thanking you in anticipation