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.
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
See dumb (non semantics) implementation GetJavaWord.forPane() <http://javadoc.netbeans.org/source/browse/javadoc/src/org/netbeans/modules/javadoc/search/GetJavaWord.java?rev=1.14.16.2&content-type=text/x-cvsweb-markup&only_with_tag=prj40_prototype>.
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.
Fixed in issue #59339. Resource.getElementByOffset() is now available in API.
Reorganization of java component