facebook

Organize Import not working

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #291825 Reply

    Whenever I organize imports (CTRL-SHIFT-O) it wont recognize the classes of my project. However when I hit CTRL-1 it offers me to import the needed class. So the IDE does know of my class.
    I am using MyEclipse 6.6

    Regards
    rene

    #291840 Reply

    Greg
    Member

    Rene,

    When you do Ctrl+shift+O do other classes get imported just not ones in your own java project?

    Are then in the same package as the class you are editing or in the same project?

    Can you open those other classes by using Ctrl+Shift+T? If you can type in the name of your class in this dialog and have it find it then Ctrl+shift+O should work.

    Let us know what you find out.

    #291862 Reply

    I am editing eg. CostcenterManager.java in package my.company.service.managerimpl. I am inserting line:

    Costelement _ce;

    I hit CTRL-SHIFT-O : nothing happens.
    I mouseover costelement and hit CTRL-1 : I get the suggestion to import my.company.model.Costelement. Which I do, because thats the import I need.

    I hit CTRL-SHIF-T and can’t find costelement.java.

    Maybe the reason is that I got my service layer in a different source folder, but it was working earlier. Maybe some classpath or something similiar to this corrupt?

    Thanks
    René

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Organize Import not working

You must be logged in to post in the forum log in