Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF Prosheet Customization
GMF Prosheet Customization [message #152827] Tue, 02 October 2007 01:18 Go to next message
Eclipse UserFriend
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 20:53 Go to previous message
Eclipse UserFriend
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
Previous Topic:get ResourceSet
Next Topic:Extract data from diagram
Goto Forum:
  


Current Time: Sat Jul 13 00:21:06 GMT 2024

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

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

Back to the top