| Summary: | [Model Browser] Management of broken references | ||
|---|---|---|---|
| Product: | [Modeling] MoDisco | Reporter: | Nicolas Guyomar <nicolas.guyomar> |
| Component: | Infrastructure | Assignee: | Nicolas Bros <nicolas.bros> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | fabien.giquel, hugo.bruneliere, modisco.web-inbox, nicolas.bros |
| Version: | 0.9.0 | Flags: | nicolas.bros:
indigo+
|
| Target Milestone: | 0.9.0 M2 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Nicolas Guyomar
Actually, an EObject appearing in red means that this EObject has a null eResource(). This is normal in the case of some EObjects, like instances of EFactory for example. So, this is not by itself reason enough for an error message.
> would it be possible to know if the whole resource (xmi file) is missing,
> or if it is just a model element?
since the resource is null in this case, I don't believe that's possible
Maybe what you want is for the model browser to be able to validate the model, and report validation errors like the sample reflective Ecore editor?
In revision 3025, I replaced hardcoded color customizations: - elements with a null resource get their icon striken through - elements not in the first resource get a small "shortcut" arrow on their icon I am marking this bug as fixed, since I fixed the potential clash between the hard-coded customizations and the user-defined customizations. Please open a separate bug if you need model validation. Bug fixed. |