GMF Prosheet Customization [message #152827] |
Mon, 01 October 2007 21:18  |
Eclipse User |
|
|
|
Originally posted by: mathieu.bertrand.4.ulaval.ca
Hello,
I'm trying to follow the tutorial available at
http://wiki.eclipse.org/GMF_Propsheet_Customization without too much
success.
I'm able to do every single step of the tutorial.
1. Custom Property Tab
2. Identity Filter
3. Property Section Container
4. isGeneratedTab
5. Group + TextField + ...
6. Model Meditator
Then, I Generate diagram code... But the new tab doesn't appear in my
editor. When I look at GeneratedIdentityPropertySection.java, there is
no control generated. There is only 3-4 method (getPropertySource,
getPropertySourceProvider, transformSelection, setInput, getAdapterFactory)
I looked at the code generated for genStyles (Custom Tab Styles) and saw
in the generated editor
(org.eclipse.gmf.graphdef.editor.sheet.GeneratedStylesProper tySection)
that the code is similar to GeneratedIdentityPropertySection.java.
However, from the project checked out (SDK-experimental), there is a
class with the same name providing all the controls for the tab, that
class was not generated, it was provided with the project I checked out.
My questions:
1. how do I generate that class, similar to the ones in
org.eclipse.gmf.graphdef.editor.sheet provided with sdk-experimental
(from cvs) ?
2. Why my new tab do not appear when I select a figure gallery ?
Thank you very much,
Mathieu
|
|
|
Re: GMF Prosheet Customization [message #156361 is a reply to message #152827] |
Thu, 18 October 2007 16:53  |
Eclipse User |
|
|
|
Originally posted by: mathieu.bertrand.4.ulaval.ca
Hi,
I can now answer my own question... :)
There was one thing missing to make the tutorial work. At the beggining
of the tutorial, it is wrote "For quick start we will first change
already customized tabs of our main org.eclipse.gmf.graphdef.editor
plugin. So the first thing you’ll need is checking out this module into
your workspace from its CVS location in sdk-experimental."
But if you do that, there is one thing broken: the path to the template
directory.
So, if you checked out the project org.eclipse.gmf.graphdef.editor in
sdk-experimental, here is what you need to do:
1. Open graphdef.gmfgen
2. Select the element "Gen Editor org.eclipse.gmf.graphdef.editor"
3. Open the properties view
4. Change the value for the property "Template Directory" to
"/sdk-experimental/templates"
Generate diagram and enjoy ! :)
Mathieu
P.S. Thanks to Martin who helped me on that one !
Mathieu Bertrand wrote:
> Hello,
>
> I'm trying to follow the tutorial available at
> http://wiki.eclipse.org/GMF_Propsheet_Customization without too much
> success.
>
> I'm able to do every single step of the tutorial.
> 1. Custom Property Tab
> 2. Identity Filter
> 3. Property Section Container
> 4. isGeneratedTab
> 5. Group + TextField + ...
> 6. Model Meditator
>
> Then, I Generate diagram code... But the new tab doesn't appear in my
> editor. When I look at GeneratedIdentityPropertySection.java, there is
> no control generated. There is only 3-4 method (getPropertySource,
> getPropertySourceProvider, transformSelection, setInput, getAdapterFactory)
>
> I looked at the code generated for genStyles (Custom Tab Styles) and saw
> in the generated editor
> (org.eclipse.gmf.graphdef.editor.sheet.GeneratedStylesProper tySection)
> that the code is similar to GeneratedIdentityPropertySection.java.
> However, from the project checked out (SDK-experimental), there is a
> class with the same name providing all the controls for the tab, that
> class was not generated, it was provided with the project I checked out.
>
> My questions:
> 1. how do I generate that class, similar to the ones in
> org.eclipse.gmf.graphdef.editor.sheet provided with sdk-experimental
> (from cvs) ?
> 2. Why my new tab do not appear when I select a figure gallery ?
>
> Thank you very much,
> Mathieu
|
|
|
Powered by
FUDForum. Page generated in 0.07414 seconds