[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Please add to FAQ instructions on importing example source!

Hi, GEF team

I see there are many messages in this NG asking how to get the source for 
the GEF examples into Eclipse as a project. The responses are usually very 
cryptic - except for the one from the very helpful Nicolai Guba. He said:

>Hmmm, what always worked for me was the following
>
>1. Open Plug-in development perspective
>2. Select the Plugins tab on the same panel as the Package Explorer
>3. Select the example and right-click to import as sources
>4. Sometimes fix minor issues with plugin.xml (had to remove the
>availableAsShortcut property in the <wizard> section to get the latest one
>to work [org.eclipse.gef.examples.logic])

(Thanks, Nicolai!)

Please add this to the FAQ!

The next natural question is, how can I run the example in the debugger?

For the flow example, I found that the following works:

1. Set a breakpoint on the ctor of FlowEditor
2. Open the plugin.xml, go to the Overview page & click on 'Launch an 
Eclipse application in Debug mode'
3. A second instance of Eclipse opens, with an empty workspace. Create a new 
empty project, then use File > New > Example... and choose Flow Diagram

When the Flow editor opens, you should find that the first copy of Eclipse 
stops at the breakpoint.

This may be basic stuff for experienced plug-in developers - but, for the 
rest of us, it wouldn't hurt to have this in the FAQ.

(BTW, I've no idea how you would debug the example if it didn't have a 
wizard that creates a sample document!)

Cheers

- rick