is an interface which implementations are used to find selected Java element from
The implementation of
has to be public class with a default public construct so that
the new instance be created by calling Class.newInstance().
Each view can have one or more implementations of
to find currently selected Java element.
s should be registered in extension.xml within
Example - CodeEditorElementSelector should be able to find selected Java element from CodeEditor view:
To force usage of concrete ElementSelector for only once withouth any registration the
be set as a propery of the Context. Look at the constant
When implementing method
try to return the most detail source element which
is currently selected, for example the caret is within the element code.
to return can be created either by method
is used by module refactoring-java to refactor or find usages of Java elements.
It is supposed that each view which wants to refactoring any Java element which is currently selected can supply
this element using