Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsClass.forName in plugin developement
https://www.eclipse.org/forums/index.php/mv/msg/210161/674012/#msg_674012
i am developing plug-in eclipse wich contains an wizard.This wizard lets the user to enter a class name with package name in current project and in treatment i need to do Class.forName("Class entred") but it dont work.Class Not found.
I think that the use of Class.forName in Plugin developement is not allowed.so how to do that?
Thinks for your help]]>George 2011-05-25T14:14:43-00:00Re: Class.forName in plugin developement
https://www.eclipse.org/forums/index.php/mv/msg/210161/674587/#msg_674587
I am using Class.forName() in my Plug-In Project and it works just fine, so either your class is actually not available, or there is a miss spell or something similiar.
It sounds like you'd want to check for classes in the Workscpaces (??) since there is a wizard that let's someone do that. You could look into the code of JDT and see how they do it with their creation-wizards. I think the Java model already contains all the classes that are available and you can easily query that model to check if you class exists.