Re: Programmatically doing 'Find Usages"

geertjan wielenga <[email protected]> Tue, 15 Nov 2016 00:05:08 +0100
Newsgroups gmane.comp.java.netbeans.devel
Organization Oracle Corporation
Message-ID <[email protected]>
You're going to have to provide more info, sorry. When/where/how will 
that menu item be shown, what's the workflow for using it.

Gj

On 15-11-2016 0:03, Sunil Dudani wrote:
>
> I want to provide a plugin specific 'Log Recommendations' menu item 
> rather than piggy back on the 'Find Usage'.
>
> Thanks
>
>
> On 11/14/2016 2:40 PM, geertjan wielenga wrote:
>>
>> Could you not, instead of the below, have a menu item in the Usage 
>> output window to process the statements?
>>
>> I.e., after the usages are displayed, you'd have a way of accessing 
>> those usages in the Usage output window and then do something with them?
>>
>> Gj
>>
>> On 14-11-2016 23:38, Sunil Dudani wrote:
>>>
>>> Hi Folks,
>>>
>>> Pardon my newbie questions:
>>>
>>> Background: i am writing a new search and recommend plugin for Java 
>>> development (please correct if this is not the right forum)
>>>
>>> 1. Specifically, i am requesting suggestions for sample/open source 
>>> code for "Find Usages". I wish to provide some additional user 
>>> action based on the search results.
>>>
>>> 2. Once the user clicks on a particular field (i have that working 
>>> using the sample CopyFQNAction plugin), i would like to display a 
>>> new button.
>>>
>>> Use case:
>>>
>>> User selects any java.util.logging.Logger.log() statements in a Java 
>>> file and the code should find all instances of similar log() 
>>> statements in all the open projects (same as what is being done by 
>>> 'Find Usages'. However, rather than display these in the Usage 
>>> output window, i want to analyze the statement and provide logging 
>>> recommendations to the user.
>>>
>>> Thanks,
>>> Sunil
>>>
>>
>