Please add to FAQ instructions on importing example source! [message #209907] |
Tue, 21 February 2006 07:02 |
Eclipse User |
|
|
|
Originally posted by: rick.cameron.crystaldecisions.com
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
|
|
|
|
Re: Please add to FAQ instructions on importing example source! [message #209983 is a reply to message #209976] |
Tue, 21 February 2006 17:50 |
Eclipse User |
|
|
|
Originally posted by: rick.cameron.decisionscrystal.com
Would it really hurt to duplicate this tip in the GEF FAQ (assuming it's
actually mentioned somewhere else - which I doubt)?
If you want people to learn about GEF and use it, it's in your interest to
make this as easy as possible. From the minimal amount of documentation
available, and the cryptic responses I see in this NG, it appears that
you're making the process as hard as possible - or that you only want
highly-experienced plug-in developers to try to use GEF.
Please have consideration us beginners - people who just want to write code,
and don't have the time to grok all the intricacies of plug-in development
before starting work on that cool RCP app using GEF!
Cheers
- rick
"Randy Hudson" <none@us.ibm.com> wrote in message
news:dtfdj7$osg$1@utils.eclipse.org...
> Importing plug-ins as source is not a problem that's specific to GEF.
>
|
|
|
Powered by
FUDForum. Page generated in 0.54247 seconds