Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restrict Code Minings search to ignore JRE and Dependencies #97

Open
4ndrej opened this issue Mar 21, 2019 · 2 comments
Open

restrict Code Minings search to ignore JRE and Dependencies #97

4ndrej opened this issue Mar 21, 2019 · 2 comments

Comments

@4ndrej
Copy link

4ndrej commented Mar 21, 2019

The Eclipse 2018-12 (4.10) added Code Minings support in Java editor which is supercool feature generating pseudo-line above the type/field/method with reference count and after click it perform search to show those references in Search tab.

The problem is that this counts also stuff from JRE and Dependencies, so with specific field

private ShipmentRepository shipmentRepository;

there is only 1 reference found (it's in my code), but for more generic method

public void add(Shipment shipment)

it founds 67 references (with 66 in spring and tomcat dependent jars and only 1 in my project code).

I am only interested in that 1 reference in my code, but I am not able to restrict Code Minings search to ignore JRE and Dependencies.

I think it will be cool to add this as the config option (?) here.

I asked this question also as how to restrict Eclipse Code Minings search to avoid JRE and Dependencies on stackoverflow.

@angelozerr
Copy link
Owner

@4ndrej please create an issue in Eclipse bugzilla and reference it in this issue. My JDT CodeMining project is a POC and I try to move my work step by step in Eclipse JDT. For the moment there are only implementation and references minings in Eclipse JDT.

I don't want to add some new options in this project. So please suggest your idea in Eclipse bugzilla. Thanks!

@4ndrej
Copy link
Author

4ndrej commented Mar 22, 2019

Creating account in Eclipse Bugzilla is quite adventurous experience. I wonder what kind of pot they smoke...
However, this https://bugs.eclipse.org/bugs/show_bug.cgi?id=543289 seems to be related, although the analysis looks little bit mistaken.
Created the issue at Eclipse's Bugzilla https://bugs.eclipse.org/bugs/show_bug.cgi?id=545661

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants