Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » A question about cooperation between plugins...
A question about cooperation between plugins... [message #69764] Tue, 10 June 2003 16:29 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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™
>
>
>
Previous Topic:How to obtain the branch name for a CVSTag object? [org.eclipse.team.cvs.core]
Next Topic:Getting the full path to files in subfolders of a plugin?
Goto Forum:
  


Current Time: Sat Jul 26 19:39:45 EDT 2025

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

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

Back to the top