[
https://issues.jboss.org/browse/FORGE-2585?page=com.atlassian.jira.plugin...
]
Claus Ibsen commented on FORGE-2585:
------------------------------------
Yeah being able to get the underlying resource abstraction would benefit also.
Though a first goal would be just the line number / column number.
So if we can have both that would be great.
Though the internal api in eclipse jdt operates with an absolute position. So if we can
have that as well? eg in a java method code block. I would need to dig out what code
statement the cursor is at, so I can know if its a method call expression or something
else etc.
So maybe if we have 3 details
- line number
- column number (in the line)
- absolute position (0 = first char ... N = last char)
Allow to obtain the cursor position of the current active editor
window
-----------------------------------------------------------------------
Key: FORGE-2585
URL:
https://issues.jboss.org/browse/FORGE-2585
Project: Forge
Issue Type: Feature Request
Affects Versions: 3.0.0.Beta3
Reporter: Claus Ibsen
Fix For: 3.x Future
For background see:
https://github.com/fabric8io/fabric8/issues/5625
It would be great if a forge command can obtain information about what is the current
active window and the cursor position.
Essentially what we would like to know is that if the end user is currently editing a
file, such as java or xml, and if so, what is the current cursor position in that file, or
line number / column number etc.
Then the commands can use that to react accordingly. For example in fabric8 we want to be
able to find out if the cursor is positioned in a Camel route and then let the command be
smart to use that route etc.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)