Package org.erlide.engine.model.root

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


        final ContentAssistant contentAssistant = new ContentAssistant();
        contentAssistant
                .setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));

        final IErlModule module = getModule();
        final IErlProject project = getProject();
        contentAssistProcessor = new ErlContentAssistProcessor(sourceViewer, module,
                project, contentAssistant);
        contentAssistProcessorForStrings = new ErlStringContentAssistProcessor(
                sourceViewer, module, project, contentAssistant);
View Full Code Here


    @Override
    public Collection<IErlProject> getReferencedProjects() throws ErlModelException {
        final List<IErlProject> result = Lists.newArrayList();
        try {
            for (final IProject project : fProject.getReferencedProjects()) {
                final IErlProject p = ErlangEngine.getInstance().getModel()
                        .getErlangProject(project);
                if (p != null) {
                    result.add(p);
                }
            }
View Full Code Here

    public void pathVarsChanged() {
        clearCaches();
    }

    public boolean moduleInProject(final IErlModule module) {
        final IErlProject project = ErlangEngine.getInstance().getModelUtilService()
                .getProject(module);
        if (project == null) {
            return false;
        }
        return equals(project);
View Full Code Here

        return ErlElementKind.EXTERNAL_ROOT;
    }

    @Override
    public boolean buildStructure(final IProgressMonitor pm) throws ErlModelException {
        final IErlProject erlProject = ErlangEngine.getInstance().getModelUtilService()
                .getProject(this);
        final IOtpRpc backend = OtpRpcFactory.getOtpRpcForProject(erlProject);
        if (backend != null) {
            addExternalEntries(pm, backend);
        }
View Full Code Here

        final String errorValue = "There is no module information about this file.";
        if (module == null) {
            return errorValue;
        }

        final IErlProject project = getProject(module);
        final IPath beamPath = project.getProperties().getOutputDir()
                .append(module.getModuleName()).addFileExtension("beam");
        final IFile beam = project.getWorkspaceProject().getFile(beamPath);

        try {
            final OtpErlangObject info = backend.call("erlide_backend",
                    "get_module_info", "s", beam.getLocation().toPortableString());
            return (String) TypeConverter.erlang2java(info, String.class);
View Full Code Here

    }

    private Collection<String> gatherModules(final IProject project) {
        final Collection<String> modules = newArrayList();
        try {
            final IErlProject erlangProject = ErlangEngine.getInstance().getModel()
                    .getErlangProject(project);
            for (final IErlModule m : erlangProject.getModules()) {
                // ignore rebar deps;
                if (!ignoreModule(erlangProject, m)) {
                    modules.add(m.getModuleName());
                }
            }
View Full Code Here

    }

    private void fillAppFileDetails(final IProject project, final String appSrc,
            final String destPath, final Collection<String> modules) {
        try {
            final IErlProject eproject = ErlangEngine.getInstance().getModel()
                    .findProject(project);
            if (eproject == null) {
                return;
            }
            final IBackend backend = BackendCore.getBackendManager().getBuildBackend(
View Full Code Here

        return includeDirs;
    }

    public Collection<IPath> getIncludeDirs(final IProject project,
            final Collection<IPath> includeDirs) {
        final IErlProject erlProject = ErlangEngine.getInstance().getModel()
                .getErlangProject(project);
        if (erlProject == null) {
            return includeDirs;
        }
        final Collection<IPath> projectIncludeDirs = erlProject.getProperties()
                .getIncludeDirs();
        final IPathVariableManager pvm = ResourcesPlugin.getWorkspace()
                .getPathVariableManager();
        for (final IPath inc : projectIncludeDirs) {
            final IPath incPath = URIUtil.toPath(pvm.resolveURI(URIUtil.toURI(inc)));
View Full Code Here

        return false;
    }

    public void addDependents(final IResource resource, final IProject my_project,
            final Set<BuildResource> result) throws ErlModelException {
        final IErlProject eprj = ErlangEngine.getInstance().getModel()
                .findProject(my_project);
        if (eprj != null) {
            final Collection<IErlModule> ms = eprj.getModules();
            for (final IErlModule m : ms) {
                final Collection<ErlangIncludeFile> incs = m.getIncludeFiles();
                for (final ErlangIncludeFile ifile : incs) {
                    if (ResourceUtil.samePath(ifile.getFilename(), resource.getName())) {
                        if (m.getSourceKind() == SourceKind.ERL) {
View Full Code Here

    }

    private void createMarkersForDuplicateModuleNames(final IOtpRpc backend,
            final IProject project) {
        try {
            final IErlProject erlProject = ErlangEngine.getInstance().getModel()
                    .getErlangProject(project);
            final Collection<IPath> sd = erlProject.getProperties().getSourceDirs();
            final String[] dirList = new String[sd.size()];
            int j = 0;
            for (final IPath sp : sd) {
                dirList[j++] = project.getLocation().toPortableString() + "/" + sp;
            }
View Full Code Here

TOP

Related Classes of org.erlide.engine.model.root.IErlProject

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.