/** * Adds the given file to EcorePlugin's platform resource map. * The file's name will be used as the map entry's key. * * @param file a file to register * @return the registered URI pointing to the given file * @see EcorePlugin#getPlatformResourceMap() */ private URI addToPlatformResourceMap(final File file) { getLog().info("Adding project '" + file.getName() + "' with path '" + file.toURI().toString()+"' to Platform Resource Map"); final URI uri = URI.createURI(file.toURI().toString()); return EcorePlugin.getPlatformResourceMap().put(file.getName(), uri); } }
String rootContainerName = platformResourcePath.substring(1, index); String relativeName = platformResourcePath.substring(index + 1); URI rootContainerLocation = getPlatformResourceMap().get(rootContainerName); if (rootContainerLocation != null)
String rootContainerName = platformResourcePath.substring(1, index); String relativeName = platformResourcePath.substring(index + 1); URI rootContainerLocation = getPlatformResourceMap().get(rootContainerName); if (rootContainerLocation != null)
private void manuallyAddToPlatformResourceMap() { if (projectMappings != null) { for (ProjectMapping projectMapping : projectMappings) { if (projectMapping.getPath() != null && projectMapping.getProjectName() != null) { String path = projectMapping.getPath().toURI().toString(); String name = projectMapping.getProjectName(); getLog().info("Adding project '" + name + "' with path '" + path +"' to Platform Resource Map"); final URI uri = URI.createURI(path); EcorePlugin.getPlatformResourceMap().put(name, uri); } } } }
name = name.substring(0, indexOf); boolean _containsKey = EcorePlugin.getPlatformResourceMap().containsKey(name); if (_containsKey) { return; String _plus = ("archive:" + _createFileURI); final String path = (_plus + "!/"); EcorePlugin.getPlatformResourceMap().put(name, URI.createURI(path));
name = name.substring(0, indexOf); boolean _containsKey = EcorePlugin.getPlatformResourceMap().containsKey(name); if (_containsKey) { return; final String path = (_plus + "!/"); final URI uri = URI.createURI(path); EcorePlugin.getPlatformResourceMap().put(name, uri);