Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311684 - dependencies not revalidated when replacing a workspace query by a registered one
Summary: dependencies not revalidated when replacing a workspace query by a registered...
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Infrastructure (show other bugs)
Version: 0.8.0   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: 0.8.0   Edit
Assignee: Nicolas Bros CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 312456
  Show dependency tree
 
Reported: 2010-05-05 05:36 EDT by Nicolas Bros CLA
Modified: 2013-04-29 07:53 EDT (History)
3 users (show)

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


Attachments
patch (1.70 KB, patch)
2010-05-12 12:59 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 Bros CLA 2010-05-05 05:36:01 EDT
- do "New > Example > Java Browser Customization"
- On this project, do "New > QuerySet model"
- Create a query set named "textJavaQueries.querySet"
- Error markers should appear
- Delete this query set
- Error markers don't disappear, you need to clean
Comment 1 Nicolas Bros CLA 2010-05-11 11:26:46 EDT
When I remove this line:
MoDiscoResourceSet.getResourceSetSingleton().removeListener(this, rootObjectURI);
in AbstractMoDiscoCatalog.removeWSFile, the problem disappears and all unit tests pass.
But since you added it for a reason, I'll let you investigate further and decide how to best fix it.
Comment 2 Nicolas Bros CLA 2010-05-12 12:59:08 EDT
Created attachment 168200 [details]
patch

In fact, the problem was due to listeners not being added when the referred resource couldn't be loaded (non valid file).
This patch fixes the problem by adding a listener in this case.
As a bonus, it also fixes Bug 312456!
Comment 3 Hugo Bruneliere CLA 2010-05-17 04:21:47 EDT
Hi Nicolas,

You can go ahead with this patch.

Best regards,

Hugo
Comment 4 Nicolas Bros CLA 2010-05-17 04:47:33 EDT
Thanks. I have applied the patch to branch 0_8_0.
Comment 5 Hugo Bruneliere CLA 2010-10-01 13:37:01 EDT
Patch successfully committed.