"Porting" from 2.1.2 to 3.0 [message #38880] |
Mon, 29 March 2004 20:03 |
Eclipse User |
|
|
|
Originally posted by: alex.weirig.telewalfer.lu
Hello,
I had developed (for learning purposes) some plugin code under 2.1.2.
Now, I would like to re-develop the same code under 3.0M8 (again for
learning purposes, new L&F, new coding/refactoring features etc). I
would also like to use the new OSGi approach.
When I create my plugin project, I see the required plugin list. In my
plugin, I need to access to the Workspace. In 2.1.2 I used
org.eclipse.core.resources (in fact ResourcesPlugin.getWorkspace()).
Unfortunately this plugin in not showing up in the required plugins
list in 3.0M8, so I added it. But my build path isn't updated and I am
unable to access the classes in org.eclipse.core.resources. I also
tried to write the import statement myself, or to explicitly write
org.eclipse.core.resources.IWork[CTRL-SPACE] in my Java code but
nothing helps, I can't get to these classes.
If I leave the OSGi option in the PDE New Plugin Project Wizard
unchecked, everything works just fine (the way it was in 2.1.2).
What am I doing wrong? Is there a different way to access the
Workspace when using OSGi?
I also tried to look for some documentation about what OSGi is and
what I means using OSGi but couldn't find it (yet).
Many thanks for your help
Alex
|
|
|
Re: "Porting" from 2.1.2 to 3.0 [message #39112 is a reply to message #38880] |
Tue, 30 March 2004 18:32 |
Eclipse User |
|
|
|
Originally posted by: alex.weirig.telewalfer.lu
There's already a bug opened for this problem.
Alex
Alex Weirig wrote:
> Hello,
>
> I had developed (for learning purposes) some plugin code under 2.1.2.
> Now, I would like to re-develop the same code under 3.0M8 (again for
> learning purposes, new L&F, new coding/refactoring features etc). I
> would also like to use the new OSGi approach.
>
> When I create my plugin project, I see the required plugin list. In my
> plugin, I need to access to the Workspace. In 2.1.2 I used
> org.eclipse.core.resources (in fact ResourcesPlugin.getWorkspace()).
> Unfortunately this plugin in not showing up in the required plugins list
> in 3.0M8, so I added it. But my build path isn't updated and I am unable
> to access the classes in org.eclipse.core.resources. I also tried to
> write the import statement myself, or to explicitly write
> org.eclipse.core.resources.IWork[CTRL-SPACE] in my Java code but nothing
> helps, I can't get to these classes.
>
> If I leave the OSGi option in the PDE New Plugin Project Wizard
> unchecked, everything works just fine (the way it was in 2.1.2).
>
> What am I doing wrong? Is there a different way to access the Workspace
> when using OSGi?
>
> I also tried to look for some documentation about what OSGi is and what
> I means using OSGi but couldn't find it (yet).
>
> Many thanks for your help
>
> Alex
|
|
|
Powered by
FUDForum. Page generated in 0.03900 seconds