Exemplo n.º 1
0
 //コンストラクタ
 public GrepThread(GrepControl control, string path, string extension, string keyword, bool subDir, bool notIgnoreCase, bool regExp)
 {
     _control           = control;
     this.Path          = path;
     this.Extension     = extension;
     this.Keyword       = keyword;
     this.SubDir        = subDir;
     this.NotIgnoreCase = notIgnoreCase;
     this.RegExp        = regExp;
 }
Exemplo n.º 2
0
        //初期処理を行います
        public bool Initialize(PluginCreateParam param)
        {
            //プラグインマネージャーを保持します
            _pluginManager = PluginManager.GetInstance();

            //プロパティファイルを読み込みます
            _property = new PluginProperty();
            _property.Load(param.PropertyPath);

            bool notIgnoreCase = _property.ToBool("input", "not_ignore_case");
            bool includeSubDir = _property.ToBool("input", "include_sub_dir");
            bool useRegExp     = _property.ToBool("input", "use_reg_exp");
            var  extension     = _property.ToString("input", "extension");
            var  fontName      = _property.ToString("font", "name");
            var  fontSize      = _property.ToDouble("font", "size");

            //プラグイン生成時のパスを取得します
            var path = param.ToString("path");

            //Grepコントロールを生成します
            _control = new GrepControl(this, _pluginManager, path, notIgnoreCase, includeSubDir, useRegExp, extension, fontName, (float)fontSize);
            return(true);
        }