Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318320

Summary: Disabled plugin is reported as enabled by API
Product: [Technology] Tigerstripe Reporter: Jim Strawn <jistrawn>
Component: PluginAssignee: 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:

Description Jim Strawn CLA 2010-06-29 09:42:52 EDT
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;
	}
Comment 1 Richard Craddock CLA 2010-06-30 11:56:59 EDT
This is working perfectly for me......
Comment 2 Jim Strawn CLA 2010-06-30 13:17:40 EDT
(In reply to comment #1)
> This is working perfectly for me......


Version check added (bug in local code, not ts)