src/main/java/ca/phon/plugins/praat/TextGridManager.java
/**
	 * Get the default TextGrid file for a given session.  This will be
	 * the TextGrid file named 'default.TextGrid' or the first TextGrid
	 * found in the text grid folder.
	 *
	 * @param corpus
	 * @param session
	 *
	 * @param TextGrid file or <code>null</code> if not found
	 */
Get the default TextGrid file for a given session.  This will be
the TextGrid file named 'default.TextGrid' or the first TextGrid
found in the text grid folder.

@param corpus
@param session

@param TextGrid file or null if not found
Get the default TextGrid file for a given session . This will be the TextGrid file named ' default . TextGrid ' or the first TextGrid found in the text grid folder . @param corpus @param session @param TextGrid file or null if not found
public Optional<File> defaultTextGridFile(String corpus, String sessionName) {
		try {
			final Session session = project.openSession(corpus, sessionName);
			return defaultTextGridFile(session);
		} catch (IOException e) {
			LogUtil.warning(e.getLocalizedMessage(), e);
			return Optional.empty();
		}
	}
public Optional < File > defaultTextGridFile ( String corpus , String sessionName ) { try { final Session session = project . openSession ( corpus , sessionName ) ; return defaultTextGridFile ( session ) ; } catch ( IOException e ) { LogUtil . warning ( e . getLocalizedMessage ( ) , e ) ; return Optional . empty ( ) ; } }
Get the default TextGrid file for a given session.
Get the default TextGrid file for a given session .
// try media name