1 4 5 9 10 package org.openlaszlo.compiler; 11 12 import org.jdom.Element; 13 import java.io.File ; 14 import java.io.FileNotFoundException ; 15 import java.util.*; 16 17 22 class DebugCompiler extends ViewCompiler { 23 DebugCompiler(CompilationEnvironment env) { 24 super(env); 25 } 26 27 31 public static boolean isElement(Element element) { 32 return element.getName().equals("debug"); 33 } 34 35 public void compile(Element element) throws CompilationError 36 { 37 if (!mEnv.getBooleanProperty(mEnv.DEBUG_PROPERTY) 40 || mEnv.getBooleanProperty(mEnv.USER_DEBUG_WINDOW)) { 41 return; 42 } else { 43 mEnv.setProperty(mEnv.USER_DEBUG_WINDOW, true); 44 super.compile(element); 45 } 46 } 47 } 48 | Popular Tags |