## template = GPL Header #today ( $year "yyyy" ) #beanshell () String lineComment = buffer.getStringProperty("lineComment"); String commentStart = buffer.getStringProperty("commentStart"); String commentEnd = buffer.getStringProperty("commentEnd"); if(commentStart == null || commentStart.equals("") || commentEnd == null || commentEnd.equals("")) { context.put("commentStart", lineComment); context.put("lineStart", lineComment); context.put("commentEnd", lineComment); } else { context.put("commentStart", commentStart); context.put("lineStart", " *"); if(commentEnd.startsWith("*")) { context.put("commentEnd", " " + commentEnd); } else { context.put("commentEnd", commentEnd); } } context.put("filename", buffer.getName()); context.put("author", System.getProperty("user.name")); context.put("mode", buffer.getMode().getName()); context.put("tabSize", buffer.getProperty("tabSize")); context.put("indentSize", buffer.getProperty("indentSize")); context.put("noTabs", buffer.getProperty("noTabs")); context.put("folding", buffer.getProperty("folding")); context.put("collapseFolds", buffer.getProperty("collapseFolds")); context.put("wrap", buffer.getProperty("wrap")); context.put("maxLineLen", buffer.getProperty("maxLineLen")); #end $!commentStart $!lineStart :mode=$mode:tabSize=$tabSize:indentSize=$indentSize:noTabs=$noTabs: $!lineStart :folding=$folding:collapseFolds=$collapseFolds:wrap=$wrap:maxLineLen=$maxLineLen: $!lineStart $!lineStart $Source$ $!lineStart Copyright (C) $year $author $!lineStart $!lineStart This program is free software; you can redistribute it and/or $!lineStart modify it under the terms of the GNU General Public License $!lineStart as published by the Free Software Foundation; either version 2 $!lineStart of the License, or any later version. $!lineStart $!lineStart This program is distributed in the hope that it will be useful, $!lineStart but WITHOUT ANY WARRANTY; without even the implied warranty of $!lineStart MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the $!lineStart GNU General Public License for more details. $!lineStart $!lineStart You should have received a copy of the GNU General Public License $!lineStart along with this program; if not, write to the Free Software $!lineStart Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. $!commentEnd