Community
Participate
Working Groups
Hi, There should be more than a red customization to indicate that a resource is missing while browsing a model in the MoDisco Model Browser. The red customization could be used by anyone for another purpose, and because clicking on the resource does not raise any flag, it seems to me that the "missing resource" information is not clear enough. There could be a message in the MoDisco Logger, or an error message such as the "Reflective Ecore Model Editor" one. As a enhancement, would it be possible to know if the whole resource (xmi file) is missing, or if it is just a model element ? Regards Nicolas
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.