Multistatus reporting [message #492252] |
Mon, 19 October 2009 15:22 |
Eugene Mising name 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 #492441 is a reply to message #492252] |
Tue, 20 October 2009 12:45 |
|
--=-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? 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. 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 - "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?
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>
--=-z+B5ECv49ou1Dk4GbKAs--
|
|
|
Powered by
FUDForum. Page generated in 0.04233 seconds