DefaultLastSegmentFinder.getLastSegment() [message #1709818] |
Thu, 01 October 2015 11:26 |
Stephan Hildebrandt Messages: 25 Registered: July 2015 |
Junior Member |
|
|
Hi,
I just stumbled across the implementation of LastSegmentFinder.getLastSegment() in FQNPrefixMatcher.DefaultLastSegmentFinder. From the name of the method and the interface I would have guessed that the method simply returns the last segment of a fully qualified name, e.g. "MyClass" from the FQN "MyPackage.MyClass". However, that is not all what the implementation in DefaultLastSegmentFinder does. If the FQN starts with an upper-case letter, the method returns the complete FQN. Why is that?
The effect of this implementation is that only those elements are shown in the list of content assist proposals that reside in a container whose name does not start with an upper-case letter.
I am changing this behavior by injecting my own implementation of LastSegmentFinder but I'd like to know the reason why the default implementation is like it is.
Best regards
Stephan
|
|
|
Powered by
FUDForum. Page generated in 0.03416 seconds