mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
This commit is contained in:
@@ -47,6 +47,8 @@ abstract class CurrentFileTodosPanel extends TodoPanel{
|
||||
return;
|
||||
}
|
||||
|
||||
if (file != null && getSelectedFile() == file.getVirtualFile()) return;
|
||||
|
||||
PsiDocumentManager.getInstance(myProject).commitAllDocuments();
|
||||
CurrentFileTodosTreeBuilder builder = (CurrentFileTodosTreeBuilder)myTodoTreeBuilder;
|
||||
builder.setFile(file);
|
||||
|
||||
@@ -219,7 +219,7 @@ abstract class TodoPanel extends JPanel implements OccurenceNavigator, DataProvi
|
||||
/**
|
||||
* @return list of all selected virtual files.
|
||||
*/
|
||||
private VirtualFile getSelectedFile() {
|
||||
protected VirtualFile getSelectedFile() {
|
||||
TreePath path = myTree.getSelectionPath();
|
||||
if (path == null) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user