| Summary: | Disabled plugin is reported as enabled by API | ||
|---|---|---|---|
| Product: | [Technology] Tigerstripe | Reporter: | Jim Strawn <jistrawn> |
| Component: | Plugin | Assignee: | Project Inbox <tigerstripe.plugin-inbox> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | rcraddoc |
| Version: | unspecified | ||
| Target Milestone: | 0.5M0 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
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) |
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; }