Open Actor does not find the actor source code when Kepler is invoked from within Eclipse
Marc and I noticed that "Open Actor" fails to find the source code when Kepler is invoked from within Eclipse.
I looked at the classpath by using Tools -> Check System Settings and indeed ptolemy/src is missing from java.class.path when Kepler is invoked from Eclipse.
I'm not sure why this would be the case, the code in the
Open Actor looks in the classpath for the corresponding source file.
In the non-Kepler Ptolemy build, the .class files are placed in the same directory
as the .java files. This is because (in theory) Java .class files should be
the same and separate target directory should not be necessary.
See also bug #5538
#2 Updated by Christopher Brooks almost 7 years ago
It turns out that my fixes to Eclipse.java were causing confusing error messages
in the Eclipse console during startup, so I commented out those changes
and added ptolemy.util.ClassUtilities.sourceResource() which searches each
element of the classpath that names a directory for a directory named "src"
and then looks for the source file. This makes it possible to find the
source .java file without modifying the Eclipse setup. This should also
work for other IDEs.