Bug 106610 - [search] Search for reference of an attribute: include getter/setter
Summary: [search] Search for reference of an attribute: include getter/setter
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-10 07:48 EDT by pjh180375 CLA
Modified: 2009-01-23 11:33 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pjh180375 CLA 2005-08-10 07:48:14 EDT
public class TestClass
{
  private boolean testBoolean=false;
  
  public boolean getTestBoolean()
  {
    return testBoolean;
  }
  public boolean isTestBoolean()
  {
    return testBoolean;
  }
  public void setTestBoolean(boolean testBoolean)
  {
    this.testBoolean = testBoolean;
  }

  private String  testString=null;
  public String getTestString()
  {
    return testString;
  }
  public void setTestString(String testString)
  {
    this.testString = testString;
  }
}

If you search now for the references of the attributes testBoolean and 
testString you will find only the references within this class. It's very 
useful to add the option "search for references including getter/setter". In 
this case you will find all references within this class for the attribute and 
all references to the getter and the setter methods for this attribute with one 
search.