From ae603b145079714386cd163404c49c0e295ff88d Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 11 Feb 2008 11:48:38 +0000 Subject: [PATCH] updated: setNote was removed from utils/StackUI --- .../se/sics/cooja/mspmote/plugins/MspStackWatcher.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/plugins/MspStackWatcher.java b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/plugins/MspStackWatcher.java index 6a46b3093..7f5caca52 100644 --- a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/plugins/MspStackWatcher.java +++ b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/plugins/MspStackWatcher.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: MspStackWatcher.java,v 1.1 2008/02/07 14:55:18 fros4943 Exp $ + * $Id: MspStackWatcher.java,v 1.2 2008/02/11 11:48:38 fros4943 Exp $ */ package se.sics.cooja.mspmote.plugins; @@ -36,12 +36,13 @@ import java.awt.GridLayout; import java.awt.event.*; import java.util.*; import javax.swing.*; + import org.apache.log4j.Logger; import se.sics.cooja.*; import se.sics.cooja.mspmote.MspMote; import se.sics.mspsim.core.MSP430; -import se.sics.mspsim.util.StackUI; +import se.sics.mspsim.ui.StackUI; import se.sics.mspsim.util.Utils; @ClassDescription("Msp Stack Watcher") @@ -106,13 +107,13 @@ public class MspStackWatcher extends VisPlugin { final StackUI stackUI = new StackUI(cpu, MspMote.NR_CYCLES_PER_MSEC); // Register as log listener - if (logObserver == null && mspMote.getInterfaces().getLog() != null) { + /*if (logObserver == null && mspMote.getInterfaces().getLog() != null) { mspMote.getInterfaces().getLog().addObserver(logObserver = new Observer() { public void update(Observable obs, Object obj) { stackUI.addNote(mspMote.getInterfaces().getLog().getLastLogMessages()); } }); - } + }*/ JPanel controlPanel = new JPanel(new GridLayout(2,1)); controlPanel.add(startButton);