package sopc2dts.gui;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;

import sopc2dts.LogListener;
import sopc2dts.Logger;
import sopc2dts.lib.AvalonSystem;

public class Sopc2DTSGui extends JFrame implements LogListener {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1060629328921686729L;
	JTabbedPane jtp = new JTabbedPane();
	JTextArea txtLog = new JTextArea();
	InputPanel pnlInput;
	OutputPanel pnlOutput = new OutputPanel();
	private AvalonSystem sys;

	public Sopc2DTSGui(String inpFile) {
		super("Sopc2DTS");
		Logger.addLogListener(this);
		Logger.setUseStdOutErr(false);
		pnlInput = new InputPanel(inpFile, this);
		jtp.addTab("Input", pnlInput);
//		jtp.addTab("Settings", new JPanel());
//		jtp.addTab("Boardinfo", new JPanel());
		jtp.addTab("Output", pnlOutput);
		txtLog.setEditable(false);
		JScrollPane jsp = new JScrollPane(txtLog);
		jsp.setPreferredSize(new Dimension(800,200));
		this.getContentPane().setLayout(new BorderLayout());
		this.getContentPane().add(jsp, BorderLayout.SOUTH);
		this.getContentPane().add(jtp, BorderLayout.CENTER);
		this.pack();
	}
	public void clearLog()
	{
		txtLog.setText("");
	}
	public void messageLogged(String log) {
		txtLog.setText(txtLog.getText() + log);
	}
	public void setSys(AvalonSystem sys) {
		this.sys = sys;
		pnlOutput.setSys(sys);
	}
	public AvalonSystem getSys() {
		return sys;
	}
	
}

@@ -1,12 +1,836 @@
+/*%0Asopc2dts - Devicetree generation for Altera systems%0A%0ACopyright (C) 2011 Walter Goossens %3Cwaltergoossens@home.nl%3E%0A%0AThis library is free software; you can redistribute it and/or%0Amodify it under the terms of the GNU Lesser General Public%0ALicense as published by the Free Software Foundation; either%0Aversion 2.1 of the License, or (at your option) any later version.%0A%0AThis library is distributed in the hope that it will be useful,%0Abut WITHOUT ANY WARRANTY; without even the implied warranty of%0AMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0ALesser General Public License for more details.%0A%0AYou should have received a copy of the GNU Lesser General Public%0ALicense along with this library; if not, write to the Free Software%0AFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA%0A*/%0A
 package sopc
@@ -1133,16 +1133,47 @@
 nSystem;
+%0Aimport sopc2dts.lib.BoardInfo;
 %0A%0Apublic
@@ -1235,23 +1235,8 @@
 r %7B%0A
-%09/**%0A%09 * %0A%09 */%0A
 %09pri
@@ -1281,27 +1281,27 @@
 D = 
-1060629328921686729
+8613192420393857538
 L;%0A%09
@@ -1467,16 +1467,47 @@
 em sys;%0A
+%09private BoardInfo boardInfo;%0A%09
 %0A%09public
@@ -1533,16 +1533,31 @@
  inpFile
+, String biFile
 ) %7B%0A%09%09su

Fix compilation error