Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » customize a property sheet
customize a property sheet [message #535279] Fri, 21 May 2010 19:38 Go to next message
bachra04  is currently offline bachra04 Friend
Messages: 148
Registered: April 2010
Senior Member
I have an element A with attributes and reference to child element B
I need to customize a property sheet of element A so that when I click on B field it opens another sub property where I can fill in the element B attributes.

Is there any sample code or example on how to do that ?

Thanks.
Re: customize a property sheet [message #535285 is a reply to message #535279] Fri, 21 May 2010 20:51 Go to previous messageGo to next message
bachra04  is currently offline bachra04 Friend
Messages: 148
Registered: April 2010
Senior Member
IF my above question is not clear, i just want to say that if I click on reference B attribute I will get a window where I can populate with the B attributes
Re: customize a property sheet [message #536105 is a reply to message #535285] Thu, 27 May 2010 05:34 Go to previous message
Sven Krause is currently offline Sven KrauseFriend
Messages: 119
Registered: July 2009
Senior Member
Hi,

you might customize the class A's item providers getPropertyDescriptors
method changing the item property descriptor for the EReference B. This
property descriptor might use an dialog cell editor as property editor
instead of the generated list editor.

class BPropertyDescriptor extends
org.eclipse.emf.edit.ui.provider.PropertyDescriptor implements
org.eclipse.ui.views.properties.IPropertyDescriptor {

@Override
public CellEditor createPropertyEditor(Composite composite) {
...
}

}

Sven

Am 21.05.2010 22:51, schrieb bachra04:
> IF my above question is not clear, i just want to say that if I click on
> reference B attribute I will get a window where I can populate with the
> B attributes
Previous Topic:Appearance tab is disabled for certain nodes
Next Topic:CanonicalEditPolicy listening to whole business model tree
Goto Forum:
  


Current Time: Sat Jul 27 09:48:58 GMT 2024

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

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

Back to the top