mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Merge pull request #532 from darki2002/Plugin_sim
Stopped to load plugins depending on simulations if there is no simulation
This commit is contained in:
commit
f6c6ef9b54
@ -963,7 +963,7 @@ public class Cooja extends Observable {
|
||||
tooltip += description + " (" + newPluginClass.getName() + ")";
|
||||
|
||||
/* Check if simulation plugin depends on any particular radio medium */
|
||||
if (pluginType == PluginType.SIM_PLUGIN || pluginType == PluginType.SIM_STANDARD_PLUGIN) {
|
||||
if ((pluginType == PluginType.SIM_PLUGIN || pluginType == PluginType.SIM_STANDARD_PLUGIN) && (getSimulation() != null)) {
|
||||
if (newPluginClass.getAnnotation(SupportedArguments.class) != null) {
|
||||
boolean active = false;
|
||||
Class<? extends RadioMedium>[] radioMediums = newPluginClass.getAnnotation(SupportedArguments.class).radioMediums();
|
||||
|
Loading…
Reference in New Issue
Block a user