Community
Participate
Working Groups
I have a generator that I need to run against a model via the API. I need to be able to verify that the generator is enabled, if it is not I need to notify the user. The following code is returning true, even though the generator is not enabled. private boolean isGeneratorConfigured(M1RunConfig config) { boolean configured = false; IPluginConfig[] configurations = config.getPluginConfigs(); for (IPluginConfig iPluginConfig : configurations) { if (iPluginConfig.getPluginName().equals(GENERATOR_NAME)) { if (iPluginConfig.isEnabled()) { configured = true; break; } } } return configured; }
This is working perfectly for me......
(In reply to comment #1) > This is working perfectly for me...... Version check added (bug in local code, not ts)