Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311714 - [QuerySet] Display errors directly in the querySet editor ?
Summary: [QuerySet] Display errors directly in the querySet editor ?
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Infrastructure (show other bugs)
Version: 0.8.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.8.0 RC1   Edit
Assignee: Nicolas Bros CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 08:48 EDT by Nicolas Guyomar CLA
Modified: 2011-05-23 09:25 EDT (History)
4 users (show)

See Also:
nicolas.bros: helios+
nicolas.bros: indigo+
hugo.bruneliere: review+


Attachments
patch (86.38 KB, patch)
2010-05-07 04:36 EDT, Nicolas Bros CLA
no flags Details | Diff
patch to fix the refresh problem (4.35 KB, patch)
2010-05-07 11:50 EDT, Nicolas Bros CLA
no flags Details | Diff
patch to add error decorators for broken references (10.09 KB, patch)
2010-05-10 04:08 EDT, Nicolas Bros CLA
no flags Details | Diff
patch to also show error markers on parents of items with errors (3.49 KB, patch)
2010-05-12 04:30 EDT, Nicolas Bros CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Guyomar CLA 2010-05-05 08:48:08 EDT
Hi,

When an error is detected while working on querySet, could it be possible to display the red cross icon on the concerned queries directly in the editor in addition to the message in the log ?

Regards,

Nicolas
Comment 1 Nicolas Bros CLA 2010-05-06 08:51:45 EDT
Done in revision 2204, both for the query and facet editors.
Comment 2 Nicolas Bros CLA 2010-05-07 04:36:23 EDT
Created attachment 167443 [details]
patch
Comment 3 Nicolas Guyomar CLA 2010-05-07 11:09:44 EDT
Hi Nicolas,

Thanks for the enhancement.

When a modification is made from the properties panel on a facet/query, the editor is not automatically refresh. It is necessary to click in the editor (or close/open the querySet/facetSet) to see the red cross

Regards,

Nicolas
Comment 4 Nicolas Guyomar CLA 2010-05-07 11:46:33 EDT
Hi again,

Broken references between a querySet and a facetSet raise an error in the problem tab and a red cross in the package explorer, but the red cross is not displayed in the editor

Procedure to reproduce : 

Create a querySet with a query
Create a facetSet with a facet referencing the previous query as condition query
Delete the query
Refersh/reopen the facetSet, no red cross on the concerned facet

Regards

Nicolas
Comment 5 Nicolas Bros CLA 2010-05-07 11:50:53 EDT
Created attachment 167499 [details]
patch to fix the refresh problem
Comment 6 Nicolas Bros CLA 2010-05-10 04:08:35 EDT
Created attachment 167663 [details]
patch to add error decorators for broken references

This patch adds error decorators for broken references, and selects the concerned element when double-clicking in the Problems view.
Comment 7 Hugo Bruneliere CLA 2010-05-10 07:32:12 EDT
Nicolas,

You can go ahead with the patch.

Regards,

Hugo
Comment 8 Nicolas Bros CLA 2010-05-10 08:41:32 EDT
Thanks. I applied the patches to branch 0_8_0 for RC1.
Comment 9 Nicolas Guyomar CLA 2010-05-11 12:16:17 EDT
Hi Nicolas, Hugo,

Would it be possible to display the red cross on the parent when the error is detected on a facet's attribute/reference/shortcut ?

Regards

Nicolas
Comment 10 Nicolas Bros CLA 2010-05-12 04:30:35 EDT
Created attachment 168096 [details]
patch to also show error markers on parents of items with errors

This patch adds error markers on parents of items with errors.
Comment 11 Nicolas Bros CLA 2010-05-12 09:04:12 EDT
Fixed in revision 2260 (on trunk).
Comment 12 Nicolas Guyomar CLA 2010-05-19 09:32:40 EDT
Hi again,

In order to be completely JDT like, could you also add the red cross on the tabbed panel title ?

Regards,

Nicolas
Comment 13 Nicolas Bros CLA 2010-05-20 13:35:13 EDT
I added error decorators on the editor's tab in revision 2340.

In the future, could you make a separate bug for each separate request, please?
It would make it easier to track which changes are linked to which requirements.
Comment 14 Hugo Bruneliere CLA 2010-10-01 13:37:25 EDT
Patch successfully committed.