Package org.erlide.cover.views.model

Examples of org.erlide.cover.views.model.StatsTreeObject


        log.info(treeSelection.getFirstElement());
        log.info(treeSelection.getFirstElement().getClass().getName());
        log.info(treeSelection.getPaths());

        final StatsTreeObject selObj = (StatsTreeObject) treeSelection.getFirstElement();

        final BrowserDialog browser = new BrowserDialog(shell);

        if (selObj instanceof FunctionStats) {
            final ModuleStats module = (ModuleStats) selObj.getParent();
            browser.setObject(module);
        } else {
            browser.setObject(selObj);
        }
View Full Code Here


            return;
        }

        final ITreeSelection treeSelection = (ITreeSelection) selection;

        final StatsTreeObject obj = (StatsTreeObject) treeSelection.getFirstElement();

        if (obj.getClass().equals(ModuleStats.class)) {

            openInEditor(obj.getLabel() + ".erl");

        } else if (obj.getClass().equals(FunctionStats.class)) {

            final FunctionStats fs = (FunctionStats) obj;

            final String moduleName = ((StatsTreeObject) fs.getParent()).getLabel();
            final IEditorPart p = openInEditor(moduleName + ".erl");
View Full Code Here

        for (int i = 1; i < parts.length - 1; i++) {

            ICoverageObject tmp = root.findChild(parts[i]);
            if (tmp == null) {
                tmp = new StatsTreeObject(ObjectType.FOLDER);
                tmp.setLabel(parts[i]);
            }
            tmp.setLiniesCount(tmp.getLinesCount() + moduleStats.getLinesCount());
            tmp.setCoverCount(tmp.getCoverCount() + moduleStats.getCoverCount());
            root.addChild(parts[i], tmp);
View Full Code Here

TOP

Related Classes of org.erlide.cover.views.model.StatsTreeObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.