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

Bug 510969

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, stephane.thibaudeau
Version: 2.0.3Keywords: triaged
Target Milestone: 4.1.4   
Hardware: PC   
OS: Windows 7   
See Also: https://git.eclipse.org/r/89451
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=5223e74e6f0575dcc5b171f10eb54227d9f74593
Whiteboard:
Bug Depends on: 466598, 510582    
Bug Blocks: 510850    

Description Laurent Redor CLA 2017-01-24 11:04:41 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-24 11:26:02 EST
New Gerrit change created: https://git.eclipse.org/r/89451
Comment 3 Pierre-Charles David CLA 2017-04-12 04:57:42 EDT
Available in Sirius 4.1.4, see https://wiki.eclipse.org/Sirius/4.1.4 for details.