public void update(DidChangeWorkspaceFoldersParams params) { final Collection<IPath> addedRootPaths = new ArrayList<>(); final Collection<IPath> removedRootPaths = new ArrayList<>(); for (WorkspaceFolder folder : params.getEvent().getAdded()) { IPath rootPath = ResourceUtils.canonicalFilePathFromURI(folder.getUri()); if (rootPath != null) { addedRootPaths.add(rootPath); } } for (WorkspaceFolder folder : params.getEvent().getRemoved()) { IPath rootPath = ResourceUtils.canonicalFilePathFromURI(folder.getUri()); if (rootPath != null) { removedRootPaths.add(rootPath); } } projectManager.updateWorkspaceFolders(addedRootPaths, removedRootPaths); } }
if (workspaceFolders != null && !workspaceFolders.isEmpty()) { for (String uri : workspaceFolders) { IPath filePath = ResourceUtils.canonicalFilePathFromURI(uri); if (filePath != null) { rootPaths.add(filePath); IPath filePath = ResourceUtils.canonicalFilePathFromURI(rootPath); if (filePath != null) { rootPaths.add(filePath); if (triggerFiles != null) { for (String uri : triggerFiles) { IPath filePath = ResourceUtils.canonicalFilePathFromURI(uri); if (filePath != null) { triggerPaths.add(filePath);