Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Multistatus reporting
Multistatus reporting [message #492252] Mon, 19 October 2009 15:22 Go to next message
Eugene Mising name is currently offline Eugene Mising nameFriend
Messages: 3
Registered: July 2009
Junior Member
Hi,
I have included a very simple example of a batch validation constraint for a UML model.
The problem appears when using a MultiStatus object to report multiple issues from within a single constraint. When multiple issues are detected and added as children of the MultiStatus object, the number of issues are correctly reported in the console - "0 errors, 4 warnings, 0 informational messages", however the problem is that only 1 entry appears in the Problems view!

Has anyone come across this issue?

Eclipse - v3.3

[Updated on: Mon, 19 October 2009 15:44]

Report message to a moderator

Re: Multistatus reporting [message #492335 is a reply to message #492252] Tue, 20 October 2009 05:03 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Eugene,

It sounds like only one marker was created; the problems view shows
IMarkers, not IStatus instances.


Eugene wrote:
> Hi,
> I have included a very simple example of a batch validation
> constraint for a UML model.
> The problem appears when using a MultiStatus object to report multiple
> issues from within a single constraint. When multiple issues are
> detected and added as children of the MultiStatus object, the number
> of issues are correctly reported in the console - "0 errors, 4
> warnings, 0 informational messages", however the problem is that only
> 1 entry appears in the Problems view!
> Has anyone come across this issue?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Multistatus reporting [message #492441 is a reply to message #492252] Tue, 20 October 2009 12:45 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

--=-z+B5ECv49ou1Dk4GbKAs
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi, Eugene,

Which version of the EMF Validation Framework component are you using?
I don't know of one that prints messages to a console.

In any case, I am fairly certain that the most recent release
(1.3/Galileo) should handle multi-statuses by creating a problem marker
for each distinct problem that it contains. It is possible that this
depends on the constraint using the factory methods of the
ConstraintStatus class to create a multi-status, rather than using
Eclipse Platform's MultiStatus implementation.

HTH,

Christian


On Mon, 2009-10-19 at 11:23 -0400, Eugene wrote:

> Hi,
> I have included a very simple example of a batch validation constraint for a UML model.
> The problem appears when using a MultiStatus object to report multiple issues from within a single constraint. When multiple issues are detected and added as children of the MultiStatus object, the number of issues are correctly reported in the console - "0 errors, 4 warnings, 0 informational messages", however the problem is that only 1 entry appears in the Problems view!
>
> Has anyone come across this issue?

--=-z+B5ECv49ou1Dk4GbKAs
Content-Type: text/html; charset="utf-8"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY>
Hi, Eugene,<BR>
<BR>
Which version of the EMF Validation Framework component are you using?&nbsp; I don't know of one that prints messages to a console.<BR>
<BR>
In any case, I am fairly certain that the most recent release (1.3/Galileo) should handle multi-statuses by creating a problem marker for each distinct problem that it contains.&nbsp; It is possible that this depends on the constraint using the factory methods of the ConstraintStatus class to create a multi-status, rather than using Eclipse Platform's MultiStatus implementation.<BR>
<BR>
HTH,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Mon, 2009-10-19 at 11:23 -0400, Eugene wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hi,
I have included a very simple example of a batch validation constraint for a UML model.
The problem appears when using a MultiStatus object to report multiple issues from within a single constraint. When multiple issues are detected and added as children of the MultiStatus object, the number of issues are correctly reported in the console - &quot;0 errors, 4 warnings, 0 informational messages&quot;, however the problem is that only 1 entry appears in the Problems view!

Has anyone come across this issue?
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-z+B5ECv49ou1Dk4GbKAs--
Previous Topic:Teneo and Gmf - Cannot modify resource set without a write transaction
Next Topic:Ecore UML Profile, adding Ecore annotation
Goto Forum:
  


Current Time: Tue Apr 16 13:31:45 GMT 2024

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

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

Back to the top