Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Property Sheet title
Property Sheet title [message #548716] Thu, 22 July 2010 17:35 Go to next message
bachra04  is currently offline bachra04 Friend
Messages: 148
Registered: April 2010
Senior Member
I have a gmf project.

when I click on an element then I do show properties that will show the property sheet with title1.

I'm trying to find the code where the title was set but no success.

Can you point me to that ?

Thanks
Re: Property Sheet title [message #548803 is a reply to message #548716] Fri, 23 July 2010 06:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marius.groeger.googlemail.com

Am 22.07.2010 19:35, wrote bachra04:
> I have a gmf project.
>
> when I click on an element then I do show properties that will show the
> property sheet with title1.
>
> I'm trying to find the code where the title was set but no success.
>
> Can you point me to that ?

It's in TabbedPropertySheetPage#refreshTitleBar(). Actually it's the
PropertiesBrowserPage which extends TabbedPropertySheetPage.

In cases like this I find it helpful to use the Plug-In Spy: active the
GUI element in question and press Shift-Alt-F1 to view the implementing
class.

Regards
Marius
Re: Property Sheet title [message #548824 is a reply to message #548716] Fri, 23 July 2010 08:11 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi,

When generating your diagram plugin, the generated plugin contains a org.eclipse.ui.views.proerties,propertyContributor extension.
You can replace the labelProvider on this extension. It is used to display the title.

HTH,

--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: Property Sheet title [message #548922 is a reply to message #548716] Fri, 23 July 2010 13:31 Go to previous message
Olivier Hélin is currently offline Olivier HélinFriend
Messages: 4
Registered: July 2010
Location: Sophia Antipolis
Junior Member

You can also edit "yourmodel".gmfgen by selecting the node
"Gen Editor Generator ....." >> "Gen Diagram ...EditPart" >> "Gen Child Node title1" >> "Metamodel Type title1"

and change the value of "Display Name" in the property sheet.

Next you have to regenerate the Diagram Project (delete its plugin.xml before because generation doesnt' override this file)

Regards,
Olivier
Previous Topic:Can GMF support RAP?
Next Topic:PopUp Bar on nested child elements
Goto Forum:
  


Current Time: Fri Jun 14 03:16:24 GMT 2024

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

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

Back to the top