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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -