java - How to get fully qualified class name from IResource object? -


i have iresource object of java class. need qualified class name object.

my iresource.getfullpath().tostring() gives me /myproject/src/abc/def/myclass.java. want abc.def.myclass it.

how can qualified class name?

not sure if want qualified class name or qualified location in file system. i'll mention both:

class name:

((itype) javacore.create(ifile)).getfullyqualifiedname() 

also, make sure check nulls , instanceof.

resource location:

ifile.getlocation() 

Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -