A question about cooperation between plugins... [message #69764] |
Tue, 10 June 2003 16:29  |
Eclipse User |
|
|
|
Originally posted by: DjShark.softhome.net
Hello,
I've recently written a project that serves as a parser. The parser's
purpose, among other things, is to read a given text file and find out - at
certain points - that it needs to load a specific class and instantiate it
(using, Class.forName("...");).
Due to a requirement, that I must fullfill, I need to make a plugin out of
it. The good news is that I've successfully created a plugin for this
project and it works, except in the following case:
When I save a text file and write to it a NEW class name (A class which is
NOT part of the plugin, but it inherits from a class that does exist) - The
plugin is unable to find the class (I get an instantiation exception...).
My question is: How can I let the plugin instantiate the new class (without
the need to physically add it to the plugin).
Note: Another requirement was that I need to be able to extend the system
(by writing new classes that inherit from a certain class that IS located in
the plugin) WITHOUT the need to re-create the plugin, or add to it the new
classes.
Any suggestions would be greatly appreciated :-)
Thanx in advance,
Dj Shark
|
|
|
Re: A question about cooperation between plugins... [message #75851 is a reply to message #69764] |
Mon, 16 June 2003 17:23  |
Eclipse User |
|
|
|
Originally posted by: John_Arthorne.oti.com_
See:
http://eclipsewiki.swiki.net/114#augmentedClasspath
--
Dj Shark wrote:
> Hello,
>
> I've recently written a project that serves as a parser. The parser's
> purpose, among other things, is to read a given text file and find out - at
> certain points - that it needs to load a specific class and instantiate it
> (using, Class.forName("...");).
> Due to a requirement, that I must fullfill, I need to make a plugin out of
> it. The good news is that I've successfully created a plugin for this
> project and it works, except in the following case:
> When I save a text file and write to it a NEW class name (A class which is
> NOT part of the plugin, but it inherits from a class that does exist) - The
> plugin is unable to find the class (I get an instantiation exception...).
>
> My question is: How can I let the plugin instantiate the new class (without
> the need to physically add it to the plugin).
>
> Note: Another requirement was that I need to be able to extend the system
> (by writing new classes that inherit from a certain class that IS located in
> the plugin) WITHOUT the need to re-create the plugin, or add to it the new
> classes.
>
> Any suggestions would be greatly appreciated :-)
>
> Thanx in advance,
> Dj Shark™
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08010 seconds