Olesya Smirnova
2005-02-26 22:15:18 +03:00
parent a09593f8d5
commit ffa8553c04
2 changed files with 3 additions and 1 deletions
@@ -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);
+1 -1
View 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;