Custom usages types


I'm working on a plugin and I want to be able to either

  • filter usages before showing them in order to show only relevant ones or
  • being able to introduce a new usage type (example: for class X a usage of type "In annotated method" will be @SomeAnnotationKnownBefore public void targetMethod(X x) { }

Can you give me some ideas? Basically I want to show only some usages to the user, which they'll find relevant in the situation the plugin supports.


1 comment
Comment actions Permalink

Hi Dawid,

It might be worthwhile checking out if registering a smart completion contributor will fulfil your requirements
Here is a high level view of what smart completion is

If this is not what you are after, perhaps you could provide a concrete example of what functionality your plugin will offer? :)



Please sign in to leave a comment.