Skip to main content



      Home
Home » Eclipse Projects » GEF » Perplexing trouble in importing packages
Perplexing trouble in importing packages [message #124874] Tue, 30 March 2004 02:51 Go to next message
Eclipse UserFriend
Originally posted by: rbhatna.clemson.edu

I am trying to create a plugin on thh lines of the paint plugin which is
available as an example.

My problem is that i get compilation errors on import statements -

import org.eclipse.ui.part;
import org.eclipse.ui.plugin;

the error statements are of the type "the import org.eclipse.ui.plugin
cannot be resolved"

I was able to remove similar errors in importing org.eclipse.jface.action.*
and org.eclipse.jface.action.resource.* by simply adding the library
(jface.jar) to the project.

However the trouble in doing the same to the two files above is that there
is no package called org.eclipse.ui.part.* or import
org.eclipse.ui.plugin.* in the eclipse plugins directory.what reference do
I give for the two files then.

I DID add org.eclipse.ui.jar to the project but that has not worked.
There is a lot of documentation about the two packages on the internet but
no directions on how I can download them.

Could some please help.Thanks
Re: Perplexing trouble in importing packages [message #124887 is a reply to message #124874] Tue, 30 March 2004 10:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

These are eclipse plugins that ship with eclipse. The jar may not mirror the
path of the import. You may want to search through the various
org.eclipse.ui plugin folders to find the jar you need. For example, the
package might be contained in the workbench.jar in the ui.workbench folder.

"Rahul" <rbhatna@clemson.edu> wrote in message
news:c4b8uo$mfq$1@eclipse.org...
> I am trying to create a plugin on thh lines of the paint plugin which is
> available as an example.
>
> My problem is that i get compilation errors on import statements -
>
> import org.eclipse.ui.part;
> import org.eclipse.ui.plugin;
>
> the error statements are of the type "the import org.eclipse.ui.plugin
> cannot be resolved"
>
> I was able to remove similar errors in importing
org.eclipse.jface.action.*
> and org.eclipse.jface.action.resource.* by simply adding the library
> (jface.jar) to the project.
>
> However the trouble in doing the same to the two files above is that there
> is no package called org.eclipse.ui.part.* or import
> org.eclipse.ui.plugin.* in the eclipse plugins directory.what reference do
> I give for the two files then.
>
> I DID add org.eclipse.ui.jar to the project but that has not worked.
> There is a lot of documentation about the two packages on the internet but
> no directions on how I can download them.
>
> Could some please help.Thanks
>
>
Re: Perplexing trouble in importing packages [message #124975 is a reply to message #124887] Tue, 30 March 2004 21:52 Go to previous message
Eclipse UserFriend
Originally posted by: rbhatna.clemson.edu

Bingo! I added jar files in ui.win32 and ui.workbench and it worked.Thank
you.
Whitney Sorenson wrote:

> These are eclipse plugins that ship with eclipse. The jar may not mirror the
> path of the import. You may want to search through the various
> org.eclipse.ui plugin folders to find the jar you need. For example, the
> package might be contained in the workbench.jar in the ui.workbench folder.

> "Rahul" <rbhatna@clemson.edu> wrote in message
> news:c4b8uo$mfq$1@eclipse.org...
> > I am trying to create a plugin on thh lines of the paint plugin which is
> > available as an example.
> >
> > My problem is that i get compilation errors on import statements -
> >
> > import org.eclipse.ui.part;
> > import org.eclipse.ui.plugin;
> >
> > the error statements are of the type "the import org.eclipse.ui.plugin
> > cannot be resolved"
> >
> > I was able to remove similar errors in importing
> org.eclipse.jface.action.*
> > and org.eclipse.jface.action.resource.* by simply adding the library
> > (jface.jar) to the project.
> >
> > However the trouble in doing the same to the two files above is that there
> > is no package called org.eclipse.ui.part.* or import
> > org.eclipse.ui.plugin.* in the eclipse plugins directory.what reference do
> > I give for the two files then.
> >
> > I DID add org.eclipse.ui.jar to the project but that has not worked.
> > There is a lot of documentation about the two packages on the internet but
> > no directions on how I can download them.
> >
> > Could some please help.Thanks
> >
> >
Previous Topic:GEF + RCP + org.eclipse.ui.editors
Next Topic:loss of focus on drag and drop from palette
Goto Forum:
  


Current Time: Mon Jul 28 11:20:26 EDT 2025

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

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

Back to the top