Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to run example code from http://www.eclipse.org
How to run example code from http://www.eclipse.org [message #532391] Sun, 09 May 2010 10:55 Go to next message
jojo  is currently offline jojo
Messages: 2
Registered: May 2010
Junior Member
Hello,

I am absolutely new to Eclipse Plug-in development and GEF. I have read a lot of tutorials and how-to's.

Sadly i have not managed to get a running GEF plug until now. I just downloaded the examples from http://www.eclipse.org and set up the example "Plug In / Shapes" by doing the following in eclipse:

right-click in project-pane --> New --> other --> expanded GEF (...) plug-ins --> choose "Shapes" --> Next --> Finish

This gives me a GEF project which shall be complete. But sadly i can not run this application at all :/

When just trying "run as --> Java Application" eclipse complains about a missing "main".

Maybe anyone can point me into the right direction or give me a hint. All tutorials i have read do not give me any idea how i have to sort my classes in eclipse and run them properly...

Thanks a lot in advance and cheers from a frustrated guy Very Happy

Jochen
Re: How to run example code from http://www.eclipse.org [message #533123 is a reply to message #532391] Wed, 12 May 2010 06:45 Go to previous message
Andreas is currently offline Andreas
Messages: 5
Registered: May 2010
Junior Member
You need to open the plugin.xml and open the tab extensions
There search for the extensions field.In shapes example you can find it here: "plugin.xml" -> tab "extensions", open the tree item "org.eclipse.ui.editors" now theres a label called extensions on the right with the value "shapes" this

Now that you know what extension your plugin has you have to run a second eclipse application by simply click on the green arrow on the plugin.xml "Overview" tab

Another eclipse application should open, there create a new (empty) Project and create a new file with the extension .shapes
for example: shape.shapes

Open this file and you should see the shapes editor
Previous Topic:PropertySheet Customization
Next Topic:Connection Bendpoints Snap to Grid?
Goto Forum:
  


Current Time: Thu Apr 17 08:36:47 EDT 2014

Powered by FUDForum. Page generated in 0.13686 seconds