<commit_before>package org.jboss.reddeer.eclipse.jst.servlet.ui;

import org.jboss.reddeer.eclipse.jface.wizard.WizardPage;
import org.jboss.reddeer.swt.condition.ShellWithTextIsActive;
import org.jboss.reddeer.swt.impl.button.CheckBox;
import org.jboss.reddeer.swt.impl.button.PushButton;
import org.jboss.reddeer.swt.impl.combo.LabeledCombo;
import org.jboss.reddeer.swt.impl.group.DefaultGroup;
import org.jboss.reddeer.swt.impl.menu.ContextMenu;
import org.jboss.reddeer.swt.impl.shell.DefaultShell;
import org.jboss.reddeer.swt.impl.text.LabeledText;
import org.jboss.reddeer.swt.impl.tree.DefaultTreeItem;
import org.jboss.reddeer.swt.wait.WaitWhile;

public class WebProjectFirstPage extends WizardPage{
	
	public void setProjectName(String projectName){
		new LabeledText("Project name:").setText(projectName);
	}
	
	public String getProjectName(){
		return new LabeledText("Project name:").getText();
	}
	
	public void setUseDefaultLocation(boolean useDefaultLocation){
		new CheckBox(new DefaultGroup("Project location"),"Use default location").toggle(useDefaultLocation);
	}
	
	public boolean isUseDefaultLocation(){
		return new CheckBox(new DefaultGroup("Project location"),"Use default location").isChecked();
	}
	
	public void setLocation(String location){
		new LabeledText("Location:").setText(location);
	}
	
	public String getLocation(){
		return new LabeledText("Location:").getText();
	}
	
	public void setTargetRuntime(String targetRuntime){
		new LabeledCombo(new DefaultGroup("Target runtime")).setSelection(targetRuntime);
	}
	
	public String getTargetRuntime(){
		return new LabeledCombo(new DefaultGroup("Target runtime")).getSelection();
	}
	
	public void setDynamicWebModuleVersion(String version){
		new LabeledCombo(new DefaultGroup("Dynamic web module version")).setSelection(version);
	}
	
	public String getDynamicWebModuleVersion(){
		return new LabeledCombo(new DefaultGroup("Dynamic web module version")).getSelection();
	}
	
	public void setConfiguration(String configuration){
		new LabeledCombo(new DefaultGroup("Configuration")).setSelection(configuration);
	}
	
	public String getConString(){
		return new LabeledCombo(new DefaultGroup("Configuration")).getSelection();
	}
	
	public void setEARMembership(boolean membership){
		new CheckBox(new DefaultGroup("EAR membership"),"Add project to an EAR").toggle(membership);
	}
	
	public boolean isEARMembership(){
		return new CheckBox(new DefaultGroup("EAR membership"),"Add project to an EAR").isChecked();
	}
	
	public void setEARProjectName(String name){
		new LabeledCombo(new DefaultGroup("EAR membership"),"EAR project name:").setText(name);<commit_msg>getConfiguration() added to Web Wizard.<commit_after>package org.jboss.reddeer.eclipse.jst.servlet.ui;

import org.jboss.reddeer.eclipse.jface.wizard.WizardPage;
import org.jboss.reddeer.swt.condition.ShellWithTextIsActive;
import org.jboss.reddeer.swt.impl.button.CheckBox;
import org.jboss.reddeer.swt.impl.button.PushButton;
import org.jboss.reddeer.swt.impl.combo.DefaultCombo;
import org.jboss.reddeer.swt.impl.combo.LabeledCombo;
import org.jboss.reddeer.swt.impl.group.DefaultGroup;
import org.jboss.reddeer.swt.impl.menu.ContextMenu;
import org.jboss.reddeer.swt.impl.shell.DefaultShell;
import org.jboss.reddeer.swt.impl.text.LabeledText;
import org.jboss.reddeer.swt.impl.tree.DefaultTreeItem;
import org.jboss.reddeer.swt.wait.WaitWhile;

public class WebProjectFirstPage extends WizardPage{
	
	public void setProjectName(String projectName){
		new LabeledText("Project name:").setText(projectName);
	}
	
	public String getProjectName(){
		return new LabeledText("Project name:").getText();
	}
	
	public void setUseDefaultLocation(boolean useDefaultLocation){
		new CheckBox(new DefaultGroup("Project location"),"Use default location").toggle(useDefaultLocation);
	}
	
	public boolean isUseDefaultLocation(){
		return new CheckBox(new DefaultGroup("Project location"),"Use default location").isChecked();
	}
	
	public void setLocation(String location){
		new LabeledText("Location:").setText(location);
	}
	
	public String getLocation(){
		return new LabeledText("Location:").getText();
	}
	
	public void setTargetRuntime(String targetRuntime){
		new DefaultCombo(new DefaultGroup("Target runtime")).setSelection(targetRuntime);
	}
	
	public String getTargetRuntime(){
		return new DefaultCombo(new DefaultGroup("Target runtime")).getSelection();
	}
	
	public void setDynamicWebModuleVersion(String version){
		new DefaultCombo(new DefaultGroup("Dynamic web module version")).setSelection(version);
	}
	
	public String getDynamicWebModuleVersion(){
		return new DefaultCombo(new DefaultGroup("Dynamic web module version")).getSelection();
	}
	
	public void setConfiguration(String configuration){
		new DefaultCombo(new DefaultGroup("Configuration")).setSelection(configuration);
	}
	
	public String getConfiguration(){
		return new DefaultCombo(new DefaultGroup("Configuration")).getSelection();
	}
	
	public void setEARMembership(boolean membership){
		new CheckBox(new DefaultGroup("EAR membership"),"Add project to an EAR").toggle(membership);
	}
	
	public boolean isEARMembership(){
		return new CheckBox(new DefaultGroup("EAR membership"),"Add project to an EAR").isChecked();
	}
	
	public void setEARProjectName(String name){
		new LabeledCombo(new DefaultGroup("EAR membership"),"EAR project name:").setText(name);
{'fraction_non_alphanumeric': 0.11594202898550725, 'fraction_numerical': 0.0, 'mean_word_length': 6.581690140845071, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5716350', 'n_tokens_mistral': 1680, 'n_tokens_neox': 1592, 'n_words': 323}