| [Q] org.eclipse.jdt.internal.core.builder.SourceFile in Eclipse 2.1 [message #24043] | 
Thu, 15 May 2003 04:06   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 
> 
>
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.03377 seconds