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

Need to keep entire project open #135

Open
safrata opened this issue Apr 23, 2014 · 3 comments
Open

Need to keep entire project open #135

safrata opened this issue Apr 23, 2014 · 3 comments

Comments

@safrata
Copy link

safrata commented Apr 23, 2014

I always run into a situation where something is missing in "find usages" results because somebody added another subproject and I don't have it open. I need NetBeans to keep the entire project open no matter how the code is distributed to subprojects.

@kelemen
Copy link
Owner

kelemen commented Apr 23, 2014

Keeping all the projects open is rather expensive because it will force NB to index all the classes. Though I can see your problem. For now, you can do what I do in situations like this: Create a "Project group" named "Refactor - MyBuild". Open the root project and on its "Subprojects" node select "Open Subprojects". And wait until NB indexes them all. This way, you only have to pay the indexing price when doing refactoring.

I know this solution is suboptimal for you. For a long term solution, I'll think of a more efficient solution (though it is not trivial). For example, have refactor toggle button on the toolbar which only makes projects visible for refactoring if they depend on at least one of the opened projects.

@safrata
Copy link
Author

safrata commented Apr 25, 2014

It seems to me you are addressing a different problem. My problem is in no way restricted to refactoring, "find usages" is not a refactoring feature. I'm using it all the time. When I need to change a method's behavior, I very often need to see who uses it and how. I really want something to always have the entire project open and all the classes indexed.

@kelemen
Copy link
Owner

kelemen commented Apr 25, 2014

I see, though the "long term solution" I have described should solve your issue. Anyway, this isn't necessarily trivial, so it probably won't make it in the next release. Until then, you can only select "Open Subprojects" on the root project after reloading (or the initial project load).

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

No branches or pull requests

2 participants