Package org.sonar.ide.intellij.component

Examples of org.sonar.ide.intellij.component.SonarModuleComponent


        ResourceLookupWorker resourceLookupWorker = new ResourceLookupWorker(project, file, new ResourceLookupWorker.ResourceLoadCallback() {
            @Override
            public void resourceLoaded(@Nullable Resource resource) {

                SonarModuleComponent sonarModuleComponent = SonarResourceKeyUtils.getSonarModuleComponent(project, file);
                SonarModuleComponent.SonarModuleState state = sonarModuleComponent.getState();

                String resourceId;
                if (resource == null) {
                    resourceId = state.projectKey;
                } else {
View Full Code Here


    interface SonarResourceKeyMaker {
        String makeResourceKey(PsiFileSystemItem psiFile, SonarModuleComponent sonarModuleComponent);
    }

    private static String createResourceKey(final Project project, final VirtualFile virtualFile, final SonarResourceKeyMaker keyMaker) {
        final SonarModuleComponent sonarModuleComponent = getSonarModuleComponent(project, virtualFile);
        if (sonarModuleComponent == null) { // There is no module for this file
            return null;
        }

        if (!sonarModuleComponent.isConfigured()) {
            return null;
        }

        final PsiManager psiManager = PsiManager.getInstance(project);
        final PsiFileSystemItem psiFile = ApplicationManager.getApplication().runReadAction(new Computable<PsiFileSystemItem>() {
View Full Code Here

TOP

Related Classes of org.sonar.ide.intellij.component.SonarModuleComponent

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.