All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fife.ui.search.FindInFilesSearchContext Maven / Gradle / Ivy

Go to download

RText is a powerful, cross-platform programmer's text editor written in Java. It is designed to be easy to use, highly customizable and flexible. Part of RText's design is for the source code to be simple, easy to understand, and well documented, so that other programmers can look into its inner-workings and figure out how RText ticks with ease. A good place to start (besides the source code) is the Javadoc for all classes used in the project.

There is a newer version: 2.0.7
Show newest version
/*
 * 08/18/2012
 *
 * FindInFilesSearchContext.java - Search context for Find in Files dialogs.
 * Copyright (C) 2012 Robert Futrell
 * http://fifesoft.com/rtext
 * Licensed under a modified BSD license.
 * See the included license file for details.
 */
package org.fife.ui.search;

import org.fife.rsta.ui.search.SearchDialogSearchContext;


/**
 * A search context that also contains options relevant to a Find in Files
 * or Replace in Files dialog.
 *
 * @author Robert Futrell
 * @version 1.0
 */
public class FindInFilesSearchContext extends SearchDialogSearchContext {

	private boolean searchSubfolders;
	private boolean verbose;


	/**
	 * Returns whether subfolders should be searched.
	 *
	 * @return Whether subfolders should be searched.
	 * @see #setSearchSubfolders(boolean)
	 */
	public boolean getSearchSubfolders() {
		return searchSubfolders;
	}


	/**
	 * Returns whether verbose output should be enabled.
	 *
	 * @return Whether verbose output should be enabled.
	 * @see #setVerbose(boolean)
	 */
	public boolean getVerbose() {
		return verbose;
	}


	/**
	 * Sets whether subfolders should be searched.
	 *
	 * @param search Whether to search subfolders.
	 * @see #getSearchSubfolders()
	 */
	public void setSearchSubfolders(boolean search) {
		searchSubfolders = search;
	}


	/**
	 * Sets whether verbose output should be enabled.
	 *
	 * @param verbose Whether verbose output should be enabled.
	 * @see #getVerbose()
	 */
	public void setVerbose(boolean verbose) {
		this.verbose = verbose;
	}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy