Skip to main content



      Home
Home » Eclipse Projects » Sirius » Filter classes in FeatureEditorDialog and edit existing properties tab
Filter classes in FeatureEditorDialog and edit existing properties tab [message #1767798] Tue, 11 July 2017 04:38 Go to next message
Eclipse UserFriend
Hi,

I have basically three questions:

first, I would like to know if it is possible to filter the classes shown in the FeatureEditorDialog (opened for example by a reference widget in the properties sheet) so that it shows only classes present in a specific metamodel.

My second question is how to edit the "Ecore" default properties tab.
I've read the article https://www.eclipse.org/sirius/doc/specifier/properties/Properties_View_Description.html but it I couldn't get the Override option to function.

When I use extend, it duplicates the properties tab. But when I use override, it doesn't do anything.

I would like to edit the default properties sheet, so that "Documentation" and "Annotation" are hidden. I also would like to make some changes on the widgets, especially the existing reference widget. It would be great if I could apply a filter on it (first question).

Third: Why can we override all widgets except reference?!

Best regards,
Amine

[Updated on: Tue, 11 July 2017 05:18] by Moderator

Re: Filter classes in FeatureEditorDialog and edit existing properties tab [message #1767999 is a reply to message #1767798] Wed, 12 July 2017 11:52 Go to previous messageGo to next message
Eclipse UserFriend
Quote:
first, I would like to know if it is possible to filter the classes shown in the FeatureEditorDialog (opened for example by a reference widget in the properties sheet) so that it shows only classes present in a specific metamodel.


No it is not possible to filter the classes provided by the dialog. If you need to filter them, you have to create your own custm widget based on the Reference widget. Have a look to the documentation to see how to create a custom widget :
https://www.eclipse.org/sirius/doc/developer/extensions-properties_provide_custom_widget.html

Quote:
My second question is how to edit the "Ecore" default properties tab.
I've read the article https://www.eclipse.org/sirius/doc/specifier/properties/Properties_View_Description.html but it I couldn't get the Override option to function.
When I use extend, it duplicates the properties tab. But when I use override, it doesn't do anything.


I created a bug related to this : https://bugs.eclipse.org/bugs/show_bug.cgi?id=519566

Quote:
I would like to edit the default properties sheet, so that "Documentation" and "Annotation" are hidden.


You can hide properties sheets thanks to the org.eclipse.eef.properties.ui.eefTabDescriptorFilter extension point : https://eclipse.org/eef/#/documentation/2.0.0/developerguide/eeftabdescriptorfilter
Sirius uses this extension point to filter the semantic & default tabs : https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/tree/plugins/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/filter/SiriusTabDescriptorFilter.java

Quote:
Third: Why can we override all widgets except reference?!


I created a bug related to this : https://bugs.eclipse.org/bugs/show_bug.cgi?id=519567

Thanks for your feedback,
Mélanie
Re: Filter classes in FeatureEditorDialog and edit existing properties tab [message #1768002 is a reply to message #1767999] Wed, 12 July 2017 13:46 Go to previous messageGo to next message
Eclipse UserFriend
Hi Mélanie,

such elaborate answers are always appreciated. Many thanks.

As an improvement suggestion, I think that it would be nice to add a field in the properties of the reference widget, that allow the user to filter the classes shown in the dialog.

In the mean time, I will try to create my own reference widget by extending the class EEFExtMultipleReferenceLifecycleManager and overriding the browseButtonCallback method.

Best regards,
Amine

Re: Filter classes in FeatureEditorDialog and edit existing properties tab [message #1770094 is a reply to message #1767999] Tue, 08 August 2017 05:33 Go to previous messageGo to next message
Eclipse UserFriend
Melanie Bats wrote on Wed, 12 July 2017 17:52


Quote:
My second question is how to edit the "Ecore" default properties tab.
I've read the article https://www.eclipse.org/sirius/doc/specifier/properties/Properties_View_Description.html but it I couldn't get the Override option to function.
When I use extend, it duplicates the properties tab. But when I use override, it doesn't do anything.


I created a bug related to this : https://bugs.eclipse.org/bugs/show_bug.cgi?id=519566


While investigating the bugzilla created by Mélanie to try and fix it, I was unable to reproduce the bug: when I try both extension and overriding of Ecore Tools pages work. I've attached the sample project I made with the detailed steps I used to try and reproduce the issue. Amine, if you have more details about what's different in our settings please comment on the ticket and I'll look again.
Re: Filter classes in FeatureEditorDialog and edit existing properties tab [message #1770953 is a reply to message #1770094] Sat, 19 August 2017 07:22 Go to previous message
Eclipse UserFriend
Hi Pierre-Charles,

I followed the instructions at https://bugs.eclipse.org/bugs/show_bug.cgi?id=519566 but I couldn't find the Bugzilla-51956 Viewpoint when trying to select a viewpoint for my modeling project. I only get the usual "Design", "Archetype" and "Review". Are you sure you uploaded the right project? Because I don't see any VSM in the project that you uploaded (see screenshot)

Best regards,
Amine
  • Attachment: Capture.PNG
    (Size: 11.85KB, Downloaded 130 times)

[Updated on: Sat, 19 August 2017 07:23] by Moderator

Previous Topic:Allow/disable target node depending the source node
Next Topic:Availability Viewpoint for Modeling Project
Goto Forum:
  


Current Time: Sun Jul 27 09:42:36 EDT 2025

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

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

Back to the top