1 18 19 package org.objectweb.jac.aspects.gui.swing; 20 21 import org.objectweb.jac.core.rtti.FieldItem; 22 23 26 public class JavaCodeEditor extends AbstractCodeEditor 27 { 28 29 public JavaCodeEditor(Object substance, FieldItem field) { 30 super(substance,field); 31 } 32 33 public void init() { 34 editor.addKeywords( 35 new String [] {"for","while","return","if","else","switch","case", 36 "break","continue","try","catch","finally", 37 "class","interface","goto","this","super", 38 "package","extends","throws","abstract", "instanceof", 39 "implements","import","default","do","new"}); 40 editor.addModifiers( 41 new String [] {"public","protected","private","final","const","abstract", 42 "static","transient","native","volatile"}); 43 editor.addTypes( 44 new String [] {"void","int","long","float","double","boolean", 45 "char","short","byte"}); 46 } 47 48 } 49 50 | Popular Tags |