mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
restart infer nullity when library already exist (IDEA-114163)
This commit is contained in:
+11
-6
@@ -139,6 +139,7 @@ public class InferNullityAnnotationsAction extends BaseAnalysisAction {
|
||||
}
|
||||
}
|
||||
});
|
||||
restartAnalysis(project, scope);
|
||||
}
|
||||
}
|
||||
else if (Messages.showOkCancelDialog(project, "Infer Nullity Annotations requires that the nullity annotations" +
|
||||
@@ -163,12 +164,7 @@ public class InferNullityAnnotationsAction extends BaseAnalysisAction {
|
||||
}
|
||||
}
|
||||
}.execute();
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
analyze(project, scope);
|
||||
}
|
||||
});
|
||||
restartAnalysis(project, scope);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -228,6 +224,15 @@ public class InferNullityAnnotationsAction extends BaseAnalysisAction {
|
||||
SwingUtilities.invokeLater(applyRunnable);
|
||||
}
|
||||
|
||||
private void restartAnalysis(final Project project, final AnalysisScope scope) {
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
analyze(project, scope);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected JComponent getAdditionalActionSettings(Project project, BaseAnalysisActionDialog dialog) {
|
||||
|
||||
Reference in New Issue
Block a user