Import from Log

5 views
Skip to first unread message

Ming-Hsuan TU

unread,
May 16, 2012, 11:57:27 AM5/16/12
to eclim-user
I am writing Android application with Eclim recently.

However, I got a problem when automatically add import statement from
Log(cursor under "Log" token).

Eclim did give me the import statement from Log ,but the import
statement was not really what I want.

However, I am not prompted to choose the element I wish to import from
a list because Eclim does not show the list for me.

Eclim automatically force to generate
"import org.apache.commons.logging.Log" , but what I want is "import
android.util.Log".

I use gvim as an embedded eclipse editor. And I work pretty good for
other tokens with :JavaImport except Log token.

I am Not sure If I missed something in Eclim.

Thanks in advance.

Eric Van Dewoestine

unread,
May 17, 2012, 2:29:24 PM5/17/12
to eclim...@googlegroups.com
I just ran a test with an android project and running :JavaImport on
Log presented me with the choice to import
org.apache.commons.logging.Log or android.util.Log. If you are not
getting that same choice then something is misconfigured with your
project's classpath, or the android plugin isn't finding your android
libraries. I'd recommend checking your project's android settings in
the eclipse gui to make sure everything looks correct there.

Is android.util.Log the only class you're having problems importing?
In theory if you can't import Log, attempting to import other android
classes should fail (classes not being found) as well.

--
eric

Ming-Hsuan TU

unread,
May 25, 2012, 12:29:55 PM5/25/12
to eclim-user
Thanks for your reply, I think that I have got rid of this issue. It
works fine in other works which use android.util.Log, so It may be
misconfigured in project's classpath before.
Thank you ,Eric:)
Reply all
Reply to author
Forward
0 new messages