Properties View -- GMF 2.1 [message #206513] |
Tue, 23 September 2008 06:08  |
Eclipse User |
|
|
|
Originally posted by: xxx.xxxxxxxx.xxx
Hallo,
Can someone point me to a good documentation regarding Properties View for
GMF 2.1?
In short... GMF 2.1, in gmfgen, I want to customize the Properties View
and define one tab, containing multiple sections.
In long... in gmfgen, I create Property Sheet -> Custom Property Tab (and
specify its human readable label T_HRL, identifier T_ID and implementation
class T_IMPL) and its Typed selection filter.
When I generate the diagram code from gmfgen, the result is the following:
In plugin.xml, there is one additional propertyTab, and one additional
propertySection which class is T_IMPL, i.e. the implementation class of
the tab from gmfgen, and T_IMPL extends AdvancedPropertySection. This
means, for each tab in gmfgen, the generator creates one tab with exactly
one section. This means, relationship between tab:section is 1:1, but not
1:n - the way it is supposed to be :)
I have no problem doing this in the generated diagram plugin.xml... but
every time I re-generate from gmfgen, my manually added tabs/sections in
plugin.xml are lost.
It would be best if someone could refer me to a good documentation
regarding customizing properties view in gmfgen for GMF 2.1.
Kind regards,
Iliyana Ivanova
|
|
|
|
|
|
|
|
Re: Properties View -- GMF 2.1 [message #207451 is a reply to message #207409] |
Tue, 30 September 2008 05:09  |
Eclipse User |
|
|
|
Originally posted by: xxx.xxxxxxxx.xxx
Hallo Anthony,
I haven't really thought about having a clear separation between the
generated gmf code and the customized code, and I think this is actually
impossible in my case.
My business model is complex and can not be handled by GMF, so I have
created an intermediate business model via some transformations.. and I
can not really keep the generated GMF code as is, because I have to do a
lot of customization to keep the integrity between the original and
intermediate business models. That's why I have decided to keep everything
in one plugin.
Kind regards,
Iliyana
Anthony Hunter wrote:
> "Iliyana Ivanova" <xxx@xxxxxxxx.xxx> wrote in message
> news:c2833fed68897361601199f629f137bf$1@www.eclipse.org...
>>
>> I have no problem doing this in the generated diagram plugin.xml... but
>> every time I re-generate from gmfgen, my manually added tabs/sections in
>> plugin.xml are lost.
>>
> Hi Iliyana,
> Have you considered adding your additional extension points in a separate
> plug-in? Generated code in one plug-in, your additional / overriding /
> customized extension points in another.
> Cheers...
> Anthony
|
|
|
Powered by
FUDForum. Page generated in 0.05305 seconds