Community
Participate
Working Groups
XtextLinkingService.loadEPackage attempts to load a resource and only considers the alternate load strategy for platform:/resource after an exception has been thrown deep within EMF for access to an empty Resource.getContents().get(0). The exception is disconcerting to me as a developer and rather inefficient. Since uri.isPlatformResource() is relatively cheap, would it not make more sense to test for a platform, resource before attempting an inappropriate load? [Please hoist the if clause out of the catch clause.]
Hi Ed, it was just yesterday when we added code that populates the uri map of the resourceset's uri converter with the information from the platform resource map similar to what the sample editor does. The catch-case should no longer be reached for valid platform:/plugin and platform:/resource uris. - Sebastian
Closing all bugs that were set to RESOLVED before Neon.0