|
|
Re: Options for categorised properties? [message #1727076 is a reply to message #1727054] |
Fri, 18 March 2016 16:09 |
Axel Guckelsberger Messages: 354 Registered: July 2009 |
Senior Member |
|
|
Hi Esteban,
thanks for elaborating. I am going to debug it soon in order to find the
reason for categories not being used properly.
Regards,
Axel
Am 18.03.2016 um 14:35 schrieb Esteban Dugueperoux:
> Hi Axel,
>
> I think you talk about "Show Categories" button in the Semantic tab?
> If yes, your need about the properties view does not seem related to
> Sirius, but only to properties view, the fact to have categories shown
> in properties view seems only configurable through this action.
> Because when looking at org.eclipse.ui.views.properties.CategoriesAction
> class, it calls PropertySheetViewer.showCategories()/hideCategories()
> method which are not accessible by API.
> But by default categories are shown because
> PropertySheetViewer.isShowingCategories boolean is at true.
>
> Best Regards.
>
> Le 18/03/2016 13:55, Axel Guckelsberger a écrit :
>> Hi all,
>>
>> in my xcore metamodel I assigned attributes to different categories.
>> These categories are also correctly contained in the generated item
>> provider classes in the edit plugin.
>>
>> If I enable the "show categories" button in the properties view of the
>> Sirius diagram editor the element type is used as a single category only
>> though.
>>
>> Is there any setting for activating the categories support? Or am I
>> missing something?
>>
>> Thanks for your advice,
>>
>> Axel
>
>
>
|
|
|
Re: Options for categorised properties? [message #1727077 is a reply to message #1727076] |
Fri, 18 March 2016 16:39 |
Axel Guckelsberger Messages: 354 Registered: July 2009 |
Senior Member |
|
|
Hi Esteban,
it seems like it is indeed a Sirius problem.
The PropertySheetViewer#updateCategories() method calls
childEntry.getCategory().
This leads to
org.eclipse.sirius.ui.tools.api.properties.AbstractCompositeObjectPropertySource#buildCategoryName(EObject
eObject).
There the category name is retrieved like from the label provider.
This causes that for all features/properties the eObject's name is used
as the category name. The categories defined in the genmodel are ignored.
Any ideas about this?
Axel
Am 18.03.2016 um 17:09 schrieb Axel Guckelsberger:
> Hi Esteban,
>
> thanks for elaborating. I am going to debug it soon in order to find the
> reason for categories not being used properly.
>
> Regards,
> Axel
>
>
> Am 18.03.2016 um 14:35 schrieb Esteban Dugueperoux:
>> Hi Axel,
>>
>> I think you talk about "Show Categories" button in the Semantic tab?
>> If yes, your need about the properties view does not seem related to
>> Sirius, but only to properties view, the fact to have categories shown
>> in properties view seems only configurable through this action.
>> Because when looking at org.eclipse.ui.views.properties.CategoriesAction
>> class, it calls PropertySheetViewer.showCategories()/hideCategories()
>> method which are not accessible by API.
>> But by default categories are shown because
>> PropertySheetViewer.isShowingCategories boolean is at true.
>>
>> Best Regards.
>>
>> Le 18/03/2016 13:55, Axel Guckelsberger a écrit :
>>> Hi all,
>>>
>>> in my xcore metamodel I assigned attributes to different categories.
>>> These categories are also correctly contained in the generated item
>>> provider classes in the edit plugin.
>>>
>>> If I enable the "show categories" button in the properties view of the
>>> Sirius diagram editor the element type is used as a single category only
>>> though.
>>>
>>> Is there any setting for activating the categories support? Or am I
>>> missing something?
>>>
>>> Thanks for your advice,
>>>
>>> Axel
>>
>>
>>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02147 seconds