Package org.erlide.engine.model

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


        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

                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

    @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

            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

                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

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.