Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318320 - Disabled plugin is reported as enabled by API
Summary: Disabled plugin is reported as enabled by API
Status: CLOSED INVALID
Alias: None
Product: Tigerstripe
Classification: Technology
Component: Plugin (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 0.5M0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-29 09:42 EDT by Jim Strawn CLA
Modified: 2010-06-30 13:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)