Background:
I have imported a java project (not sure the project was created as Java Project) in Eclipse but it wasn't giving any IntelliSense (code suggestion), errors were not marked, build automatically etc. "(Project) - Properties" (alt + enter) was not providing all the option usually seen in regular java project. That led me to think that eclipse is not able to recognize this project as valid java project.
Solution:
Change the project type solved the issue. Actually I had to deselect 'Java' - Save and than open again and select 'Java' to make it work.
How to change project type in eclipse:
1. "(Project) - Properties" (alt + enter)
2. From left navigation panel, select 'Project Facets'
3. From right side, select 'Java' and appropriate version from drop down.
4. Apply and Save
When selecting 'Java' in project facet first time:
When 'Java' is selected as first time facet for a project, a new link 'Further configuration available...' will appear at the bottom. That will allow to specify source and build path. Always good idea to check that link
Few shortcuts:
1. "Alt + Enter" - will open the Project Properties
I have imported a java project (not sure the project was created as Java Project) in Eclipse but it wasn't giving any IntelliSense (code suggestion), errors were not marked, build automatically etc. "(Project) - Properties" (alt + enter) was not providing all the option usually seen in regular java project. That led me to think that eclipse is not able to recognize this project as valid java project.
Solution:
Change the project type solved the issue. Actually I had to deselect 'Java' - Save and than open again and select 'Java' to make it work.
How to change project type in eclipse:
1. "(Project) - Properties" (alt + enter)
2. From left navigation panel, select 'Project Facets'
3. From right side, select 'Java' and appropriate version from drop down.
4. Apply and Save
When selecting 'Java' in project facet first time:
When 'Java' is selected as first time facet for a project, a new link 'Further configuration available...' will appear at the bottom. That will allow to specify source and build path. Always good idea to check that link
Few shortcuts:
1. "Alt + Enter" - will open the Project Properties