From: wisberg Date: Mon, 5 May 2003 15:07:36 +0000 (+0000) Subject: redoing root to be kind [java file || config file] -- X-Git-Tag: V1_1_0_RC2~79 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=34d0434b16321faf8a08240704db3cdadbdb0b45;p=aspectj.git redoing root to be kind [java file || config file] -- was java file kind for config files. --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java index f38f4451d..e5bb62aa7 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java @@ -193,21 +193,20 @@ public class AjBuildManager { private void setupModel() { String rootLabel = ""; + StructureModel model = StructureModelManager.INSTANCE.getStructureModel(); + ProgramElementNode.Kind kind = ProgramElementNode.Kind.FILE_JAVA; if (buildConfig.getConfigFile() != null) { rootLabel = buildConfig.getConfigFile().getName(); - StructureModelManager.INSTANCE.getStructureModel().setConfigFile( + model.setConfigFile( buildConfig.getConfigFile().getAbsolutePath() - ); + ); + kind = ProgramElementNode.Kind.FILE_LST; } - StructureModelManager.INSTANCE.getStructureModel().setRoot( - new ProgramElementNode( - rootLabel, - ProgramElementNode.Kind.FILE_JAVA, - new ArrayList())); + model.setRoot(new ProgramElementNode(rootLabel, kind, new ArrayList())); HashMap modelFileMap = new HashMap(); - StructureModelManager.INSTANCE.getStructureModel().setFileMap(new HashMap()); - setStructureModel(StructureModelManager.INSTANCE.getStructureModel()); + model.setFileMap(new HashMap()); + setStructureModel(model); } /** init only on initial batch compile? no file-specific options */