if (extensions == null || extensions.isEmpty())
return false;
// there should always only be one instance of this extension
// point. If multiple are present, go with the first one
DatabasePlugin plugin = (DatabasePlugin) extensions.get(0);
this.databasePlugin = plugin;
// register the plugin as an element in the data repository
ListData dbItem = new ListData();
dbItem.add(databasePlugin);
data.putValue(DatabasePlugin.DATA_REPOSITORY_NAME, dbItem);
data.pinElement(DatabasePlugin.DATA_REPOSITORY_NAME);
// check a user setting to see whether the database plugin
// should be started. If the user doesn't have a value for the
// setting, only start the plugin for team dashboard datasets.
if (Settings.getBool("tpidw.enabled", Settings.isTeamMode())) {
plugin.initialize();
data.addGlobalDefineDeclarations("#define DATABASE_PLUGIN t");
return true;
}
} catch (Exception e) {