Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 510850

Summary: Inconsistent bevahior using org.eclipse.sirius.ui.modelingprojectresourcelistener
Product: [Modeling] Sirius Reporter: Laurent Redor <laurent.redor>
Component: CoreAssignee: Laurent Redor <laurent.redor>
Status: CLOSED FIXED QA Contact: Pierre Guilet <pierre.guilet>
Severity: normal    
Priority: P3 CC: laurent.fasani, laurent.redor, maxime.porhel, stephane.thibaudeau
Version: 2.0.3Keywords: triaged
Target Milestone: 3.1.8   
Hardware: PC   
OS: Windows 7   
See Also: https://git.eclipse.org/r/89344
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=1731249f1d434249ac36a2c98035db272ad4abc0
Whiteboard:
Bug Depends on: 466598, 510582, 510969    
Bug Blocks:    

Description Laurent Redor CLA 2017-01-23 05:30:31 EST
+++ This bug was initially created as a clone of Bug #510582 +++

+++ This bug was initially created as a clone of Bug #466598 +++

I use the extension point "org.eclipse.sirius.ui.modelingprojectresourcelistener" to override the "isPotentialSemanticResource" method.
My goal is to prevent some resources from automatically being added as semantic resource in a modeling project.

The behavior is not consistent :

1) Use Case 1
- create a modeling project
- copy a file
- isPotentialSemanticResource is called and returns false
- the file is not added as a semantic resource => OK

2) Use Case 2
- create a java project (not a modeling project)
- copy a file
- configure the project to be a modeling procject
- isPotentialSemanticResource is called and returns false
- the file is added as a semantic resource => KO
Comment 1 Eclipse Genie CLA 2017-01-23 08:17:28 EST
New Gerrit change created: https://git.eclipse.org/r/89344
Comment 3 Pierre-Charles David CLA 2017-04-12 04:58:34 EDT
Available in Sirius 3.1.8, see https://wiki.eclipse.org/Sirius/3.1.8 for details.