From afcbbac7b769c14cadbd8e0a12a23b67c6a1643f Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 10 May 2007 17:00:03 +0000 Subject: [PATCH] added support for compilation output in mote type creation exception --- tools/cooja/java/se/sics/cooja/MoteType.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tools/cooja/java/se/sics/cooja/MoteType.java b/tools/cooja/java/se/sics/cooja/MoteType.java index 3724f62e2..950d408cf 100644 --- a/tools/cooja/java/se/sics/cooja/MoteType.java +++ b/tools/cooja/java/se/sics/cooja/MoteType.java @@ -24,7 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: MoteType.java,v 1.6 2007/04/02 12:45:20 fros4943 Exp $ + * $Id: MoteType.java,v 1.7 2007/05/10 17:00:03 fros4943 Exp $ */ package se.sics.cooja; @@ -34,6 +34,8 @@ import javax.swing.JFrame; import javax.swing.JPanel; import org.jdom.Element; +import se.sics.cooja.dialogs.MessageList; + /** * The mote type defines properties common for several motes. These properties * may differ between different implementations, but typically includes how a @@ -149,9 +151,19 @@ public interface MoteType { Collection configXML, boolean visAvailable) throws MoteTypeCreationException; public class MoteTypeCreationException extends Exception { + private MessageList compilationOutput = null; public MoteTypeCreationException(String message) { super(message); } + public boolean hasCompilationOutput() { + return compilationOutput != null; + } + public void setCompilationOutput(MessageList compilationOutput) { + this.compilationOutput = compilationOutput; + } + public MessageList getCompilationOutput() { + return compilationOutput; + } } }