// Path: com.github.jarlakxen.scala.sbt/src/com/github/jarlakxen/scala/sbt/util/UIUtil.java
// public class UIUtil {
// 
// 	/**
// 	 * Creates the Label with the given text.
// 	 * 
// 	 * @param parent
// 	 *            the parent composite
// 	 * @param text
// 	 *            the label text
// 	 */
// 	public static Label createLabel(Composite parent, String text) {
// 		return createLabel(parent, text, null);
// 	}
// 
// 	/**
// 	 * Creates the Label with the given text.
// 	 * 
// 	 * @param parent
// 	 *            the parent composite
// 	 * @param text
// 	 *            the label text
// 	 */
// 	public static Label createLabel(Composite parent, String text, GridData gridData) {
// 		Label label = new Label(parent, SWT.NULL);
// 		label.setText(text);
// 		if (gridData != null) {
// 			label.setLayoutData(gridData);
// 		}
// 		label.setAlignment(SWT.VERTICAL + SWT.CENTER);
// 		return label;
// 	}
// 
// 	/**
// 	 * Shows the error dialog with the given message.
// 	 * 
// 	 * @param message
// 	 *            the error message to show in the dialog.
// 	 */
// 	public static void showErrorDialog(final String message) {
// 		Display.getDefault().syncExec(new Runnable() {
// 			@Override
// 			public void run() {
// 				MessageDialog.openError(Display.getDefault().getActiveShell(), "Error", message);
// 			}
// 		});
// 	}
// 
// 	public static GridData createGridData(int option, int colspan) {
// 		GridData gd = new GridData(option);
// 		gd.horizontalSpan = colspan;
// 		return gd;
// 	}
// 
// 	public static GridData createGridDataWithWidth(int width) {
// 		GridData gd = new GridData();
// 		gd.minimumWidth = width;
// 		gd.widthHint = width;
// 		return gd;
// 	}
// }


import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.IWorkbenchPropertyPage;
import org.eclipse.ui.dialogs.PropertyPage;
import com.github.jarlakxen.scala.sbt.util.UIUtil;

package com.github.jarlakxen.scala.sbt;




/**
 * The property page to configure the SBT project.
 *
 * @author Naoki Takezoe
 */
public class SbtPropertyPage extends PropertyPage implements IWorkbenchPropertyPage {

	private List<Button> sbtRadioButtons;

	@Override
	protected Control createContents(Composite parent) {
		Composite composite = new Composite(parent, SWT.NULL);
		composite.setLayout(new GridLayout(2, false));
		composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
		
		// sbt version

// Path: com.github.jarlakxen.scala.sbt/src/com/github/jarlakxen/scala/sbt/util/UIUtil.java
// public class UIUtil {
// 
// 	/**
// 	 * Creates the Label with the given text.
// 	 * 
// 	 * @param parent
// 	 *            the parent composite
// 	 * @param text
// 	 *            the label text
// 	 */
// 	public static Label createLabel(Composite parent, String text) {
// 		return createLabel(parent, text, null);
// 	}
// 
// 	/**
// 	 * Creates the Label with the given text.
// 	 * 
// 	 * @param parent
// 	 *            the parent composite
// 	 * @param text
// 	 *            the label text
// 	 */
// 	public static Label createLabel(Composite parent, String text, GridData gridData) {
// 		Label label = new Label(parent, SWT.NULL);
// 		label.setText(text);
// 		if (gridData != null) {
// 			label.setLayoutData(gridData);
// 		}
// 		label.setAlignment(SWT.VERTICAL + SWT.CENTER);
// 		return label;
// 	}
// 
// 	/**
// 	 * Shows the error dialog with the given message.
// 	 * 
// 	 * @param message
// 	 *            the error message to show in the dialog.
// 	 */
// 	public static void showErrorDialog(final String message) {
// 		Display.getDefault().syncExec(new Runnable() {
// 			@Override
// 			public void run() {
// 				MessageDialog.openError(Display.getDefault().getActiveShell(), "Error", message);
// 			}
// 		});
// 	}
// 
// 	public static GridData createGridData(int option, int colspan) {
// 		GridData gd = new GridData(option);
// 		gd.horizontalSpan = colspan;
// 		return gd;
// 	}
// 
// 	public static GridData createGridDataWithWidth(int width) {
// 		GridData gd = new GridData();
// 		gd.minimumWidth = width;
// 		gd.widthHint = width;
// 		return gd;
// 	}
// }


// Path: com.github.jarlakxen.scala.sbt/src/com/github/jarlakxen/scala/sbt/SbtPropertyPage.java
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.IWorkbenchPropertyPage;
import org.eclipse.ui.dialogs.PropertyPage;
import com.github.jarlakxen.scala.sbt.util.UIUtil;

package com.github.jarlakxen.scala.sbt;




/**
 * The property page to configure the SBT project.
 *
 * @author Naoki Takezoe
 */
public class SbtPropertyPage extends PropertyPage implements IWorkbenchPropertyPage {

	private List<Button> sbtRadioButtons;

	@Override
	protected Control createContents(Composite parent) {
		Composite composite = new Composite(parent, SWT.NULL);
		composite.setLayout(new GridLayout(2, false));
		composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
		
		// sbt version

		UIUtil.createLabel(composite, "SBT Version:");
