Properties View -- GMF 2.1 [message #206513] |
Tue, 23 September 2008 10: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 #207198 is a reply to message #206553] |
Sat, 27 September 2008 15:51 |
Eclipse User |
|
|
|
Originally posted by: xxx.xxxxxxxx.xxx
Hello Alex,
thank you for the quick answer. I'm using the first possibility for the
time being (<?gmfgen generated="false"?>) and it works ok.
Do you know whether it's been planned for GMF to support the tabbed
properties view, as described by Anthony Hunter's article
http://www.eclipse.org/articles/Article-Tabbed-Properties/ta bbed_properties_view.html
?
Kind regards,
Iliyana Ivanova
Alex Shatalin wrote:
> Hello Iliyana,
>> relationship between tab:section is 1:1, but not 1:n - the way it is
>> supposed to be :)
> You are right. The only way to associate more then one section with same
> property tab (as it is generated for
"property.tab.AppearancePropertySection"
> tab) is to modify generated plugin.xml / template for plugin.xml generation.
> You can either modify corresponding template or protect particular top-level
> tag in plugin.xml from following code generation by writing <?gmfgen
generated="false"?>
> there.
> -----------------
> Alex Shatalin
|
|
|
|
|
|
Re: Properties View -- GMF 2.1 [message #207451 is a reply to message #207409] |
Tue, 30 September 2008 09: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.04153 seconds