1 19 20 package org.netbeans.modules.editor.java; 21 22 import org.netbeans.api.java.lexer.JavaTokenId; 23 import org.netbeans.api.lexer.Language; 24 import org.netbeans.editor.DrawLayer; 25 import org.netbeans.editor.DrawLayerFactory; 26 import org.netbeans.modules.editor.NbEditorDocument; 27 28 32 public class JavaDocument extends NbEditorDocument { 33 34 public JavaDocument(Class kitClass) { 35 super(kitClass); 36 } 37 38 @Override 39 public boolean addLayer(DrawLayer layer, int visibility) { 40 if (DrawLayerFactory.SyntaxLayer.class.equals(layer.getClass())) 41 return false; 42 43 return super.addLayer(layer, visibility); 44 } 45 46 } 47 | Popular Tags |