Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to become an IType to an instance?
How to become an IType to an instance? [message #221979] Mon, 09 January 2006 18:10
Eclipse UserFriend
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
Previous Topic:Unexpected breakpoints hit in a IJavaBreakpointListener
Next Topic:help:modify javadoc by ASTParser
Goto Forum:
  


Current Time: Thu May 01 08:40:24 EDT 2025

Powered by FUDForum. Page generated in 0.32677 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top