Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Change the order of parameters that are displayed on property window in GMF(Change the order of parameters that are displayed on property window in GMF)
Change the order of parameters that are displayed on property window in GMF [message #720872] Wed, 31 August 2011 12:14 Go 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..
The parameters the are displayed on property window in GMF are in an aplphabetical order...
Is there any way that I can display parameters in my own format...

Thanks,
Vinay

[Updated on: Wed, 31 August 2011 12:20]

Report message to a moderator

Re: Change the order of parameters that are displayed on property window in GMF [message #721622 is a reply to message #720872] Fri, 02 September 2011 10:49 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi vinny503,

I think this is not related to GMF but to the PropertiesView in general. The content of the PropertiesView is provided through the EMF *.edit plugin. Maybe they can help you.

Ralph
Re: Change the order of parameters that are displayed on property window in GMF [message #721701 is a reply to message #721622] Fri, 02 September 2011 15:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Ralph,

If you look in the generated editor, (at least the EMF one), you'll see
getPropertySheetPage (called from getAdaper). PropertySheetPage has a
setSorter method you can use to tailor the order...


On 02/09/2011 3:49 AM, ralph. wrote:
> Hi vinny503,
>
> I think this is not related to GMF but to the PropertiesView in
> general. The content of the PropertiesView is provided through the EMF
> *.edit plugin. Maybe they can help you.
>
> Ralph


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Change the order of parameters that are displayed on property window in GMF [message #722292 is a reply to message #721701] Mon, 05 September 2011 09:19 Go to previous messageGo to next message
vinny503 Missing name is currently offline vinny503 Missing nameFriend
Messages: 156
Registered: August 2011
Senior Member
Hi Ralph,

Thanks for your reply.

I have found a solution in the following link,but the function getPropertySheetPage() is not being invoked by any of the other functions which results in the setSorter() code not getting executed.

I have tried to backtrack the issue and found getAdapter() is not invoked.

Please provide your suggestions.

http://wiki.eclipse.org/EMF/FAQ#How_do_I_preserve_my_property_order.2C_i._e._the_order_in_the_ecore_model.2C_in_Property_Sheet_of_the_generated_editor_instead_of_default_alphabetical_ordering.3F


Regards,
Vinay

[Updated on: Mon, 05 September 2011 09:28]

Report message to a moderator

Re: Change the order of parameters that are displayed on property window in GMF [message #722387 is a reply to message #722292] Mon, 05 September 2011 15:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Something must be creating a property sheet page so set a breakpoint in
the constructor of the platforms base class and see who is doing that.



On 05/09/2011 2:19 AM, vinny503 wrote:
> Hi Ralph,
>
> Thanks for your reply.
>
> I have found a solution in the following link,but the function
> getPropertySheetPage() is not being invoked by any of the other
> functions which results in the setSorter() code not getting executed.
>
> I have tried to backtrack the issue and found getAdapter() is not
> invoked.
> Please provide your suggestions.
>
> http://wiki.eclipse.org
> /EMF/FAQ#How_do_I_preserve_my_property_order.2C_i._e._the_order_in_the_ecore_model.2C_in_Property_Sheet_of_the_generated_editor_instead_of_default_alphabetical_ordering.3F
>
>
>
> Regards,
> Vinay


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Change the order of parameters that are displayed on property window in GMF [message #722668 is a reply to message #722387] Tue, 06 September 2011 13:07 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 debugging the classes by putting breakpoint to getAdapter method wherever it is being used. But I see that it never enters in to my .editor project classes.

Can you please tell me how to invoke classes from .editor project.

Thanks,
Vinay
Re: Change the order of parameters that are displayed on property window in GMF [message #722725 is a reply to message #722668] Tue, 06 September 2011 15:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Use Ctrl-Shift-T to find PropertySheetPage and set a breakpoint in the
constructor. Use that to figure out how/where it's being constructed.


On 06/09/2011 6:07 AM, vinny503 wrote:
> Hi,
>
> I am debugging the classes by putting breakpoint to getAdapter method
> wherever it is being used. But I see that it never enters in to my
> .editor project classes.
>
> Can you please tell me how to invoke classes from .editor project.
>
> Thanks,
> Vinay


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Change the order of parameters that are displayed on property window in GMF [message #722947 is a reply to message #722725] Wed, 07 September 2011 09:36 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 did set a breakpoint in the PropertySheetPage constructor But I observe that it never enters the classes which are in the .editor project that results in none of the classes of .editor are executed.
whatever I have implemented logic in the getPropertySheetPage method to turn off the
default sorting is in xxxEditor.java which is in .editor project, never been executed.
I am running plugin.xml of .diagram project...I even added .editor plugin project in the dependencies tab.
Please tell me how do I find a solution to this...

Thanks,
Vinay

[Updated on: Wed, 07 September 2011 09:55]

Report message to a moderator

Re: Change the order of parameters that are displayed on property window in GMF [message #723074 is a reply to message #722947] Wed, 07 September 2011 14:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Vinay,

It sounds like you're running a different editor than the one you're
adding code too. How can I possibly guess the reason for that? You
should be able to see which editor is creating the property sheet page
and that should give you a clue why that editor is running and not the
editor you've implemented.


On 07/09/2011 2:36 AM, vinny503 wrote:
> Use Ctrl-Shift-T to find PropertySheetPage and set a breakpoint in the
> constructor. Use that to figure out how/where it's being constructed.
>
> Hi,
>
> I did set a breakpoint in the PropertySheetPage constructor But I
> observe that it never enters the classes which are in the .editor
> project that results in none of the classes of .editor are executed.
> whatever I have implemented logic in the getPropertySheetPage method
> to turn off the default sorting is in xxxEditor.java which is in
> .editor project, never been executed.
> I am running plugin.xml of .diagram project...I even added .editor
> plugin project in the dependencies tab.
> Please tell me how do I find a solution to this...
>
> Thanks,
> Vinay
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Change the order of parameters that are displayed on property window in GMF [message #724551 is a reply to message #723074] Mon, 12 September 2011 15:18 Go to previous messageGo to next message
Carlos  is currently offline Carlos Friend
Messages: 16
Registered: July 2009
Junior Member
Hi Vinay,

maybe this post can help you:

http://www.eclipse.org/forums/index.php?t=msg&goto=645119&S=2e267f0f1cc1dbdb748f32b9e95bc0a0#msg_645119

Regards,

Carlos
Re: Change the order of parameters that are displayed on property window in GMF [message #724787 is a reply to message #724551] Tue, 13 September 2011 07:23 Go to previous messageGo to next message
vinny503 Missing name is currently offline vinny503 Missing nameFriend
Messages: 156
Registered: August 2011
Senior Member
Hi Carlos,

Thanks a lot.
That link really did help me...I had been struggling for the past few days to get that....
Now I am facing another small problem, that is I am getting propertysheetpage twice in my GMF editor with one having nothing in it.
How do I remove the propertysheetpage which is having nothing in it.
Please find the attached image.

Thanks,
Vinay

[Updated on: Tue, 13 September 2011 07:44]

Report message to a moderator

Re: Change the order of parameters that are displayed on property window in GMF [message #724854 is a reply to message #724551] Tue, 13 September 2011 11:03 Go to previous messageGo to next message
vinny503 Missing name is currently offline vinny503 Missing nameFriend
Messages: 156
Registered: August 2011
Senior Member
Hi Carlos,

I am able to figure out why propertysheetpage was coming twice, As I was extending XXXAdvancedPropertySection to AdvancedPropertySection instead of making a copy of it.

Thanks a lot once again.

Regards,
Vinay
Re: Change the order of parameters that are displayed on property window in GMF [message #725526 is a reply to message #724551] Thu, 15 September 2011 05:16 Go to previous messageGo to next message
vinny503 Missing name is currently offline vinny503 Missing nameFriend
Messages: 156
Registered: August 2011
Senior Member
Hi Carlos,

Do u know how to bring up the pop up window when a component is dragged and dropped on to the editor ??

Thanks,
Vinay
Re: Change the order of parameters that are displayed on property window in GMF [message #725586 is a reply to message #724551] Thu, 15 September 2011 09:43 Go to previous messageGo to next message
vinny503 Missing name is currently offline vinny503 Missing nameFriend
Messages: 156
Registered: August 2011
Senior Member
Hi Carlos,

I am facing one more issue,

Normally in GMF, getPropertyDescriptors function in xxxItemProvider.java is called as part of initialization..
But I want this to be called whenever I drag and drop a Component on to the editor.

Thanks,
Vinay
Re: Change the order of parameters that are displayed on property window in GMF [message #726742 is a reply to message #725586] Mon, 19 September 2011 12:07 Go to previous messageGo to next message
vinny503 Missing name is currently offline vinny503 Missing nameFriend
Messages: 156
Registered: August 2011
Senior Member
Hi Carlos,

A new issue has come up....
Property window is not getting updated properly as per the node selection in GMF Editor, The generated xml file contains the same parameters for both the components depending on the final highlighted component.
Please find the attached 2 images and an xml file.

In 1st image dc node is highlighted,
In 2nd image vfdc node is highlighted but in the generated xml contains vfdc parameters even for dc node.

Can anyone help me regarding this..

Thanks,
Vinay
Re: Change the order of parameters that are displayed on property window in GMF [message #891607 is a reply to message #724787] Mon, 25 June 2012 10:54 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
Hi Vinay,
nice to see that u have done it...can u describe in details how u do it? its better if u put some picture of the workflow...I am trying it for a week but can't do it...i look around different site but can't do it...if possible share...

Thanks
Iqbal

[Updated on: Mon, 25 June 2012 10:54]

Report message to a moderator

Re: Change the order of parameters that are displayed on property window in GMF [message #892971 is a reply to message #891607] Mon, 02 July 2012 08:05 Go to previous message
Almamy Ndiaye is currently offline Almamy NdiayeFriend
Messages: 16
Registered: May 2012
Junior Member
Hi, I think that you can use the EEF framework to customise your property sheet.

Extending Editing Framework Development Tools
Extending Editing Framework - Runtime
Previous Topic:EEF advanced screen
Next Topic:how to change the property by only name?
Goto Forum:
  


Current Time: Sat Apr 20 02:30:10 GMT 2024

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

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

Back to the top