Java Code Examples for org.eclipse.xtext.generator.OutputConfiguration#setHideSyntheticLocalVariables()

The following examples show how to use org.eclipse.xtext.generator.OutputConfiguration#setHideSyntheticLocalVariables() . 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: EclipseOutputConfigurationProvider.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * @deprecated use {@link #createAndOverlayOutputConfiguration(IProject, IPreferenceStore, OutputConfiguration)}
 */
@Deprecated
protected OutputConfiguration createAndOverlayOutputConfiguration(IPreferenceStore store, OutputConfiguration output) {
	OutputConfiguration result = new OutputConfiguration(output.getName());
	boolean clearOutputDirectory = getBoolean(output, OUTPUT_CLEAN_DIRECTORY, store, output.isCanClearOutputDirectory());
	result.setCanClearOutputDirectory(clearOutputDirectory);
	boolean cleanUpDerivedResources = getBoolean(output, OUTPUT_CLEANUP_DERIVED, store, output.isCleanUpDerivedResources());
	result.setCleanUpDerivedResources(cleanUpDerivedResources);
	boolean createOutputDirectory = getBoolean(output, OUTPUT_CREATE_DIRECTORY, store, output.isCreateOutputDirectory());
	result.setCreateOutputDirectory(createOutputDirectory);
	boolean overrideExistingResources = getBoolean(output, OUTPUT_OVERRIDE, store, output.isOverrideExistingResources());
	result.setOverrideExistingResources(overrideExistingResources);
	boolean setDerivedProperty = getBoolean(output, OUTPUT_DERIVED, store, output.isSetDerivedProperty());
	result.setSetDerivedProperty(setDerivedProperty);
	boolean installDslAsPrimarySource = getBoolean(output, INSTALL_DSL_AS_PRIMARY_SOURCE, store, output.isInstallDslAsPrimarySource());
	result.setInstallDslAsPrimarySource(installDslAsPrimarySource);
	boolean hideSyntheticLocalVariables = getBoolean(output, HIDE_LOCAL_SYNTHETIC_VARIABLES, store, output.isHideSyntheticLocalVariables());
	result.setHideSyntheticLocalVariables(hideSyntheticLocalVariables);
	String description = getString(output, OUTPUT_DESCRIPTION, store, output.getDescription());
	result.setDescription(description);
	String directory = getString(output, OUTPUT_DIRECTORY, store, output.getOutputDirectory());
	result.setOutputDirectory(directory);
	boolean keepLocalHistory = getBoolean(output, OUTPUT_KEEP_LOCAL_HISTORY, store, output.isKeepLocalHistory());
	result.setKeepLocalHistory(keepLocalHistory);
	boolean useOutputPerSourceFolder = getBoolean(output, USE_OUTPUT_PER_SOURCE_FOLDER, store, output.isUseOutputPerSourceFolder());
	result.setUseOutputPerSourceFolder(useOutputPerSourceFolder);
	return result;
}
 
Example 2
Source File: XtendProjectConfigurator.java    From xtext-xtend with Eclipse Public License 2.0 5 votes vote down vote up
private void readDebugInfoConfig(OutputConfiguration config, ProjectConfigurationRequest request,
		MojoExecution execution, SubMonitor progress) throws CoreException {
	progress = SubMonitor.convert(progress, 2);
	config.setHideSyntheticLocalVariables(
			mojoParameterValue("hideSyntheticVariables", Boolean.class, request, execution, progress));
	config.setInstallDslAsPrimarySource(
			mojoParameterValue("xtendAsPrimaryDebugSource", Boolean.class, request, execution, progress));
}
 
Example 3
Source File: XtendProjectConfigurator.java    From xtext-xtend with Eclipse Public License 2.0 5 votes vote down vote up
private void readTestDebugInfoConfig(OutputConfiguration config, ProjectConfigurationRequest request,
		MojoExecution execution, SubMonitor progress) throws CoreException {
	progress = SubMonitor.convert(progress, 2);
	config.setHideSyntheticLocalVariables(
			mojoParameterValue("hideSyntheticVariables", Boolean.class, request, execution, progress));
	config.setInstallDslAsPrimarySource(
			mojoParameterValue("xtendAsPrimaryDebugSource", Boolean.class, request, execution, progress));
}