Examples of IErlElementVisitor


Examples of org.erlide.engine.model.root.IErlElementVisitor

    }

    @Override
    public Collection<IErlModule> getExternalModules() throws ErlModelException {
        final List<IErlModule> result = Lists.newArrayList();
        accept(new IErlElementVisitor() {

            @Override
            public boolean visit(final IErlElement element) throws ErlModelException {
                final boolean isExternalOrProject = element.getKind() == ErlElementKind.EXTERNAL_ROOT
                        || element.getKind() == ErlElementKind.EXTERNAL_APP
View Full Code Here

Examples of org.erlide.engine.model.root.IErlElementVisitor

    }

    @Override
    public Collection<IErlModule> getExternalIncludes() throws ErlModelException {
        final List<IErlModule> result = Lists.newArrayList();
        accept(new IErlElementVisitor() {

            @Override
            public boolean visit(final IErlElement element) throws ErlModelException {
                final boolean isExternalOrProject = element.getKind() == ErlElementKind.EXTERNAL_ROOT
                        || element.getKind() == ErlElementKind.EXTERNAL_APP
View Full Code Here

Examples of org.erlide.engine.model.root.IErlElementVisitor

    @Override
    public void dispose() {
        removeConfigurationChangeListeners();
        clearCaches();
        try {
            accept(new IErlElementVisitor() {

                @Override
                public boolean visit(final IErlElement element) throws ErlModelException {
                    element.dispose();
                    return false;
View Full Code Here

Examples of org.erlide.engine.model.root.IErlElementVisitor

    public void accept() throws Exception {
        project.open(null);
        // ErlLogger.debug(project.getChildren().toString());
        module.open(null);
        final List<IErlElement> elements = Lists.newArrayList();
        final IErlElementVisitor visitor = new IErlElementVisitor() {

            @Override
            public boolean visit(final IErlElement element) throws ErlModelException {
                if (element instanceof IErlExternal) {
                    return false; // avoid digging through otp
View Full Code Here

Examples of org.erlide.engine.model.root.IErlElementVisitor

            final boolean addExternals, final boolean addOtp) throws ErlModelException {
        final Collection<IErlElement> externals = element.getChildrenOfKind(
                ErlElementKind.EXTERNAL_ROOT, ErlElementKind.EXTERNAL_APP,
                ErlElementKind.EXTERNAL_FOLDER);
        for (final IErlElement external : externals) {
            external.accept(new IErlElementVisitor() {

                @Override
                public boolean visit(final IErlElement theElement)
                        throws ErlModelException {
                    if (theElement instanceof IErlExternal) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.