Java Code Examples for org.eclipse.xtext.xtext.wizard.SourceLayout

The following examples show how to use org.eclipse.xtext.xtext.wizard.SourceLayout. These examples are extracted from open source projects. 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
protected void setDefaults() {
	createUiProject.setSelection(true);
	createIdeProject.setSelection(true);
	createTestProject.setSelection(true);
	createWebProject.setSelection(false);
	createSDKProject.setSelection(false);
	createP2Project.setSelection(false);

	select(preferredBuildSystem, BuildSystem.NONE);
	select(createLanguageServer, LanguageServer.NONE);
	select(sourceLayout, SourceLayout.PLAIN);
}
 
Example 2
public SourceLayout getSourceLayout() {
	return SourceLayout.values()[sourceLayout.getSelectionIndex()];
}
 
Example 3
Source Project: xtext-core   Source File: OptionHandlers.java    License: Eclipse Public License 2.0 4 votes vote down vote up
public SourceLayoutOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super SourceLayout> setter) {
	super(parser, option, setter);
}
 
Example 4
Source Project: xtext-core   Source File: OptionHandlers.java    License: Eclipse Public License 2.0 4 votes vote down vote up
@Override
protected SourceLayout parse(String argument) throws NumberFormatException, CmdLineException {
	return SourceLayout.valueOf(argument);
}
 
Example 5
Source Project: xtext-core   Source File: WizardConfiguration.java    License: Eclipse Public License 2.0 4 votes vote down vote up
@Pure
public SourceLayout getSourceLayout() {
  return this.sourceLayout;
}
 
Example 6
Source Project: xtext-core   Source File: WizardConfiguration.java    License: Eclipse Public License 2.0 4 votes vote down vote up
public void setSourceLayout(final SourceLayout sourceLayout) {
  this.sourceLayout = sourceLayout;
}
 
Example 7
Source Project: xtext-core   Source File: TestProjectDescriptor.java    License: Eclipse Public License 2.0 4 votes vote down vote up
public boolean isInlined() {
  return (this.isEnabled() && (!Objects.equal(this.getConfig().getSourceLayout(), SourceLayout.PLAIN)));
}
 
Example 8
Source Project: xtext-core   Source File: TestProjectDescriptor.java    License: Eclipse Public License 2.0 4 votes vote down vote up
public boolean isSeparate() {
  return (this.isEnabled() && Objects.equal(this.getConfig().getSourceLayout(), SourceLayout.PLAIN));
}