1 18 19 package org.objectweb.jac.ide.swing; 20 21 import org.objectweb.jac.aspects.gui.swing.JavaCodeEditor; 22 import org.objectweb.jac.core.rtti.FieldItem; 23 import org.objectweb.jac.ide.Method; 24 import org.objectweb.jac.ide.Projects; 25 26 29 30 public class MethodBodyCodeEditor extends JavaCodeEditor { 31 32 public MethodBodyCodeEditor(Object substance, FieldItem field) { 33 super(substance,field); 34 editor.setConfig(Projects.prefs.getEditorPrefs()); 35 if (substance instanceof Method) { 36 MethodBodyCompletionEngine ce = 37 new MethodBodyCompletionEngine((Method)substance,editor); 38 editor.setCompletionEngine(ce); 39 } 40 } 41 42 } 43 44 | Popular Tags |