[Laszlo-checkins] r11805 - openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler
hqm@openlaszlo.org
hqm at openlaszlo.org
Mon Nov 17 13:26:47 PST 2008
Author: hqm
Date: 2008-11-17 13:26:45 -0800 (Mon, 17 Nov 2008)
New Revision: 11805
Modified:
openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/CompilationEnvironment.java
openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewSchema.java
Log:
Change 20081117-hqm-5 by hqm at badtzmaru.home on 2008-11-17 16:13:18 EST
in /Users/hqm/openlaszlo/trunk5
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: add hook for NEXB IDE to get compilation environment from ViewSchema
New Features:
Bugs Fixed:
Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
+ Add mEnv instance var to ViewSchema
+ When CompilationEnvironment constructor creates a ViewSchema, it sets the mEnv to point to the compilation env.
+ The accessor method ViewSchema.getCompilationEnvironment() can be used to retrieve the main app compilation env.
Tests:
smokecheck in swf8,swf9, dhtml
Modified: openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/CompilationEnvironment.java
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/CompilationEnvironment.java 2008-11-17 21:16:39 UTC (rev 11804)
+++ openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/CompilationEnvironment.java 2008-11-17 21:26:45 UTC (rev 11805)
@@ -155,7 +155,7 @@
// Use a local symbol generator so that we recycle method
// names for each new view, to keep the constant pool small.
this.methodNameGenerator = new SymbolGenerator("$m");
- this.mSchema = new ViewSchema();
+ this.mSchema = new ViewSchema(this);
// lzc depends on the properties being shared, because it sets
// them after creating the environment
this.mProperties = properties;
Modified: openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewSchema.java
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewSchema.java 2008-11-17 21:16:39 UTC (rev 11804)
+++ openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewSchema.java 2008-11-17 21:26:45 UTC (rev 11805)
@@ -123,6 +123,20 @@
}
}
+ public ViewSchema() {
+
+ }
+
+ CompilationEnvironment mEnv = null;
+
+ public ViewSchema(CompilationEnvironment env) {
+ this.mEnv = env;
+ }
+
+ public CompilationEnvironment getCompilationEnvironment() {
+ return mEnv;
+ }
+
/** Set the attributes to the type.
* @param attributes a list of attributes
* @param type a type
More information about the Laszlo-checkins
mailing list