Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Running a plugin that requires classes from another project
Running a plugin that requires classes from another project [message #50058] Tue, 27 May 2003 12:37 Go to next message
Eclipse UserFriend
Originally posted by: michael.renz.web.de

Hello,
I have a litte plugin project implementing a view that requires a class
from another standard Java project from my workspace.
I have included this Java project in the build path of the plugin-project,
the plugin project allows me to import this class and I also can declare a
class variable.
But once I am running the plugin, I am getting an error mesaage in the
plugin's view: "An error has occurred when creating this view". The error
happens, when I am instanciating the class variable in the
createPartControl routine of the view.

What is wrong with that?

Michael
Re: Running a plugin that requires classes from another project [message #50088 is a reply to message #50058] Tue, 27 May 2003 12:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kduffey.marketron.com

A wild guess off hand but is your plugin including the class(es) from your
other project? If not, that is probably the problem. Compile time and run
time are two different beasts when it comes to class visibility. Compile
time is easy because you can simply point the compiler classpath to any
location on your local system where classes are to be found. At runtime, you
don't have the luxury becuase each system may have different locations for
things like plugins. However you are building your plugin, you need to make
sure you are including the other project class(es) as well in your plugin.


"Michael Renz" <michael.renz@web.de> wrote in message
news:bb047r$8qj$1@rogue.oti.com...
> Hello,
> I have a litte plugin project implementing a view that requires a class
> from another standard Java project from my workspace.
> I have included this Java project in the build path of the plugin-project,
> the plugin project allows me to import this class and I also can declare a
> class variable.
> But once I am running the plugin, I am getting an error mesaage in the
> plugin's view: "An error has occurred when creating this view". The error
> happens, when I am instanciating the class variable in the
> createPartControl routine of the view.
>
> What is wrong with that?
>
> Michael
>
Re: Running a plugin that requires classes from another project [message #51678 is a reply to message #50088] Wed, 28 May 2003 08:31 Go to previous message
Eclipse UserFriend
Originally posted by: boris.litvak.lycos.com

In short, add your project (if it is a plugin) to the <requires>
configuration
element in plugin.xml.

Developer.
Previous Topic:Viewer.refresh and lock/unlock
Next Topic:CVS Diff Initialisation
Goto Forum:
  


Current Time: Fri May 02 16:21:56 EDT 2025

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

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

Back to the top