This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 36443

Summary: Expose getElementByOffset() as a public API
Product: java Reporter: _ pkuzel <pkuzel>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED FIXED    
Severity: blocker Keywords: API
Priority: P3    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 30599    

Description _ pkuzel 2003-10-06 09:45:35 UTC
I would like programatically access current
position in Java editor. I'm interested in
semantics access:

   String string = "";
   string.toString|();  // | = caret position

returns something like:

  toString method in String class
Comment 2 Martin Matula 2004-11-12 13:27:52 UTC
We have JMManager.getElementByOffset() which seems to do exactly what
you need. However, this is not a public API. We should publish it in 4.1.
Comment 3 Tomas Hurka 2005-07-29 16:50:47 UTC
Fixed in issue #59339. 
Resource.getElementByOffset() is now available in API.
Comment 4 Quality Engineering 2007-09-20 12:04:55 UTC
Reorganization of java component