Examples of findProject()


Examples of org.erlide.engine.model.IErlModel.findProject()

            MarkerUtils.createProblemMarker(project, null, message, 0,
                    IMarker.SEVERITY_ERROR);
            throw new BackendException(message);
        }
        final IErlModel model = ErlangEngine.getInstance().getModel();
        backend.addProjectPath(model.findProject(project));

        final Map<RpcFuture, IResource> results = new HashMap<RpcFuture, IResource>();
        for (final BuildResource bres : resourcesToBuild) {
            notifier.checkCancel();
            final IResource resource = bres.getResource();
View Full Code Here

Examples of org.erlide.engine.model.IErlModel.findProject()

        try {
            helper.checkForClashes(backend.getOtpRpc(), project);
        } catch (final Exception e) {
        }
        backend.removeProjectPath(model.findProject(project));

    }

    private void handleAppFile(final IProject project, final String outPath,
            final Collection<IPath> sources) {
View Full Code Here

Examples of org.erlide.engine.model.IErlModel.findProject()

                final IFile file = (IFile) textEditor.getEditorInput().getAdapter(
                        IFile.class);
                if (file != null) {
                    final IProject p = file.getProject();
                    if (p != null) {
                        project = model.findProject(p);
                    }
                }
            }
            if (openResult != null) {
                helper.openOpenResult(textEditor, module, offset, project, openResult,
View Full Code Here

Examples of org.erlide.engine.model.IErlModel.findProject()

    @Override
    public synchronized void removeExecutionBackend(final IProject project,
            final IProjectCodeLoader b) {
        final IErlModel model = ErlangEngine.getInstance().getModel();
        b.removeProjectPath(model.findProject(project));
        Set<IBackend> list = executionBackends.get(project);
        if (list == null) {
            list = Sets.newHashSet();
            executionBackends.put(project, list);
        }
View Full Code Here

Examples of org.erlide.engine.model.IErlModel.findProject()

            list = Sets.newHashSet();
            executionBackends.put(project, list);
        }
        list.add(b);
        final IErlModel model = ErlangEngine.getInstance().getModel();
        b.addProjectPath(model.findProject(project));
    }

    @Override
    public void dispose() {
        synchronized (this) {
View Full Code Here

Examples of org.erlide.engine.model.IErlModel.findProject()

                interpret);
    }

    private OtpErlangList getProjectDirs(final IProject project) {
        final IErlModel model = ErlangEngine.getInstance().getModel();
        final ErlangProjectProperties properties = model.findProject(project)
                .getProperties();
        final String ebin = properties.getOutputDir().toPortableString();
        final Collection<IPath> srcs = properties.getSourceDirs();
        try {
            return (OtpErlangList) OtpErlang.format("[{ebin_dir, ~s}, {src_dirs, ~ls}]",
View Full Code Here

Examples of org.erlide.engine.model.root.IErlElementLocator.findProject()

        private void addPathFiltersToContentProvider(final IProject project) {
            // FIXME (JC) all this seems too much... is it really necessary?
            // couldn't we just assume all links in external files should be
            // matchable?
            final IErlElementLocator model = ErlangEngine.getInstance().getModel();
            final IErlProject erlProject = model.findProject(project);
            if (erlProject != null) {
                final ErlangProjectProperties properties = erlProject.getProperties();
                final String extMods = properties.getExternalModules();
                final List<String> files = new ArrayList<String>();
                files.addAll(PreferencesUtils.unpackList(extMods));
View Full Code Here

Examples of org.erlide.engine.model.root.IErlElementLocator.findProject()

        }
        final IErlElementLocator model = ErlangEngine.getInstance().getModel();
        final Set<IErlModule> modules = DialyzerUtils.collectModulesFromResource(model,
                project);
        final Set<IErlProject> projects = Sets.newHashSet();
        projects.add(model.findProject(project));
        if (!modules.isEmpty()) {
            try {
                final IErlProject eproject = model.findProject(project);
                if (eproject == null) {
                    return null;
View Full Code Here

Examples of org.erlide.engine.model.root.IErlElementLocator.findProject()

                project);
        final Set<IErlProject> projects = Sets.newHashSet();
        projects.add(model.findProject(project));
        if (!modules.isEmpty()) {
            try {
                final IErlProject eproject = model.findProject(project);
                if (eproject == null) {
                    return null;
                }
                final IBackend backend = BackendCore.getBackendManager().getBuildBackend(
                        eproject);
View Full Code Here

Examples of org.erlide.engine.model.root.IErlElementLocator.findProject()

            result = ResourceUtil.findResourceByLocation(project, fileName);
            if (result == null) {
                try {
                    final IErlElementLocator model = ErlangEngine.getInstance()
                            .getModel();
                    final IErlProject erlProject = model.findProject(project);
                    if (erlProject != null) {
                        final IErlModule includeFile = model.findIncludeFromProject(
                                erlProject, fileName, fileName,
                                IErlElementLocator.Scope.REFERENCED_PROJECTS);
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.