Get ClassPath Information in Project Window

Hi everyone, I was trying to get classpath information in text editor and now I need same information in project window.

forum4.jpg

When I click, I need to get classpath of these file(In this, example, selected file is CreateLog)

When I do same process in text editor, I use

Editor editor = PlatformDataKeys.EDITOR.getData(e.getDataContext());

but I guess, I need different method now and I don't have a clue.

2 comments
Comment actions Permalink

Can You post an example of what You are trying to achieve (with expected result)? I'm not sure what do You wan't to receive - classes imported by given file/class?

0
Comment actions Permalink

Thanks for reply, I solved it. I want to get the classpath of clicked file, for example:c

User clicked newLog.java class and right click and "Create Log",  then I need to get "c/a/newlog.java"

0

Please sign in to leave a comment.