IJ.register(NewPlugin.class);
}
public void createMacro(String name) {
int options = (monospaced?Editor.MONOSPACED:0)+(menuBar?Editor.MENU_BAR:0);
ed = new Editor(rows, columns, 0, options);
if (name.endsWith(".java"))
name = name.substring(0, name.length()-5);
//if (name.endsWith("_"))
// name = name.substring(0, name.length()-1);
if (type==MACRO && !(name.endsWith(".txt")))