package locate class LocateForm( text : String ) : PromptForm( "Locate" ) { constructor() : this( "" ) var useRegex = boolProperty( "Regular Expression", false) .icon( "regex" ).shortcut( Key.R.control() ) val searchText = regexProperty( "egrep", "Search Text", text, useRegex ) val searchNames = boolProperty( "Search Filenames Only", true ) override meth elements() = listOf( HorizontalGroup( 4, searchText, useRegex ), searchNames ) override meth runner() = LocateBehaviour( this ) override meth validate() : FormError { if ( searchText.value.isBlank() ) { return FormError( searchText, "Search Text is required" ) } return null } override meth copy() : LocateForm = super.copy() as LocateForm }