SyntaxTable () { SyntaxTable syntaxTable = new SyntaxTable(); syntaxTable.setLineComment(myLineComment.getText()); syntaxTable.setStartComment(myBlockCommentStart.getText()); syntaxTable.setEndComment(myBlockCommentEnd.getText()); syntaxTable.setHexPrefix(myHexPrefix.getText()); syntaxTable.setNumPostfixChars(myNumPostfixes.getText()); syntaxTable.lineCommentOnlyAtStart = myCommentAtLineStart.isSelected(); boolean ignoreCase = myIgnoreCase.isSelected(); syntaxTable.setIgnoreCase(ignoreCase); syntaxTable.setHasBraces(mySupportBraces.isSelected()); syntaxTable.setHasBrackets(mySupportBrackets.isSelected()); syntaxTable.setHasParens(mySupportParens.isSelected()); syntaxTable.setHasStringEscapes(mySupportEscapes.isSelected()); splitKeywordLines(ignoreCase, myKeywordsLists[0]).forEach(syntaxTable::addKeyword1); splitKeywordLines(ignoreCase, myKeywordsLists[1]).forEach(syntaxTable::addKeyword2); splitKeywordLines(ignoreCase, myKeywordsLists[2]).forEach(syntaxTable::addKeyword3); splitKeywordLines(ignoreCase, myKeywordsLists[3]).forEach(syntaxTable::addKeyword4); return syntaxTable; }