Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Linking classes across projects
Linking classes across projects [message #614769] Thu, 09 November 2006 03:16
Mark Johnson is currently offline Mark JohnsonFriend
Messages: 10
Registered: July 2009
Junior Member
According to the eclipse Web site, this forum is a good place to ask
questions both about ve and about plugin development. Please excuse me if
I'm posting in the wrong place.

I'm going nuts trying to get a plug-in to run.
My plugin ("ModulePlugin") uses a package that exists in another Java
project ("ModuleCore") that is not itself a plugin.

My plugin code has an import that looks something like:

import com.foo.modulecore.FileReader;

Eclipse marks that import as an error: "com.foo.modulecore is not visible".
The QuickFix is to add ModuleCore (the project) to the plugin's build path.
I select that fix and the problem disappears.

But when I run the plugin, the plugin code that uses FileReader can't find
it. I can only see the ClassNotFoundException if I run the platform in debug
mode; otherwise, I just get a console message:

Unhandled event loop exception
Reason:
com/foo/modulecore/FileReader
So supposedly, the quick fix fixes the build path, but when I run it, the
plugin can't find the code.

Also, if I use PDE Tools->Build classpath... before trying to run the
platform, the original error ("com.foo.modulecore is not visible")
reappears.

I've tried restarting Eclipse--same problem.

What am I missing here? All I want to do is share code between projects. Is
that so wrong? :{)

I'll mention that the FileReader class accesses the filesystem. I'm not sure
if I'm breaking any rules by accessing the filesystem directly. I've noticed
an IFile interface in Eclipse, and I'm wondering what it's for. Whether that
is my problem I have no idea.

Thanks to anyone who can help me with this. I'm new at developing plugins,
and it's a bit overwhelming.

--Mark Johnson

Silver Spring, MD
Previous Topic:Tab Folder Drops Tabs
Next Topic:getter and setter methods are private?
Goto Forum:
  


Current Time: Wed Sep 25 10:14:21 GMT 2024

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

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

Back to the top