DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20596

Help no longer scrolls to correct entry if element name changed

           Summary: Help no longer scrolls to correct entry if element name
                    changed
           Product: JMeter
           Version: 1.9RC1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Main
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The Help module tries to find the correct place to scroll to when Help is 
invoked on a particular test element. This works OK for newly created 
elements, but does not currently work if the user changes the name of the 
element.

The Help module uses the getStaticLabel() method to find the anchor name.
The method is implemented as an instance method by the GUI classes (why is it 
not static?) which fetches the appropriate entry from the resource file.

However, the implementation in JMeterTreeNode currently does the same as 
getName(), which can be changed by the user.

The patch which follows seems to work OK, but is probably not the most 
efficient way to do it, especially since a new instance of the GUI class is 
created ... if the existing GUI class instance could be retrieved, that would 
be much better. If not, perhaps the getStaticLabel() method could be made 
static?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to