From 6c8151b449565f125adcc327185c83de5590aed3 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Tue, 12 Feb 2008 15:03:02 +0000 Subject: [PATCH] removed public static JFrame frame variable. components should instead access the top parent container via getTopParentContainer() --- tools/cooja/java/se/sics/cooja/CoreComm.java | 68 +++++---- .../cooja/java/se/sics/cooja/Simulation.java | 4 +- .../cooja/contikimote/ContikiMoteType.java | 9 +- .../contikimote/ContikiMoteTypeDialog.java | 43 ++++-- .../se/sics/cooja/dialogs/AddMoteDialog.java | 37 ++++- .../sics/cooja/dialogs/CreateSimDialog.java | 33 ++++- .../cooja/dialogs/ExternalToolsDialog.java | 36 ++++- .../dialogs/ProjectDirectoriesDialog.java | 55 ++++---- .../dialogs/ProjectDirectoryInputDialog.java | 17 ++- .../sics/cooja/mantismote/MantisMoteType.java | 49 +++---- .../mantismote/MantisMoteTypeDialog.java | 129 +++++++++++------- .../motes/AbstractApplicationMoteType.java | 17 +-- .../sics/cooja/motes/DisturberMoteType.java | 5 +- .../se/sics/cooja/motes/DummyMoteType.java | 7 +- .../se/sics/cooja/plugins/LogListener.java | 9 +- .../se/sics/cooja/plugins/Visualizer2D.java | 111 ++++++++------- 16 files changed, 399 insertions(+), 230 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/CoreComm.java b/tools/cooja/java/se/sics/cooja/CoreComm.java index 0370277c9..153a007b7 100644 --- a/tools/cooja/java/se/sics/cooja/CoreComm.java +++ b/tools/cooja/java/se/sics/cooja/CoreComm.java @@ -1,7 +1,7 @@ /* * Copyright (c) 2006, Swedish Institute of Computer Science. All rights * reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, @@ -12,7 +12,7 @@ * Institute nor the names of its contributors may be used to endorse or promote * products derived from this software without specific prior written * permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE @@ -23,8 +23,8 @@ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (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: CoreComm.java,v 1.10 2007/05/11 10:15:42 fros4943 Exp $ + * + * $Id: CoreComm.java,v 1.11 2008/02/12 15:03:02 fros4943 Exp $ */ package se.sics.cooja; @@ -52,7 +52,7 @@ import se.sics.cooja.dialogs.MessageList; * that even if a mote type is deleted, a new one cannot be created using the * same corecomm class without restarting the JVM and thus the entire * simulation. - * + * * Each implemented CoreComm class needs read access to the following core * variables: *