diff --git a/tools/cooja/config/cooja_default.config b/tools/cooja/config/cooja_default.config index 7af837fcc..b28337631 100644 --- a/tools/cooja/config/cooja_default.config +++ b/tools/cooja/config/cooja_default.config @@ -6,4 +6,5 @@ org.contikios.cooja.Cooja.MOTETYPES = org.contikios.cooja.motes.ImportAppMoteTyp org.contikios.cooja.Cooja.PLUGINS = org.contikios.cooja.plugins.Visualizer org.contikios.cooja.plugins.LogListener org.contikios.cooja.plugins.TimeLine org.contikios.cooja.plugins.MoteInformation org.contikios.cooja.plugins.MoteInterfaceViewer org.contikios.cooja.plugins.VariableWatcher org.contikios.cooja.plugins.EventListener org.contikios.cooja.plugins.RadioLogger org.contikios.cooja.plugins.ScriptRunner org.contikios.cooja.plugins.Notes org.contikios.cooja.plugins.BufferListener org.contikios.cooja.plugins.DGRMConfigurator org.contikios.cooja.Cooja.POSITIONERS = org.contikios.cooja.positioners.RandomPositioner org.contikios.cooja.positioners.LinearPositioner org.contikios.cooja.positioners.EllipsePositioner org.contikios.cooja.positioners.ManualPositioner org.contikios.cooja.Cooja.RADIOMEDIUMS = org.contikios.cooja.radiomediums.UDGM org.contikios.cooja.radiomediums.UDGMConstantLoss org.contikios.cooja.radiomediums.DirectedGraphMedium org.contikios.cooja.radiomediums.SilentRadioMedium +org.contikios.cooja.plugins.Visualizer.SKINS = org.contikios.cooja.plugins.skins.DGRMVisualizerSkin diff --git a/tools/cooja/java/org/contikios/cooja/radiomediums/DirectedGraphMedium.java b/tools/cooja/java/org/contikios/cooja/radiomediums/DirectedGraphMedium.java index 825d6bbf3..c9bac3f0d 100644 --- a/tools/cooja/java/org/contikios/cooja/radiomediums/DirectedGraphMedium.java +++ b/tools/cooja/java/org/contikios/cooja/radiomediums/DirectedGraphMedium.java @@ -46,7 +46,6 @@ import org.contikios.cooja.RadioConnection; import org.contikios.cooja.Simulation; import org.contikios.cooja.interfaces.Radio; import org.contikios.cooja.plugins.Visualizer; -import org.contikios.cooja.plugins.skins.DGRMVisualizerSkin; /** * Directed Graph Radio Medium. @@ -76,7 +75,6 @@ public class DirectedGraphMedium extends AbstractRadioMedium { public DirectedGraphMedium() { /* Do not initialize radio medium: use only for hash table */ super(null); - Visualizer.registerVisualizerSkin(DGRMVisualizerSkin.class); } public DirectedGraphMedium(Simulation simulation) { @@ -85,16 +83,10 @@ public class DirectedGraphMedium extends AbstractRadioMedium { random = simulation.getRandomGenerator(); requestEdgeAnalysis(); - - /* Register visualizer skin */ - Visualizer.registerVisualizerSkin(DGRMVisualizerSkin.class); } public void removed() { super.removed(); - - /* Unregister visualizer skin */ - Visualizer.unregisterVisualizerSkin(DGRMVisualizerSkin.class); } public void addEdge(Edge e) {