mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -126,16 +126,21 @@ public class SourceCodeChecker {
|
||||
LOG.debug("Source check failed: method " + method.name() + " not found in sources");
|
||||
}
|
||||
if (!res) {
|
||||
FileEditor editor = FileEditorManager.getInstance(project).getSelectedEditor(position.getFile().getVirtualFile());
|
||||
if (editor instanceof TextEditor) {
|
||||
AppUIUtil.invokeOnEdt(() -> HintManager.getInstance().showErrorHint(((TextEditor)editor).getEditor(),
|
||||
DebuggerBundle.message("warning.source.code.not.match")));
|
||||
}
|
||||
else {
|
||||
XDebuggerManagerImpl.NOTIFICATION_GROUP
|
||||
.createNotification(DebuggerBundle.message("warning.source.code.not.match"), NotificationType.WARNING)
|
||||
.notify(project);
|
||||
}
|
||||
VirtualFile virtualFile = position.getFile().getVirtualFile();
|
||||
AppUIUtil.invokeOnEdt(() -> {
|
||||
if (!project.isDisposed()) {
|
||||
FileEditor editor = FileEditorManager.getInstance(project).getSelectedEditor(virtualFile);
|
||||
if (editor instanceof TextEditor) {
|
||||
HintManager.getInstance().showErrorHint(((TextEditor)editor).getEditor(),
|
||||
DebuggerBundle.message("warning.source.code.not.match"));
|
||||
}
|
||||
else {
|
||||
XDebuggerManagerImpl.NOTIFICATION_GROUP
|
||||
.createNotification(DebuggerBundle.message("warning.source.code.not.match"), NotificationType.WARNING)
|
||||
.notify(project);
|
||||
}
|
||||
}
|
||||
});
|
||||
return ThreeState.NO;
|
||||
}
|
||||
return ThreeState.YES;
|
||||
|
||||
Reference in New Issue
Block a user