Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Properties View -- GMF 2.1
Properties View -- GMF 2.1 [message #206513] Tue, 23 September 2008 10:08 Go to next message
Eclipse UserFriend
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 #206553 is a reply to message #206513] Tue, 23 September 2008 10:50 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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 #207198 is a reply to message #206553] Sat, 27 September 2008 15:51 Go to previous messageGo to next message
Eclipse UserFriend
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 #207232 is a reply to message #207198] Mon, 29 September 2008 10:21 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Iliyana,

> 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_prope
> rties_view.html ?
We have no estimations for this task now..

-----------------
Alex Shatalin
Re: Properties View -- GMF 2.1 [message #207347 is a reply to message #207232] Mon, 29 September 2008 14:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: xxx.xxxxxxxx.xxx

Hello Alex,

ok, thanks for your help.

Kind regards,
Iliyana


Alex Shatalin wrote:

> Hello Iliyana,

>> 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_prope
>> rties_view.html ?
> We have no estimations for this task now..

> -----------------
> Alex Shatalin
Re: Properties View -- GMF 2.1 [message #207409 is a reply to message #206513] Tue, 30 September 2008 03:07 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
"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
Re: Properties View -- GMF 2.1 [message #207451 is a reply to message #207409] Tue, 30 September 2008 09:09 Go to previous message
Eclipse UserFriend
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
Previous Topic:error about label attributes
Next Topic:Remove the border of a compartment
Goto Forum:
  


Current Time: Mon Jan 25 08:16:14 GMT 2021

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

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

Back to the top