Java 类org.eclipse.xtext.ui.preferences.OptionsConfigurationBlock 实例源码

项目:n4js    文件:N4JSBuilderPreferencePage.java   
/**
 * This method has been copied from org.eclipse.xtext.builder.preferences.BuilderConfigurationBlock.
 *
 * @param projectToBuild
 *            the project to build
 * @return the configured build job
 */
protected Job getBuildJob(IProject projectToBuild) {
    Job buildJob = new OptionsConfigurationBlock.BuildJob(Messages.BuilderConfigurationBlock_BuildJob_Title0,
            projectToBuild);
    buildJob.setRule(ResourcesPlugin.getWorkspace().getRuleFactory().buildRule());
    buildJob.setUser(true);
    return buildJob;
}