Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Property View - adding in parameters of one operation
Property View - adding in parameters of one operation [message #154199] Mon, 08 October 2007 21:04 Go to next message
Eclipse UserFriend
Originally posted by: slomic.start.no

Hi!

I have made a gmf editor for my simple metamodel
8http://slomic.no/gmf/metamodel.gif). Now, I wonder if gmf offers
new/edit/delete dialog window for adding in parameters of one operation,
through property view of the Data Access Object element for instance.

In the .genmodel file I have these properties
(http://slomic.no/gmf/screenshot_genmodel.gif) and I get this
(http://slomic.no/gmf/screenshot_inParameters.gif) window in the gmf
diagram when I click on the “…” value button of “In Parameters” property.

So, does gmf offers any standard was of adding/removing/editing child
elements of a list, through property view or do I need to do some manual
coding for that.

Any suggestions and examples would be appreciated.

Regards
Ismar Slomic
Re: Property View - adding in parameters of one operation [message #709682 is a reply to message #154199] Thu, 04 August 2011 07:17 Go to previous messageGo to next message
vinny503 Missing name is currently offline vinny503 Missing nameFriend
Messages: 156
Registered: August 2011
Senior Member
Hi

I am new to this GMF....
MY requirement is to add parameters to EClass in the properties view Dynamically.
Is there a way to do this .
If yes please send me some link or clear explanation with some example code.
Thanks Inadvance

Regards
Vinay
vinny503@gmail.com
Re: Property View - adding in parameters of one operation [message #709734 is a reply to message #709682] Thu, 04 August 2011 08:39 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

take a look at what is registered to the org.eclipse.ui.views.properties.tabbed.propertyTabs and org.eclipse.ui.tests.views.properties.tabbed.propertySections extension points by your generated plugin. You may override the used properties view or simply create an own tab.

Ralph
Re: Property View - adding in parameters of one operation [message #710584 is a reply to message #709734] Fri, 05 August 2011 07:26 Go to previous messageGo to next message
vinny503 Missing name is currently offline vinny503 Missing nameFriend
Messages: 156
Registered: August 2011
Senior Member
Hi

I followed your suggestions, there is some issues in this But before moving on,
My actual requirement is to load properties from an xml file which has parameters and default values.
It is like, when I right click on node which is dragged and dropped on to the editor, I should see the "Load Resource" option, which will allow me to select specific xml file and when i press ok, It should load properties with parameters and default values.

Is it Possible...If yes Please provide some sample code Implemented..

Thanks inAdvance,
Vinay
Re: Property View - adding in parameters of one operation [message #710585 is a reply to message #710584] Fri, 05 August 2011 07:31 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

I and others here I think will certainly not implement your work. You should consider trying by yourself before asking others. Take a look on the extension point for context menu. There you can add an entry for your shapes on the diagram.

Ralph
Re: Property View - adding in parameters of one operation [message #710687 is a reply to message #710585] Fri, 05 August 2011 09:55 Go to previous messageGo to next message
vinny503 Missing name is currently offline vinny503 Missing nameFriend
Messages: 156
Registered: August 2011
Senior Member

OK.
Ralph I can add parameters to property window in gmf. But this requires many changes in the source code generated.
Can this be achieved in any other easier way. ??


Thanks inAdvance,
Vinay
Re: Property View - adding in parameters of one operation [message #712704 is a reply to message #710585] Sun, 07 August 2011 16:18 Go to previous messageGo to next message
vinny503 Missing name is currently offline vinny503 Missing nameFriend
Messages: 156
Registered: August 2011
Senior Member
Hi

Sorry to ask you one more question...
How can I modify .emf file(Emfatic) in GMF ??
It would be really helpful if you would answer this question.

Thanks,
Vinay
Re: Property View - adding in parameters of one operation [message #715982 is a reply to message #154199] Tue, 16 August 2011 06:58 Go to previous message
vinny503 Missing name is currently offline vinny503 Missing nameFriend
Messages: 156
Registered: August 2011
Senior Member
Hi

I have 1 small requirement....
I have the default values set for node in gmf editor....
When I launch the application I edit only the name of the node and corresponding xml
generated has only the name attribute. I dont see the remaining attributes for
node (which was set some default values) in the xml file generated.
How to get that in xml without editing default values ??

thanks,
vinay
Previous Topic:Create WrappingLabelEditPart by code
Next Topic:where is the attribute names?
Goto Forum:
  


Current Time: Fri Mar 29 15:18:52 GMT 2024

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

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

Back to the top