Commit c5a3370f authored by Mathieu's avatar Mathieu
Browse files

Add missing keywords

parent 858c3a97
Pipeline #317 passed with stage
in 19 minutes and 12 seconds
......@@ -154,7 +154,9 @@ def allCore = Seq(
csv)
lazy val keyword = OsgiProject(coreDir, "org.openmole.core.keyword", imports = Seq("*")) settings (coreSettings: _*)
lazy val keyword = OsgiProject(coreDir, "org.openmole.core.keyword", imports = Seq("*")) settings (coreSettings: _*) settings (
defaultActivator
) dependsOn(pluginManager, preference)
lazy val context = OsgiProject(coreDir, "org.openmole.core.context", imports = Seq("*")) settings(
libraryDependencies ++= Seq(Libraries.cats, Libraries.sourceCode), defaultActivator
......
package org.openmole.core.keyword
import org.openmole.core.pluginmanager._
import org.openmole.core.pluginmanager.KeyWord._
import org.openmole.core.preference.ConfigurationInfo
import org.osgi.framework.{ BundleActivator, BundleContext }
class Activator extends BundleActivator {
override def stop(context: BundleContext): Unit = {
ConfigurationInfo.unregister(this)
PluginInfo.unregister(this)
}
override def start(context: BundleContext): Unit = {
val keyWords = {
Vector(
WordKeyWord("under"),
WordKeyWord("in"),
WordKeyWord(":=")
)
}
PluginInfo.register(this, Vector(this.getClass.getPackage), keyWords = keyWords)
ConfigurationInfo.register(
this,
ConfigurationInfo.list()
)
}
}
......@@ -37,6 +37,7 @@ class Activator extends BundleActivator {
WordKeyWord("inputs"),
WordKeyWord("outputs"),
WordKeyWord("hook"),
WordKeyWord("display"),
WordKeyWord("workDirectory"),
WordKeyWord("plugins"),
WordKeyWord("pluginsOf"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment