package egrepregex include EGrepRegexFlavour.feather include RegexForm.feather include RegexPlayground.feather class EGrepRegex : SimpleComponent() { class val openRegexPlayground = Action( "EGrep Regex Playground", ::openPlayground ) .icon( "regex" ) // ==== Register ==== override meth register() { EGrepRegexFlavour().register() val forNone = SimpleFeatureSet(Context.NONE, 81).apply { menus( MenuFeature( "Tools", openRegexPlayground ) ) } add( forNone ) } func openPlayground() { RegexPlayground( RegexForm() ).openBehaviour() } }