Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » source attachment not found ... sometimes
source attachment not found ... sometimes [message #255806] Thu, 21 August 2008 07:15
Eclipse UserFriend
Hi,

I've wrote a plugin with a custom classpath container. I create the
classpath entries as IClasspathEntry with source attachment as
org.eclipse.core.runtime.Path to 'src' directories outside the project.
This works fine for the most of the entries. But I get errors for some
entries, regardless that the directories given as source attachment for
such an entry exists (yes, no typo or space character between)
Far more strangely: I get this "source not found" error in my normal
Eclipse workspace. This workspace also includes the Plugin Project for my
custom classpath container. But if I test this plugin and start a testing
eclipse application via the plugin.xml/Overview, then, within such a new
eclipse instance, the error doesn't occur. If I use my classpath
container, insert the lib which previously leads to the "source not found"
error, now it works perfect and the source files, taken from the source
attachment location are opened.

This is the fragment I use for creating the classpath entries:

Path sourceAttachment = new Path(sandboxDir + File.separator +
strSourceAttachment);
IClasspathEntry result = JavaCore.newLibraryEntry(lib, sourceAttachment,
null, true);

Any suggestion, why it works not all the time ?

Kindly regards
Dominik
Previous Topic:is this the question about jdt?(jee-ganymede)
Next Topic:Debug window doesn't activate thread
Goto Forum:
  


Current Time: Thu Jul 17 13:27:47 EDT 2025

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

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

Back to the top