Home » Eclipse Projects » Sirius » Auto-completion for semantic property
|
Re: Auto-completion for semantic property [message #1711388 is a reply to message #1710314] |
Thu, 15 October 2015 13:24 |
|
Le 06/10/2015 05:37, Tuan Hoang Anh a écrit :
> Hi all,
Hi
> I want to add the auto-completion for Semantic property of element. When
> user selects a Node or Container, then edit Semantic in Properties view,
> he can press Ctrl + Space to show the auto-completion list for each
> Semantic parameters (Name, Value ...).
>
> Can anyone guide me how to do it?
This property section is not specific to sirius.
Using jface mechnisms, you can provide your own IContentAssistant to
propose your own auto-completion items.
>
> Best Regards,
> Tuan Hoang
Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Auto-completion for semantic property [message #1711469 is a reply to message #1711388] |
Fri, 16 October 2015 10:40 |
Tuan Hoang Anh Messages: 42 Registered: May 2015 |
Member |
|
|
Laurent Fasani wrote on Thu, 15 October 2015 13:24Le 06/10/2015 05:37, Tuan Hoang Anh a écrit :
> Hi all,
Hi
> I want to add the auto-completion for Semantic property of element. When
> user selects a Node or Container, then edit Semantic in Properties view,
> he can press Ctrl + Space to show the auto-completion list for each
> Semantic parameters (Name, Value ...).
>
> Can anyone guide me how to do it?
This property section is not specific to sirius.
Using jface mechnisms, you can provide your own IContentAssistant to
propose your own auto-completion items.
>
> Best Regards,
> Tuan Hoang
Hi Laurent,
Thanks for your answer.
I used ContentProposalAdapter to propose the auto-completion items in SWT application. But I don't know how to do it with Text in Semantic in Properties View of Sirius.
Could you tell me how to add this feature to use in Sirius? Which plugin extension or something else?
Best Regards,
Tuan Hoang
|
|
|
Re: Auto-completion for semantic property [message #1711495 is a reply to message #1711469] |
Fri, 16 October 2015 12:46 |
|
Le 16/10/2015 12:40, Tuan Hoang Anh a écrit :
> Laurent Fasani wrote on Thu, 15 October 2015 13:24
>> Le 06/10/2015 05:37, Tuan Hoang Anh a écrit :
>> > Hi all,
>>
>> Hi
>>
>> > I want to add the auto-completion for Semantic property of element.
>> When
>> > user selects a Node or Container, then edit Semantic in Properties
>> view,
>> > he can press Ctrl + Space to show the auto-completion list for each
>> > Semantic parameters (Name, Value ...).
>> >
>> > Can anyone guide me how to do it?
>>
>> This property section is not specific to sirius.
>> Using jface mechnisms, you can provide your own IContentAssistant to
>> propose your own auto-completion items.
>>
>> >
>> > Best Regards,
>> > Tuan Hoang
>
> Hi Laurent,
>
> Thanks for your answer.
> I used ContentProposalAdapter to propose the auto-completion items in
> SWT application. But I don't know how to do it with Text in Semantic in
> Properties View of Sirius.
>
> Could you tell me how to add this feature to use in Sirius? Which plugin
> extension or something else?
>
> Best Regards,
> Tuan Hoang
Hi Tuan,
The items displayed in the property sheet in the semantic tab are
provided by your .edit metamodel plugin generated with .genmodel. It is
full EMF and not sirius dependant. If you want to control what is
displayed and if you want completion for these fields, it is a good
entry point.
Regards
Laurent
Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Auto-completion for semantic property [message #1712037 is a reply to message #1711495] |
Wed, 21 October 2015 03:34 |
Tuan Hoang Anh Messages: 42 Registered: May 2015 |
Member |
|
|
Laurent Fasani wrote on Fri, 16 October 2015 12:46Le 16/10/2015 12:40, Tuan Hoang Anh a écrit :
> Laurent Fasani wrote on Thu, 15 October 2015 13:24
>> Le 06/10/2015 05:37, Tuan Hoang Anh a écrit :
>> > Hi all,
>>
>> Hi
>>
>> > I want to add the auto-completion for Semantic property of element.
>> When
>> > user selects a Node or Container, then edit Semantic in Properties
>> view,
>> > he can press Ctrl + Space to show the auto-completion list for each
>> > Semantic parameters (Name, Value ...).
>> >
>> > Can anyone guide me how to do it?
>>
>> This property section is not specific to sirius.
>> Using jface mechnisms, you can provide your own IContentAssistant to
>> propose your own auto-completion items.
>>
>> >
>> > Best Regards,
>> > Tuan Hoang
>
> Hi Laurent,
>
> Thanks for your answer.
> I used ContentProposalAdapter to propose the auto-completion items in
> SWT application. But I don't know how to do it with Text in Semantic in
> Properties View of Sirius.
>
> Could you tell me how to add this feature to use in Sirius? Which plugin
> extension or something else?
>
> Best Regards,
> Tuan Hoang
Hi Tuan,
The items displayed in the property sheet in the semantic tab are
provided by your .edit metamodel plugin generated with .genmodel. It is
full EMF and not sirius dependant. If you want to control what is
displayed and if you want completion for these fields, it is a good
entry point.
Regards
Laurent
Hi Laurent,
Thank for your kind support.
I approach the solution by starting with EMF. And I succeed to add auto-completion to EMF property as in picture.
But when I open the diagram and select the that item in Property -> Semantic, the auto-completion feature doesn't work.
Do you have any suggestion for me?
Best Regards,
Tuan Hoang
|
|
| | |
Goto Forum:
Current Time: Fri Mar 29 10:25:56 GMT 2024
Powered by FUDForum. Page generated in 0.03166 seconds
|