| 
| How to become an IType to an instance? [message #221979] | Mon, 09 January 2006 18:10 |  | 
| Eclipse User  |  |  |  |  | Originally posted by: peter.mueller.web.de 
 Hi!
 
 I'm trying to write a plugin that wants to evaluate (=execute) a set of
 classes that is written by an Eclipse user in the workspace. The
 execution context should be the plugins own context, so it should run
 inside Eclipse' own VM. When the classes are changed by the user or the
 plugin, the temporarily constructed object should completely GCed and
 created with the new bytecode again-
 
 I know, that it's not encouraged to do that (IMHO one should instantiate
 classes of the workspace only in an extra VM), but for first
 results/success, this would be very nice, and maybe my assumption is wrong.
 Is there some nice way of putting a classloader on the workspace binary
 output directory? But then, the loading of the new bytecode has to be
 synchronized with the compiler runs and I assume that this would be
 quite slow, because of the file system in between.
 How could this be achieved?
 Maybe there's a more "Eclipse internal" way of loading such classes? Is
 the ScrapBook the place to look?
 Another approach might be, if there exists a way of something similar to
 "Object o=anIType.getClass().newInstance();"
 
 thanks in advance,
 Peter
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03718 seconds