Skip to main content



      Home
Home » Newcomers » Newcomers » Need help with org.eclipse.core.runtime
Need help with org.eclipse.core.runtime [message #210548] Sun, 13 May 2007 08:42 Go to next message
Eclipse UserFriend
Originally posted by: jead99.hotmail.com

Hey,

I'm working with ASTParser and using the following statement to get a
pointer to a .java which I then can parse:

IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(new
Path("Hello.java"));

The problem is that I can't get access to org.eclipse.core.runtime.Path
even though I included org.eclipse.core.runtime_3.2.0.v20060603.jar in
my project.

import org.eclipse.core.runtime.*; works fine but doesn't give me access
to the Path.

I then tried import org.eclipse.core.runtime.Path; but the compiler
gives me an error saying "The import org.eclipse.core.runtime.Path
cannot be resolved".

Any ideas on how to get access to Path or are there other ways to get an
IFile to parse ?

Thanks.
Re: Need help with org.eclipse.core.runtime [message #210558 is a reply to message #210548] Sun, 13 May 2007 08:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Martin,

It's in org.eclipse.equinox.common's jar.


Martin wrote:
> Hey,
>
> I'm working with ASTParser and using the following statement to get a
> pointer to a .java which I then can parse:
>
> IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(new
> Path("Hello.java"));
>
> The problem is that I can't get access to
> org.eclipse.core.runtime.Path even though I included
> org.eclipse.core.runtime_3.2.0.v20060603.jar in my project.
>
> import org.eclipse.core.runtime.*; works fine but doesn't give me
> access to the Path.
>
> I then tried import org.eclipse.core.runtime.Path; but the compiler
> gives me an error saying "The import org.eclipse.core.runtime.Path
> cannot be resolved".
>
> Any ideas on how to get access to Path or are there other ways to get
> an IFile to parse ?
>
> Thanks.
Re: Need help with org.eclipse.core.runtime [message #210566 is a reply to message #210558] Sun, 13 May 2007 09:34 Go to previous message
Eclipse UserFriend
Originally posted by: jead99.hotmail.com

Thanks alot for your fast reply ;)

Now it works.

/Martin

Ed Merks wrote:
> Martin,
>
> It's in org.eclipse.equinox.common's jar.
>
>
> Martin wrote:
>> Hey,
>>
>> I'm working with ASTParser and using the following statement to get a
>> pointer to a .java which I then can parse:
>>
>> IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(new
>> Path("Hello.java"));
>>
>> The problem is that I can't get access to
>> org.eclipse.core.runtime.Path even though I included
>> org.eclipse.core.runtime_3.2.0.v20060603.jar in my project.
>>
>> import org.eclipse.core.runtime.*; works fine but doesn't give me
>> access to the Path.
>>
>> I then tried import org.eclipse.core.runtime.Path; but the compiler
>> gives me an error saying "The import org.eclipse.core.runtime.Path
>> cannot be resolved".
>>
>> Any ideas on how to get access to Path or are there other ways to get
>> an IFile to parse ?
>>
>> Thanks.
Previous Topic:eclipse tomcatplugin problem
Next Topic:Exporting to Jar File
Goto Forum:
  


Current Time: Mon Jul 14 16:50:11 EDT 2025

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

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

Back to the top