|
There are several times I've wanted to have one plugin do something (IE project all the files in a directory) from another plugin. However I don't know of any mechanism to expose either the data or functions from one plugin to another in a non-binding
way.
Right now we make it work by doing this in our download plugin:
PluginInfo pi = getPluginInfo("CAMELOT-.2");
cdsp= (CAMELOTDotSpatialPlugin)pi.plugin;
foreach (var VARIABLE in cdsp.ProjList.Keys)
{
cmb_projList.Items.Add(VARIABLE);
}
The problem there is that I have to have a reference to the CAMELOTDotSpatialPlugin in the code for the cast, which means it is a dependency to compile, which is a problem if anybody wants to use the code when CAMELOTDotSpatialPlugin isn't being used.
Do we have a generic way for plugins to communicate with each other via some generic data structure (IE a HashTable)?
Aaron Parks
RTI International
|