id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 376,Better system for checking which plugins that can be executed in a given context,Nicklas Nordborg,Nicklas Nordborg,"The current implementation leads to lots of situation where you think you can run a plugin but when you try you are given a list of explanations why you can't run 10+ plugins in the given context. For example all installed plugins require 2-channel data, but you only have 1-channel data. The current implementation works like this: 1. Ask the database for a count of how many possible plugins there are. The only parameters are the the type of plugin and the current context (ie. reporter list, file item, etc). 2. When the user click the ""Run plugin"" (or ""Import"" or ""Export"") button the core loads the possible plugins found in step 1 and calls the Plugin.isInContext() method. It is possible that all plugins have a reason for not beeing executable given the current item. For example, a raw bioassay that already has raw data cannot import more data. The enhanced system must do both 1 and 2 for all plugins before adding the Run plugin/Import/Export buttons to the interface. However the only way to do so is to load and create a new instance of each plugin every time. This has to be changed. Maybe it is possible to have one global instance of some object that represents each plugin/configuration combination that can handle the checking. ",enhancement,new,major,BASE Future Release,core,,,,