org.fife.rtext
Class FileTypeIconManager

java.lang.Object
  extended by org.fife.rtext.FileTypeIconManager

public class FileTypeIconManager
extends java.lang.Object

Manages icons used for file types by subclasses of AbstractMainView.

Version:
1.0
Author:
Robert Futrell

Method Summary
static FileTypeIconManager get()
          Returns the singleton instance of this class.
 javax.swing.Icon getIconFor(RTextEditorPane textArea)
          Returns the icon for a view type to use for the specified text area.
 void setIconFor(java.lang.String syntaxStyle, javax.swing.Icon icon)
          Sets the icon to use for a specific syntax style.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIconFor

public javax.swing.Icon getIconFor(RTextEditorPane textArea)
Returns the icon for a view type to use for the specified text area.

Parameters:
textArea - The text area.
Returns:
The icon to use for the text area.

get

public static FileTypeIconManager get()
Returns the singleton instance of this class.

Returns:
The singleton instance of this class.

setIconFor

public void setIconFor(java.lang.String syntaxStyle,
                       javax.swing.Icon icon)
Sets the icon to use for a specific syntax style. This allows plugins adding language support for specific file types to set the icon to use for the relevant files.

Parameters:
syntaxStyle - The syntax style.
icon - The icon to use.