Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFForms] Forms integration with Problems View
[EMFForms] Forms integration with Problems View [message #1730127] Thu, 21 April 2016 14:51 Go to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 26
Registered: January 2016
Junior Member
Hi there,

does EMFForms has as strategy how to cooperate with the problems view?

I understand that EMFForms widgets support validation, i.e. EMFForms
triggers EMF Diagnostic Validation automatically, when a value of some
attribute was edited by the user. The corresponding control will be
marked red by EMFForms automatically.

This uses the EMF-Validation mechanism which works well.

However, I want that all validation indications are also immediately
visible in the Problems view as well.

So far my understanding is that the problems view is fed by the Eclipse
Workspace mechanism of Markers to Ressources. So there is a special
ValidateAction in EMF that also triggers a complete EMF Diagnostic
validation of the model and stores the result in Eclipse Markers which
get displayed in the Problems view.
These mechanism, however, is on-top of EMF diagnostic validation.

Hence, EMFForms internal validation does not trigger the adding or
removal of Markers on the ressource.

Is there any strategy to achieve a full synchronisation of the
validation in EMFForms and the Problems View, i.e. Markers?

Cheers,
Hauke
Re: [EMFForms] Forms integration with Problems View [message #1730136 is a reply to message #1730127] Thu, 21 April 2016 16:16 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi Hauke,

without having checked that, I would assume that the problems view is
extensible by providers, which can fill it. It would then be possible to
create a service, which is attached to the EMF Forms validation and
fills the problems view from it...
Another alternative would be to implement a custom validation view (we
have done that in projects before), which is fairly simple and leaves
you all freedom about the visualization.
Best regards

Jonas


Am 21.04.2016 um 16:51 schrieb Hauke Fuhrmann:
> Hi there,
>
> does EMFForms has as strategy how to cooperate with the problems view?
>
> I understand that EMFForms widgets support validation, i.e. EMFForms
> triggers EMF Diagnostic Validation automatically, when a value of some
> attribute was edited by the user. The corresponding control will be
> marked red by EMFForms automatically.
>
> This uses the EMF-Validation mechanism which works well.
>
> However, I want that all validation indications are also immediately
> visible in the Problems view as well.
>
> So far my understanding is that the problems view is fed by the Eclipse
> Workspace mechanism of Markers to Ressources. So there is a special
> ValidateAction in EMF that also triggers a complete EMF Diagnostic
> validation of the model and stores the result in Eclipse Markers which
> get displayed in the Problems view.
> These mechanism, however, is on-top of EMF diagnostic validation.
>
> Hence, EMFForms internal validation does not trigger the adding or
> removal of Markers on the ressource.
>
> Is there any strategy to achieve a full synchronisation of the
> validation in EMFForms and the Problems View, i.e. Markers?
>
> Cheers,
> Hauke


--
--

Jonas Helming

Get professional Eclipse developer support:

http://eclipsesource.com/en/services/developer-support/
Re: [EMFForms] Forms integration with Problems View [message #1730172 is a reply to message #1730136] Fri, 22 April 2016 05:56 Go to previous messageGo to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 26
Registered: January 2016
Junior Member
Hi Jonas,

thanks for the hint. Can you point me to the right direction where in
the Forms I can attach listeners or something like that to validation
events? So far my impression is that the forms validation is an
encapsulated black box where I can't access the events.

Cheers,
Hauke


Am 21.04.2016 18:16, schrieb Jonas Helming:
> Hi Hauke,
>
> without having checked that, I would assume that the problems view is
> extensible by providers, which can fill it. It would then be possible to
> create a service, which is attached to the EMF Forms validation and
> fills the problems view from it...
> Another alternative would be to implement a custom validation view (we
> have done that in projects before), which is fairly simple and leaves
> you all freedom about the visualization.
> Best regards
>
> Jonas
>
>
> Am 21.04.2016 um 16:51 schrieb Hauke Fuhrmann:
>> Hi there,
>>
>> does EMFForms has as strategy how to cooperate with the problems view?
>>
>> I understand that EMFForms widgets support validation, i.e. EMFForms
>> triggers EMF Diagnostic Validation automatically, when a value of some
>> attribute was edited by the user. The corresponding control will be
>> marked red by EMFForms automatically.
>>
>> This uses the EMF-Validation mechanism which works well.
>>
>> However, I want that all validation indications are also immediately
>> visible in the Problems view as well.
>>
>> So far my understanding is that the problems view is fed by the Eclipse
>> Workspace mechanism of Markers to Ressources. So there is a special
>> ValidateAction in EMF that also triggers a complete EMF Diagnostic
>> validation of the model and stores the result in Eclipse Markers which
>> get displayed in the Problems view.
>> These mechanism, however, is on-top of EMF diagnostic validation.
>>
>> Hence, EMFForms internal validation does not trigger the adding or
>> removal of Markers on the ressource.
>>
>> Is there any strategy to achieve a full synchronisation of the
>> validation in EMFForms and the Problems View, i.e. Markers?
>>
>> Cheers,
>> Hauke
>
>
Re: [EMFForms] Forms integration with Problems View [message #1730183 is a reply to message #1730172] Fri, 22 April 2016 06:36 Go to previous message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
I think org.eclipse.emf.ecp.view.spi.validation.ValidationService should
do the trick...

Am 22.04.2016 um 07:56 schrieb Hauke Fuhrmann:
> Hi Jonas,
>
> thanks for the hint. Can you point me to the right direction where in
> the Forms I can attach listeners or something like that to validation
> events? So far my impression is that the forms validation is an
> encapsulated black box where I can't access the events.
>
> Cheers,
> Hauke
>
>
> Am 21.04.2016 18:16, schrieb Jonas Helming:
>> Hi Hauke,
>>
>> without having checked that, I would assume that the problems view is
>> extensible by providers, which can fill it. It would then be possible to
>> create a service, which is attached to the EMF Forms validation and
>> fills the problems view from it...
>> Another alternative would be to implement a custom validation view (we
>> have done that in projects before), which is fairly simple and leaves
>> you all freedom about the visualization.
>> Best regards
>>
>> Jonas
>>
>>
>> Am 21.04.2016 um 16:51 schrieb Hauke Fuhrmann:
>>> Hi there,
>>>
>>> does EMFForms has as strategy how to cooperate with the problems view?
>>>
>>> I understand that EMFForms widgets support validation, i.e. EMFForms
>>> triggers EMF Diagnostic Validation automatically, when a value of some
>>> attribute was edited by the user. The corresponding control will be
>>> marked red by EMFForms automatically.
>>>
>>> This uses the EMF-Validation mechanism which works well.
>>>
>>> However, I want that all validation indications are also immediately
>>> visible in the Problems view as well.
>>>
>>> So far my understanding is that the problems view is fed by the Eclipse
>>> Workspace mechanism of Markers to Ressources. So there is a special
>>> ValidateAction in EMF that also triggers a complete EMF Diagnostic
>>> validation of the model and stores the result in Eclipse Markers which
>>> get displayed in the Problems view.
>>> These mechanism, however, is on-top of EMF diagnostic validation.
>>>
>>> Hence, EMFForms internal validation does not trigger the adding or
>>> removal of Markers on the ressource.
>>>
>>> Is there any strategy to achieve a full synchronisation of the
>>> validation in EMFForms and the Problems View, i.e. Markers?
>>>
>>> Cheers,
>>> Hauke
>>
>>
>


--
--

Jonas Helming

Get professional Eclipse developer support:

http://eclipsesource.com/en/services/developer-support/
Previous Topic:[Teneo,Texo] Migrate from Teneo to Texo
Next Topic:[Teneo] List as Map-value
Goto Forum:
  


Current Time: Fri Mar 29 14:47:36 GMT 2024

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

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

Back to the top