Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » "Porting" from 2.1.2 to 3.0
"Porting" from 2.1.2 to 3.0 [message #38880] Mon, 29 March 2004 20:03 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:How to dynamically installation/loading of plugins from directories in the file system?
Next Topic:Can I retrive plugin ID?
Goto Forum:
  


Current Time: Thu Mar 28 10:11:23 GMT 2024

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

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

Back to the top