I'm a huge fan off Eclipse hotkeys, Ctrl + Shift + G being one of my favorite. However, I recently had to completely toss out my workspace and load a new one to switch to a new branch after some merge-cause had occured. Either that, or a later checkin which messed with some classpath files, seems to have broken my ability to search using Ctrl + Shift + G . I now always find nothing.
I have multiple maven projects which all link to each other, and I thought the issue originally was with maven. However, I can't even find methods in the same project, or even the exact same file, using Ctrl + Shift + G now.
Can anyone suggest the process I take to make my eclipse aware of my source code such that it can properly search it?
EDIT: I don't know how I missed this previously. It seems that eclipse is throwing a class-not-found exception looking for the class
org.eclipse.wb.internal.core.utils.dbt.core.project utils
Before this exception is thrown I can do search as normal, after this exception the search breaks. So the issue is actually the exception i'm sure. A reboot does fix things temporarily, Unfortunately, the exception keeps getting thrown after I use eclipse for awhile. So now I'm looking into the cause of the exception. I may post an answer here and/or open a new question depending on how much luck I have researching the cause of the exception on my own.
Open the Preferences dialog. (On Windows, choose the menu item Window>Preferences ).
Choose the preferences page General>Keys .
Navigate down to the command References in Workspace . Select it. If the displayed binding is not Ctrl + Shift + G , you can set it by:
i believe maybe your hotkey was unprogramed somehow, try readding it
Window -> Preferences -> General -> Keys
Mac: Eclipse -> Preferences -> General -> Keys
Hope this helps
Just an update on this issue. Once I realized the exception was the cause of my issue I researched it on Stack Overflow . I found another question that addressed the issue, though I'm afraid I don't have the link now. The suggested answer though was to start Eclipse with the --clean
option. The issue appears to have gone away as soon as I did this.
I have upvoated both the other answers as thank-you for you responses. They were good answers given the information I original provided, it was my fault I wasn't aware of the full issue when I posted the question.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.