New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete EMFIndexRetrieval #1036
Comments
What is the reasoning for deprecating EMFIndexRetrieval. The graphical editor has moved away from EMFIndexRetrieval but still uses something that has many similarities (ScopedEMFIndexRetrieval). Is the reasoning something that would make us reconsider our usage of the EMF index? |
Can you give the user a clue what should be used instead? |
|
We could also provide a replacement utility class that (a) does the right thing and (b) has a better name as there is no such thing as an EMF index. |
This class is an abomination. It also breaks non-UI testing, because it uses a UI |
The class is still used in smaccm |
Okay, Joe/Lutz: |
The global scope provider doesn't work on the workspace as a whole (and it shouldn't)! The global scope is the current project and all projects it depends on (directly or indirectly). |
Okay, so IGlobalScopeProvider may not be what I need: How can I find every component with a BLESS annex subclause to generate verification conditions? (In a second pass, an assume-guarantee VC is generated for every connection between ports with BLESS::Assertion properties, and drop an info marker on each connection that doesn't have them on both ends.) |
If you really want to work with the workspace as a whole (why?) you need to inject ResourceDescriptionsProvider, get the resource descriptions and get the exported objects. EMFIndexRetrieval does this, but in the wrong way because it combines dependency injection with static methods, which leads to hacks like the one I mentioned in an earlier comment. |
@reteprelief There are still two usages in smaccm:
|
The class will be removed in OSATE 2.3.6 |
How I got all the AADL packages in the workspace w/o EMFIndexRetrieval:
... |
EMFIndexRetrieval
is now deprecated. All usages of EMFIndexRetrieval in OSATE should be changed.blocked by #1089
blocked by #1309
The text was updated successfully, but these errors were encountered: