Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » [Q] org.eclipse.jdt.internal.core.builder.SourceFile in Eclipse 2.1
[Q] org.eclipse.jdt.internal.core.builder.SourceFile in Eclipse 2.1 [message #24043] Thu, 15 May 2003 04:06 Go to next message
Eclipse UserFriend
Hi,

for my task of creating graph of dependencies of Java source files I used
IncrementalImageBuilder's ability to recognize dependencies among compiled
classes.
To be specific, this ability has class
org.eclipse.jdt.internal.compiler.Compiler, which requires as input array of
org.eclipse.jdt.internal.core.builder.SourceFile.

And this is the root of my problem - in Eclipse 2.1 SourceFile has only one
constructor which requires ClasspathMultiDirectory and this class is package
private, so I am unable to use it.

I know that my solution of reusing Compiler's ability to recognize
dependencies is a bit unorthodox, but I was unable to find same
functionality elsewhere in Eclipse.

So, please tell me whteher there is different class that I could use instead
of SourceFile or if is the strictness (most things package private) in
builder "area" necessary.


Thanks in advance,

Tom
Re: [Q] org.eclipse.jdt.internal.core.builder.SourceFile in Eclipse 2.1 [message #24277 is a reply to message #24043] Thu, 15 May 2003 06:16 Go to previous message
Eclipse UserFriend
Tom,

Classes in internal packages are not supposed to be used outside their
plugin (see
http://www.eclipse.org/articles/Article-API%20use/eclipse-ap i-usage-rules.ht
ml)

I don't think there are any plans to make this code API. But you can still
copy it and modify it (we're open source after all).

Jerome

"Tomas Malik" <malikt@dev.disnet.cz> wrote in message
news:b9vhpt$lr4$1@rogue.oti.com...
> Hi,
>
> for my task of creating graph of dependencies of Java source files I used
> IncrementalImageBuilder's ability to recognize dependencies among compiled
> classes.
> To be specific, this ability has class
> org.eclipse.jdt.internal.compiler.Compiler, which requires as input array
of
> org.eclipse.jdt.internal.core.builder.SourceFile.
>
> And this is the root of my problem - in Eclipse 2.1 SourceFile has only
one
> constructor which requires ClasspathMultiDirectory and this class is
package
> private, so I am unable to use it.
>
> I know that my solution of reusing Compiler's ability to recognize
> dependencies is a bit unorthodox, but I was unable to find same
> functionality elsewhere in Eclipse.
>
> So, please tell me whteher there is different class that I could use
instead
> of SourceFile or if is the strictness (most things package private) in
> builder "area" necessary.
>
>
> Thanks in advance,
>
> Tom
>
>
Previous Topic:Ant WAR/web.xml Problem
Next Topic:Marker Bar
Goto Forum:
  


Current Time: Sun May 11 20:46:32 EDT 2025

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

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

Back to the top