Skip to main content



      Home
Home » Eclipse Projects » GEF » Help with Palette
Help with Palette [message #165317] Mon, 24 January 2005 06:14 Go to next message
Eclipse UserFriend
Originally posted by: ssc.acentic.net

Hi

I like to use the palette in a standalone swt application. Since I have
no clue how to do that, I looked for some examples and found this page
with some helloWorld examples. Unfortunately I am not able to get those
to run. Eclipse keeps on telling me this :

The type org.eclipse.ui.part.EditorPart cannot be resolved.
It is indirectly referenced from required .class files


Any idea, whats wrong ? BTW, the gef.jar is in the classpath.

Thanks,
Sebastian
Re: Help with Palette [message #165366 is a reply to message #165317] Mon, 24 January 2005 12:21 Go to previous messageGo to next message
Eclipse UserFriend
Chances are that that example is quite old and hasn't been updated for
Eclipse 3.0 (where several packages were re-orged).

Add this to your plugin.xml and see if that makes a difference:
<import plugin="org.eclipse.core.runtime.compatibility" optional="true"/>

Eclipse.org has a migration guide to convert pre-3.0 plug-ins to be 3.0
compliant. Check that out. Also, if you right-click on the plugin.xml in
Package Explorer, you can go to PDE -> Migrate to 3.0.

If all you want to do is learn about the palette, why don't you try one of
the examples supported by GEF?

"Sebastian Scholz" <ssc@acentic.net> wrote in message
news:pan.2005.01.24.11.14.47.844000@acentic.net...
> Hi
>
> I like to use the palette in a standalone swt application. Since I have
> no clue how to do that, I looked for some examples and found this page
> with some helloWorld examples. Unfortunately I am not able to get those
> to run. Eclipse keeps on telling me this :
>
> The type org.eclipse.ui.part.EditorPart cannot be resolved.
> It is indirectly referenced from required .class files
>
>
> Any idea, whats wrong ? BTW, the gef.jar is in the classpath.
>
> Thanks,
> Sebastian
>
Re: Help with Palette [message #165406 is a reply to message #165366] Tue, 25 January 2005 02:49 Go to previous message
Eclipse UserFriend
Originally posted by: ssc.acentic.net

Thanks, I will try that.

Well, I was actually looking for a very simple implementation of a
palette somewhere, but all I found were those 2.x examples. All 3.x
examples are just plugins and as easy to understand,... guess I have
to go through these again.

To bad there are no such easy snippets available as they are for swt.

-Sebastian
Previous Topic:Mouse up event and request
Next Topic:Printing
Goto Forum:
  


Current Time: Sun Jun 08 00:58:12 EDT 2025

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

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

Back to the top