PageRenderTime 172ms CodeModel.GetById 168ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/bundles/plugins-trunk/XML/xml/AntXmlParsedData.java

#
Java | 27 lines | 17 code | 5 blank | 5 comment | 1 complexity | 34389aad3a0d6dea5c10c2fe7e0177bf MD5 | raw file
 1package xml;
 2
 3
 4import sidekick.ExpansionModel;
 5
 6/**
 7 * Special version of XmlParsedData for Ant build files.
 8 */
 9public class AntXmlParsedData extends XmlParsedData {
10
11    public AntXmlParsedData(String filename, boolean html) {
12        super(filename, html);
13    }
14
15    @Override
16    // TODO: remove? Currently, this is the same as the super method. If removed,
17    // this entire class can be removed.
18    protected ExpansionModel createExpansionModel() {
19        ExpansionModel em = new ExpansionModel();
20        em.add();   // root (filename node)
21        em.add();   // project node
22        for (int i = 0; i < root.getChildAt(0).getChildCount(); i++) {
23            em.inc();   // property, target, etc, nodes   
24        }
25        return em;
26    }
27}