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 - Expose getElementByOffset() as a public API
Summary: Expose getElementByOffset() as a public API
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords: API
Depends on:
Blocks: 30599
  Show dependency tree
 
Reported: 2003-10-06 09:45 UTC by _ pkuzel
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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