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

The following examples show how to use org.eclipse.xtext.xtext.wizard.SourceLayout. 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: AdvancedNewProjectPage.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
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
Source File: AdvancedNewProjectPage.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public SourceLayout getSourceLayout() {
	return SourceLayout.values()[sourceLayout.getSelectionIndex()];
}
 
Example #3
Source File: OptionHandlers.java    From xtext-core with 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 File: OptionHandlers.java    From xtext-core with 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 File: WizardConfiguration.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
@Pure
public SourceLayout getSourceLayout() {
  return this.sourceLayout;
}
 
Example #6
Source File: WizardConfiguration.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public void setSourceLayout(final SourceLayout sourceLayout) {
  this.sourceLayout = sourceLayout;
}
 
Example #7
Source File: TestProjectDescriptor.java    From xtext-core with 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 File: TestProjectDescriptor.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public boolean isSeparate() {
  return (this.isEnabled() && Objects.equal(this.getConfig().getSourceLayout(), SourceLayout.PLAIN));
}