Search in sources :

Example 1 with CyclicDependenciesPanel

use of com.intellij.cyclicDependencies.ui.CyclicDependenciesPanel in project intellij-community by JetBrains.

the class CyclicDependenciesHandler method analyze.

public void analyze() {
    final CyclicDependenciesBuilder builder = new CyclicDependenciesBuilder(myProject, myScope);
    final Runnable process = () -> builder.analyze();
    final Runnable successRunnable = () -> SwingUtilities.invokeLater(() -> {
        CyclicDependenciesPanel panel = new CyclicDependenciesPanel(myProject, builder);
        Content content = ContentFactory.SERVICE.getInstance().createContent(panel, AnalysisScopeBundle.message("action.analyzing.cyclic.dependencies.in.scope", builder.getScope().getDisplayName()), false);
        content.setDisposer(panel);
        panel.setContent(content);
        DependenciesToolWindow.getInstance(myProject).addContent(content);
    });
    ProgressManager.getInstance().runProcessWithProgressAsynchronously(myProject, AnalysisScopeBundle.message("package.dependencies.progress.title"), process, successRunnable, null, new PerformAnalysisInBackgroundOption(myProject));
}
Also used : CyclicDependenciesBuilder(com.intellij.cyclicDependencies.CyclicDependenciesBuilder) Content(com.intellij.ui.content.Content) CyclicDependenciesPanel(com.intellij.cyclicDependencies.ui.CyclicDependenciesPanel) PerformAnalysisInBackgroundOption(com.intellij.analysis.PerformAnalysisInBackgroundOption)

Aggregations

PerformAnalysisInBackgroundOption (com.intellij.analysis.PerformAnalysisInBackgroundOption)1 CyclicDependenciesBuilder (com.intellij.cyclicDependencies.CyclicDependenciesBuilder)1 CyclicDependenciesPanel (com.intellij.cyclicDependencies.ui.CyclicDependenciesPanel)1 Content (com.intellij.ui.content.Content)1