This commit is contained in:
Alexey Kudravtsev
2013-06-25 09:53:04 +04:00
parent c2e608290f
commit 46697b3fe4
3 changed files with 7 additions and 4 deletions
@@ -788,8 +788,10 @@ public class GeneralHighlightingPass extends ProgressableTextEditorHighlightingP
return visitorArray;
}
static void cancelAndRestartDaemonLater(ProgressIndicator progress, final Project project, TextEditorHighlightingPass pass) throws ProcessCanceledException {
PassExecutorService.log(progress, pass, "Cancel and restart");
static void cancelAndRestartDaemonLater(@NotNull ProgressIndicator progress,
@NotNull final Project project,
@NotNull TextEditorHighlightingPass passCalledFrom) throws ProcessCanceledException {
PassExecutorService.log(progress, passCalledFrom, "Cancel and restart");
progress.cancel();
ApplicationManager.getApplication().invokeLater(new Runnable() {
@Override
@@ -158,6 +158,7 @@ public class CodeSmellDetectorImpl extends CodeSmellDetector {
return result;
}
@NotNull
private List<CodeSmellInfo> findCodeSmells(@NotNull PsiFile psiFile, final ProgressIndicator progress, @NotNull Document document) {
final List<CodeSmellInfo> result = new ArrayList<CodeSmellInfo>();
@@ -54,7 +54,7 @@ public class QuickListsManager implements ExportableApplicationComponent, NamedJ
private final ActionManager myActionManager;
private final SchemesManager<QuickList, QuickList> mySchemesManager;
private final static Logger LOG = Logger.getInstance("#" + QuickListsManager.class.getName());
private static final Logger LOG = Logger.getInstance("#" + QuickListsManager.class.getName());
public static QuickListsManager getInstance() {
return ApplicationManager.getApplication().getComponent(QuickListsManager.class);
@@ -116,7 +116,7 @@ public class QuickListsManager implements ExportableApplicationComponent, NamedJ
public void initComponent() {
mySchemesManager.loadSchemes();
registerActions();
registerActions();
}
public void disposeComponent() {