Package com.python.pydev.analysis.additionalinfo

Examples of com.python.pydev.analysis.additionalinfo.AbstractAdditionalDependencyInfo


    }

    @Override
    public void visitingWillStart(IProgressMonitor monitor, boolean isFullBuild, IPythonNature nature) {
        if (isFullBuild) {
            AbstractAdditionalDependencyInfo info;
            try {
                info = AdditionalProjectInterpreterInfo.getAdditionalInfoForProject(nature);
            } catch (MisconfigurationException e) {
                Log.log(e);
                return;
            }

            info.clearAllInfo();
        }
    }
View Full Code Here


     * @param moduleName this is the module name
     * @param nature this is the nature
     */
    public static void removeInfoForModule(String moduleName, IPythonNature nature, boolean isFullBuild) {
        if (moduleName != null && nature != null) {
            AbstractAdditionalDependencyInfo info;
            try {
                info = AdditionalProjectInterpreterInfo.getAdditionalInfoForProject(nature);
            } catch (MisconfigurationException e) {
                Log.log(e);
                return;
            }

            boolean generateDelta;
            if (isFullBuild) {
                generateDelta = false;
            } else {
                generateDelta = true;
            }
            info.removeInfoFromModule(moduleName, generateDelta);
        } else {
            if (DebugSettings.DEBUG_ANALYSIS_REQUESTS) {
                Log.toLogFile("Unable to remove info. name: " + moduleName + " or nature:" + nature + " is null.",
                        AnalysisBuilderRunnableForRemove.class);
            }
View Full Code Here

                    modulesManager.updateKeysAndSave(keysFound);

                    //Now, the additional info can be slower, so, let's work only on the deltas...
                    IInterpreterManager manager = builder.info.getModulesManager().getInterpreterManager();
                    try {
                        AbstractAdditionalDependencyInfo additionalSystemInfo = AdditionalSystemInterpreterInfo
                                .getAdditionalSystemInfo(manager, builder.info.getExecutableOrJar());
                        additionalSystemInfo.updateKeysIfNeededAndSave(keysFound);
                    } catch (Exception e) {
                        Log.log(e);
                    }
                }
            }
View Full Code Here

        List<AbstractAdditionalTokensInfo> additionalInfo = new ArrayList<AbstractAdditionalTokensInfo>();
        additionalInfo.add(additionalSystemInfo);

        List<IPythonNature> natures = PythonNature.getPythonNaturesRelatedTo(useManager.getInterpreterType());
        for (IPythonNature nature : natures) {
            AbstractAdditionalDependencyInfo info;
            try {
                info = AdditionalProjectInterpreterInfo.getAdditionalInfoForProject(nature);
                if (info != null) {
                    additionalInfo.add(info);
                }
View Full Code Here

            try {
                String defaultInterpreter = interpreterManager.getDefaultInterpreterInfo(false).getExecutableOrJar();
                boolean recreate = forceAdditionalInfoRecreation;
                if (!recreate) {
                    //one last check: if TestCase is not found, recreate it!
                    AbstractAdditionalDependencyInfo additionalSystemInfo = AdditionalSystemInterpreterInfo
                            .getAdditionalSystemInfo(interpreterManager, defaultInterpreter);
                    Collection<IInfo> tokensStartingWith = additionalSystemInfo.getTokensStartingWith("TestCase",
                            AbstractAdditionalTokensInfo.TOP_LEVEL);
                    recreate = true;
                    for (IInfo info : tokensStartingWith) {
                        if (info.getName().equals("TestCase")) {
                            if (info.getDeclaringModuleName().equals("unittest")) {
View Full Code Here

        waitUntilCondition(new ICallback<String, Object>() {

            public String call(Object arg) {
                try {
                    AbstractAdditionalDependencyInfo additionalSystemInfo = AdditionalSystemInterpreterInfo
                            .getAdditionalSystemInfo(manager, manager.getInterpreterInfos()[0].getExecutableOrJar(),
                                    true);
                    if (additionalInfo != additionalSystemInfo) {
                        throw new RuntimeException("Expecting it to be the same instance.");
                    }
View Full Code Here

TOP

Related Classes of com.python.pydev.analysis.additionalinfo.AbstractAdditionalDependencyInfo

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.