From 0594741a1cd6973b184728e959be2ec079babbe2 Mon Sep 17 00:00:00 2001 From: dmose Date: Mon, 25 Aug 2003 19:36:42 +0000 Subject: [PATCH] Added quick hack to get ADVANCED mode classname. --- app/PdePreprocessor.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/PdePreprocessor.java b/app/PdePreprocessor.java index 18477001a..1ac651712 100644 --- a/app/PdePreprocessor.java +++ b/app/PdePreprocessor.java @@ -248,14 +248,21 @@ public class PdePreprocessor { } } + static String advClassName = ""; + /** * Find the first CLASS_DEF node in the tree, and return the name of the * class in question. + * + * XXXdmose right now, we're using a little hack to the grammar to get + * this info. In fact, we should be descending the AST passed in. */ String getFirstClassName(AST ast) { - // XXXdmose actually do the find - return "MyDemo"; + String t = advClassName; + advClassName = ""; + + return t; } }