mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
force repaint on category change
This commit is contained in:
@@ -33,7 +33,6 @@ import com.intellij.ui.TableSpeedSearch;
|
||||
import com.intellij.ui.components.JBLabel;
|
||||
import com.intellij.ui.components.JBLoadingPanel;
|
||||
import com.intellij.ui.table.JBTable;
|
||||
import com.intellij.util.containers.Convertor;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -277,8 +276,6 @@ public class DirDiffPanel implements Disposable {
|
||||
myCurrentElement = element.getSource();
|
||||
} else {
|
||||
myDiffPanel.add(getErrorLabel(), BorderLayout.CENTER);
|
||||
myDiffPanel.revalidate();
|
||||
myDiffPanel.repaint();
|
||||
}
|
||||
} else {
|
||||
final DiffElement object;
|
||||
@@ -293,14 +290,12 @@ public class DirDiffPanel implements Disposable {
|
||||
myCurrentElement = object;
|
||||
myDiffPanel.add(myViewComponent, BorderLayout.CENTER);
|
||||
DataManager.registerDataProvider(myDiffPanel, myCurrentElement.getDataProvider(project));
|
||||
myDiffPanel.revalidate();
|
||||
myDiffPanel.repaint();
|
||||
} else {
|
||||
myDiffPanel.add(getErrorLabel(), BorderLayout.CENTER);
|
||||
myDiffPanel.revalidate();
|
||||
myDiffPanel.repaint();
|
||||
}
|
||||
}
|
||||
myDiffPanel.revalidate();
|
||||
myDiffPanel.repaint();
|
||||
}
|
||||
|
||||
private void registerCustomShortcuts(DirDiffToolbarActions actions, JPanel rootPanel) {
|
||||
|
||||
@@ -113,6 +113,7 @@ public class DirDiffTableModel extends AbstractTableModel implements DirDiffMode
|
||||
myUpdating.set(false);
|
||||
selectFirstRow();
|
||||
myPanel.focusTable();
|
||||
myPanel.update(true);
|
||||
}
|
||||
|
||||
private void selectFirstRow() {
|
||||
|
||||
Reference in New Issue
Block a user