org.fife.rsta.ac.sh.ShellLanguageSupport Maven / Gradle / Ivy
/*
* 03/21/2010
*
* Copyright (C) 2010 Robert Futrell
* robert_futrell at users.sourceforge.net
* http://fifesoft.com/rsyntaxtextarea
*
* This library is distributed under a modified BSD license. See the included
* LICENSE.md file for details.
*/
package org.fife.rsta.ac.sh;
import java.io.File;
import javax.swing.ListCellRenderer;
import org.fife.rsta.ac.AbstractLanguageSupport;
import org.fife.ui.autocomplete.AutoCompletion;
import org.fife.ui.autocomplete.CompletionCellRenderer;
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea;
/**
* Language support for Unix shell scripts.
*
* @author Robert Futrell
* @version 1.0
*/
public class ShellLanguageSupport extends AbstractLanguageSupport {
/**
* The completion provider. This is shared amongst all sh text areas.
*/
private ShellCompletionProvider provider;
/**
* Whether local man pages should be used.
*/
private boolean useLocalManPages;
/**
* Constructor.
*/
public ShellLanguageSupport() {
setParameterAssistanceEnabled(false);
setShowDescWindow(true);
useLocalManPages = File.separatorChar=='/';
}
/**
* {@inheritDoc}
*/
@Override
protected ListCellRenderer