public void loadData(SyntaxPreferences prefs)
{
removeAll();
_styles[IStylesListIndices.COLUMNS] = new SyntaxStyle(prefs.getColumnStyle());
_styles[IStylesListIndices.COMMENTS] = new SyntaxStyle(prefs.getCommentStyle());
_styles[IStylesListIndices.DATA_TYPES] = new SyntaxStyle(prefs.getDataTypeStyle());
_styles[IStylesListIndices.ERRORS] = new SyntaxStyle(prefs.getErrorStyle());
_styles[IStylesListIndices.FUNCTIONS] = new SyntaxStyle(prefs.getFunctionStyle());
_styles[IStylesListIndices.IDENTIFIERS] = new SyntaxStyle(prefs.getIdentifierStyle());
_styles[IStylesListIndices.LITERALS] = new SyntaxStyle(prefs.getLiteralStyle());
_styles[IStylesListIndices.OPERATORS] = new SyntaxStyle(prefs.getOperatorStyle());
_styles[IStylesListIndices.RESERVED_WORDS] = new SyntaxStyle(prefs.getReservedWordStyle());
_styles[IStylesListIndices.SEPARATORS] = new SyntaxStyle(prefs.getSeparatorStyle());
_styles[IStylesListIndices.TABLES] = new SyntaxStyle(prefs.getTableStyle());
_styles[IStylesListIndices.WHITE_SPACE] = new SyntaxStyle(prefs.getWhiteSpaceStyle());
final DefaultListModel model = (DefaultListModel)getModel();
for (int i = 0; i < _styles.length; ++i)
{
model.addElement(_styles[i]);