mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] minor: remove access to MainFrame from filter ui
This commit is contained in:
@@ -28,7 +28,7 @@ import com.intellij.vcs.log.ui.frame.VcsLogGraphTable;
|
||||
import com.intellij.vcs.log.ui.tables.GraphTableModel;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.concurrent.Future;
|
||||
@@ -299,7 +299,8 @@ public class VcsLogUiImpl implements VcsLogUi, Disposable {
|
||||
return mySettings.isShowBranchesPanel();
|
||||
}
|
||||
|
||||
public Component getToolbar() {
|
||||
@NotNull
|
||||
public JComponent getToolbar() {
|
||||
return myMainFrame.getToolbar();
|
||||
}
|
||||
|
||||
|
||||
@@ -199,7 +199,7 @@ public class VcsLogClassicFilterUi implements VcsLogFilterUi {
|
||||
ApplicationManager.getApplication().assertIsDispatchThread();
|
||||
if (filter instanceof VcsLogBranchFilter) {
|
||||
myBranchFilterModel.setFilter((VcsLogBranchFilter)filter);
|
||||
JComponent toolbar = myUi.getMainFrame().getToolbar();
|
||||
JComponent toolbar = myUi.getToolbar();
|
||||
toolbar.revalidate();
|
||||
toolbar.repaint();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user