Performs search operations.
	public override bool Execute () {
		SearchOperator searchOp = new SearchOperator(Base.Document.Subtitles);
		replacedSubtitles = searchOp.ReplaceAll(regex, replacement);
		if (replacedSubtitles.Count  == 0)
			return false;

		TreePath[] paths = null;
		CommandTarget target = CommandTarget.Normal;
		GetCommandData(out paths, out target);

		SetCommandTarget(target);
		Paths = paths;
		if (Paths.Length > 0)
			Focus = Paths[0];

		Base.Ui.View.Selection.Select(Paths, Focus, true);
		return true;
	}
Example #2
0
	private void OnBaseDocumentLoaded (Document document) {
		this.searchOp = new SearchOperator(document.Subtitles);
	}