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

Bug 510582

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: Laurent Redor <laurent.redor>
Severity: normal    
Priority: P3 CC: laurent.fasani, laurent.redor, maxime.porhel, pierre-charles.david, stephane.thibaudeau
Version: 2.0.3Keywords: triaged
Target Milestone: 2.0.8   
Hardware: PC   
OS: Windows 7   
See Also: https://git.eclipse.org/r/88873
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=a1876f93d55aaa0242193d119cdeb61774a77ab1
Whiteboard:
Bug Depends on: 466598    
Bug Blocks: 510850, 510969    

Description Laurent Redor CLA 2017-01-17 09:14:48 EST
+++ 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-17 09:54:04 EST
New Gerrit change created: https://git.eclipse.org/r/88873
Comment 3 Pierre-Charles David CLA 2017-01-31 08:47:35 EST
Available in Sirius 2.0.8, see https://wiki.eclipse.org/Sirius/2.0.8.