Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » IPackageFragment -> Output location
IPackageFragment -> Output location [message #137006] Sun, 25 January 2004 15:41 Go to next message
Eclipse UserFriend
Hi,

is there any easy way to get the ouput location of an IPackageFragment,
e.g. as an IPath?

Thanks,

Jochen
Re: IPackageFragment -> Output location [message #137042 is a reply to message #137006] Mon, 26 January 2004 04:47 Go to previous messageGo to next message
Eclipse UserFriend
IPackageFragment pkg = ...
IPackageFragmentRoot root = (IPackageFragmentRoot) pkg.getParent();
IClasspathEntry cpEntry = root.getRawClasspathEntry();
IPath output = cpEntry.getOutputLocation();
if (output == null) {
IJavaProject project = (IJavaProject) root.getParent();
output = project.getOutputLocation();
}

Jerome

"Jochen Kressin" <jkressin@kressin.info> a
Re: IPackageFragment -> Output location [message #137054 is a reply to message #137042] Mon, 26 January 2004 05:11 Go to previous message
Eclipse UserFriend
Thanks very much, thats what I was looking for!

Jochen

Jerome Lanneluc wrote:
> IPackageFragment pkg = ...
> IPackageFragmentRoot root = (IPackageFragmentRoot) pkg.getParent();
> IClasspathEntry cpEntry = root.getRawClasspathEntry();
> IPath output = cpEntry.getOutputLocation();
> if (output == null) {
> IJavaProject project = (IJavaProject) root.getParent();
> output = project.getOutputLocation();
> }
>
> Jerome
>
> "Jochen Kressin" <jkressin@kressin.info> a écrit dans le message de news:
> bv19hv$qq9$1@eclipse.org...
>
>>Hi,
>>
>>is there any easy way to get the ouput location of an IPackageFragment,
>>e.g. as an IPath?
>>
>>Thanks,
>>
>>Jochen
>
>
>
Previous Topic:JRE errors
Next Topic:javatype attribute in org.eclipse.ui.newWizards extension point
Goto Forum:
  


Current Time: Sun Jul 13 11:30:05 EDT 2025

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

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

Back to the top