org.eclipse.xtext.build.IncrementalBuilder Java Examples
The following examples show how to use
org.eclipse.xtext.build.IncrementalBuilder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BuildManager.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Run an initial build * * @return the delta. */ public List<IResourceDescription.Delta> doInitialBuild(List<ProjectDescription> projects, CancelIndicator indicator) { List<ProjectDescription> sortedDescriptions = sortByDependencies(projects); List<IResourceDescription.Delta> result = new ArrayList<>(); for (ProjectDescription description : sortedDescriptions) { IncrementalBuilder.Result partialresult = workspaceManager.getProjectManager(description.getName()) .doInitialBuild(indicator); result.addAll(partialresult.getAffectedResources()); } return result; }
Example #2
Source File: ProjectManager.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Initial build of this project. */ public IncrementalBuilder.Result doInitialBuild(CancelIndicator cancelIndicator) { List<URI> allUris = new ArrayList<>(); for (ISourceFolder srcFolder : projectConfig.getSourceFolders()) { allUris.addAll(srcFolder.getAllResources(fileSystemScanner)); } return doBuild(allUris, Collections.emptyList(), Collections.emptyList(), cancelIndicator); }
Example #3
Source File: ProjectManager.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Build this project. */ public IncrementalBuilder.Result doBuild(List<URI> dirtyFiles, List<URI> deletedFiles, List<IResourceDescription.Delta> externalDeltas, CancelIndicator cancelIndicator) { BuildRequest request = newBuildRequest(dirtyFiles, deletedFiles, externalDeltas, cancelIndicator); IncrementalBuilder.Result result = incrementalBuilder.build(request, languagesRegistry::getResourceServiceProvider); indexState = result.getIndexState(); resourceSet = request.getResourceSet(); indexProvider.get().put(projectDescription.getName(), indexState.getResourceDescriptions()); return result; }