// Path: com/repdev/SymitarSession.java
// public enum FMFile{
// 	ACCOUNT("Account"),
// 	INVENTORY("Inventory"),
// 	PAYEE("Payee"),
// 	GL_ACCOUNT("GL_Account"),
// 	RECIEVED_ITEM("Recieved_Item"),
// 	PARTICIPANT("Partipant"),
// 	PARTICIPATION("Participation"),
// 	DEALER("Dealer"),
// 	USER("User"),
// 	COLLATERAL("Collateral");
// 
// 	private String displayName;
// 
// 	private FMFile(String displayName){
// 		this.displayName = displayName;
// 	}
// 
// 	public String getDisplayName()
// 	{
// 		return displayName;
// 	}
// }
// 
// Path: com/repdev/SymitarSession.java
// public class RunFMResult{
// 	private String resultTitle;
// 	private int seq;
// 
// 	public RunFMResult(){
// 		setRandomTitle();
// 	}
// 
// 	public RunFMResult(String resultTitle, int seq) {
// 		super();
// 		this.resultTitle = resultTitle;
// 		this.seq = seq;
// 	}
// 
// 	private void setRandomTitle(){
// 		resultTitle = "RepDev FM - " + String.format("%06d", (int)(Math.random() * 10000000));
// 	}
// 
// 	public String getResultTitle() {
// 		return resultTitle;
// 	}
// 
// 	public void setResultTitle(String resultTitle) {
// 		this.resultTitle = resultTitle;
// 	}
// 
// 	public int getSeq() {
// 		return seq;
// 	}
// 
// 	public void setSeq(int seq) {
// 		this.seq = seq;
// 	}		
// }


import org.eclipse.swt.SWT;
import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.events.FocusListener;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Spinner;
import org.eclipse.swt.widgets.Text;
import com.repdev.SymitarSession.FMFile;
import com.repdev.SymitarSession.RunFMResult;

		selectQueueButton.addSelectionListener(new SelectionAdapter(){
			@Override
			public void widgetSelected(SelectionEvent e) {
				doEnable();
			}
		});
		
		queueLabel = new Label(queueGroup,SWT.NONE);
		queueLabel.setText("Queue:");
		
		queueSpinner = new Spinner(queueGroup,SWT.BORDER);
		queueSpinner.setMaximum(9999);
		queueSpinner.setMinimum(0);
		
		
		if( Config.getRunOptionsQueue() != -1 ){
			queueSpinner.setSelection(Config.getRunOptionsQueue());
			selectQueueButton.setSelection(true);
		}
		else{
			queueSpinner.setSelection(0);
			defaultQueueButton.setSelection(true);
		}
		
		
		//Select All when tabbing through
		FocusListener selectAllFocuser = new FocusListener(){

			public void focusGained(FocusEvent e) {
				if( e.widget instanceof Text)

// Path: com/repdev/SymitarSession.java
// public enum FMFile{
// 	ACCOUNT("Account"),
// 	INVENTORY("Inventory"),
// 	PAYEE("Payee"),
// 	GL_ACCOUNT("GL_Account"),
// 	RECIEVED_ITEM("Recieved_Item"),
// 	PARTICIPANT("Partipant"),
// 	PARTICIPATION("Participation"),
// 	DEALER("Dealer"),
// 	USER("User"),
// 	COLLATERAL("Collateral");
// 
// 	private String displayName;
// 
// 	private FMFile(String displayName){
// 		this.displayName = displayName;
// 	}
// 
// 	public String getDisplayName()
// 	{
// 		return displayName;
// 	}
// }
// 
// Path: com/repdev/SymitarSession.java
// public class RunFMResult{
// 	private String resultTitle;
// 	private int seq;
// 
// 	public RunFMResult(){
// 		setRandomTitle();
// 	}
// 
// 	public RunFMResult(String resultTitle, int seq) {
// 		super();
// 		this.resultTitle = resultTitle;
// 		this.seq = seq;
// 	}
// 
// 	private void setRandomTitle(){
// 		resultTitle = "RepDev FM - " + String.format("%06d", (int)(Math.random() * 10000000));
// 	}
// 
// 	public String getResultTitle() {
// 		return resultTitle;
// 	}
// 
// 	public void setResultTitle(String resultTitle) {
// 		this.resultTitle = resultTitle;
// 	}
// 
// 	public int getSeq() {
// 		return seq;
// 	}
// 
// 	public void setSeq(int seq) {
// 		this.seq = seq;
// 	}		
// }


// Path: com/repdev/FMShell.java
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.events.FocusListener;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Spinner;
import org.eclipse.swt.widgets.Text;
import com.repdev.SymitarSession.FMFile;
import com.repdev.SymitarSession.RunFMResult;

		selectQueueButton.addSelectionListener(new SelectionAdapter(){
			@Override
			public void widgetSelected(SelectionEvent e) {
				doEnable();
			}
		});
		
		queueLabel = new Label(queueGroup,SWT.NONE);
		queueLabel.setText("Queue:");
		
		queueSpinner = new Spinner(queueGroup,SWT.BORDER);
		queueSpinner.setMaximum(9999);
		queueSpinner.setMinimum(0);
		
		
		if( Config.getRunOptionsQueue() != -1 ){
			queueSpinner.setSelection(Config.getRunOptionsQueue());
			selectQueueButton.setSelection(true);
		}
		else{
			queueSpinner.setSelection(0);
			defaultQueueButton.setSelection(true);
		}
		
		
		//Select All when tabbing through
		FocusListener selectAllFocuser = new FocusListener(){

			public void focusGained(FocusEvent e) {
				if( e.widget instanceof Text)

					((Text)e.widget).selectAll();
