Skip to Content
avatar image
Former Member

Always getting 'import cannot be resolved' for IPrivate* imports

Hi,

Everytime I import a Web Dynpro DC from our NWDI I see 'import cannot be resolved' errors when I open for example the Component Controller implementation. An Organize Imports does not fix this. If I rightclick inside the code and select 'Show in Package Explorer' it jumps to the .java file for the implementation (within the gen_wdp folder). In that same tree I can see the IPrivate*.java files as well.

I also tried Repairing and Rebuilding the project. All to no avail...

Why is this happening and how can I resolve it?

Kind regards,

Pascal Willemsen

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 09, 2006 at 12:02 PM

    Hi Pascal,

    Do the generated .java-files contain any compilation errors?

    If for example the bindings in the imported DC are broken, broken JAVA-files will be generated in gen_wdp, and you won't be able to import them in your Component Controller.

    Usually, for me at least, this depends on broken data-bindings.

    Regards

    Mattias

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 09, 2006 at 12:08 PM

    Sometimes a Project -> Reload helps. Do you see any errors in the "Tasks" view?

    Armin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi, Armin.

      Great! Your answer is the best and reasonable solution in my case

      (ESS/MSS related WDJ development).

  • avatar image
    Former Member
    Jun 11, 2007 at 03:31 PM

    Pascal, Thanks so much for the solution mentioned, opening and closing the project helped me too.

    MSR

    Add comment
    10|10000 characters needed characters exceeded