Java Code Examples for com.intellij.analysis.AnalysisScope#getProject()
The following examples show how to use
com.intellij.analysis.AnalysisScope#getProject() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractRefactoringPanel.java From IntelliJDeodorant with MIT License | 6 votes |
public AbstractRefactoringPanel(@NotNull AnalysisScope scope, String detectIndicatorStatusTextKey, RefactoringType refactoringType, AbstractTreeTableModel model, int refactorDepth) { this.scope = scope; this.scopeChooserCombo = new ScopeChooserCombo(scope.getProject()); this.detectIndicatorStatusTextKey = detectIndicatorStatusTextKey; this.refactoringType = refactoringType; this.model = model; this.treeTable = new TreeTable(model); this.refactorDepth = refactorDepth; refreshLabel.setForeground(JBColor.GRAY); setLayout(new BorderLayout()); setupGUI(); }
Example 2
Source File: MoveMethodPanel.java From IntelliJDeodorant with MIT License | 5 votes |
MoveMethodPanel(@NotNull AnalysisScope scope) { this.scope = scope; this.scopeChooserCombo = new ScopeChooserCombo(scope.getProject()); setLayout(new BorderLayout()); model = new MoveMethodTableModel(refactorings); setupGUI(); }
Example 3
Source File: TypeCheckingPanel.java From IntelliJDeodorant with MIT License | 5 votes |
TypeCheckingPanel(@NotNull AnalysisScope scope) { super(scope, "type.state.checking.identification.indicator", new TypeCheckRefactoringType(scope.getProject()), new TypeCheckingTreeTableModel( Collections.emptyList(), COLUMN_NAMES, scope.getProject() ), REFACTOR_DEPTH ); }
Example 4
Source File: ProjectInfo.java From IntelliJDeodorant with MIT License | 5 votes |
public ProjectInfo(@NotNull AnalysisScope scope, boolean analyseAllFiles) { this.project = scope.getProject(); List<PsiJavaFile> psiFiles = analyseAllFiles ? PsiUtils.extractFiles(project) : PsiUtils.extractFiles(project).stream().filter(scope::contains).collect(Collectors.toList()); this.psiClasses = psiFiles.stream() .flatMap(psiFile -> PsiUtils.extractClasses(psiFile).stream()) .collect(Collectors.toList()); this.psiMethods = psiClasses.stream() .flatMap(psiClass -> PsiUtils.extractMethods(psiClass).stream()) .collect(Collectors.toList()); }
Example 5
Source File: ExtractMethodPanel.java From IntelliJDeodorant with MIT License | 4 votes |
ExtractMethodPanel(@NotNull AnalysisScope scope) { this.scope = scope; this.scopeChooserCombo = new ScopeChooserCombo(scope.getProject()); setLayout(new BorderLayout()); setupGUI(); }