org.eclipse.xtext.builder.impl.ToBeBuiltComputer Java Examples

The following examples show how to use org.eclipse.xtext.builder.impl.ToBeBuiltComputer. 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: ExternalLibraryBuilder.java    From n4js with Eclipse Public License 1.0 5 votes vote down vote up
private IToBeBuiltComputerContribution getContribution(
		ImmutableList<? extends IToBeBuiltComputerContribution> contributedInstances) {
	switch (contributedInstances.size()) {
	case 0:
		return new NullContribution();
	case 1:
		return contributedInstances.get(0);
	default:
		return new ToBeBuiltComputer.CompositeContribution(contributedInstances) {
			// empty anonymous subclass to access protected constructor
		};
	}
}
 
Example #2
Source File: RebuildingXtextBuilder.java    From dsl-devkit with Eclipse Public License 1.0 4 votes vote down vote up
protected ToBeBuiltComputer getToBeBuiltComputer() {
  return toBeBuiltComputer;
}
 
Example #3
Source File: ExternalLibraryBuilder.java    From n4js with Eclipse Public License 1.0 2 votes vote down vote up
@Override
protected ToBeBuilt getToBeBuilt(ToBeBuiltComputer computer, N4JSEclipseProject n4Project,
		IProgressMonitor monitor, IToBeBuiltComputerContribution contribution) {

	return computer.removeProject(n4Project.getProject(), monitor);
}
 
Example #4
Source File: ExternalLibraryBuilder.java    From n4js with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Calculates the {@link ToBeBuilt} for the project.
 *
 * @param computer
 *            the computer for the calculation.
 * @param project
 *            the object of the operation.
 * @param monitor
 *            the monitor for the process.
 * @param contribution
 *            TODO
 * @return the calculated {@link ToBeBuilt} instance.
 */
abstract ToBeBuilt getToBeBuilt(ToBeBuiltComputer computer, N4JSEclipseProject project,
		IProgressMonitor monitor, IToBeBuiltComputerContribution contribution);