mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log][linear-bek] hide linear bek in registry
This commit is contained in:
@@ -213,6 +213,7 @@ vcs.show.colored.annotations=true
|
||||
vcs.showConsole=true
|
||||
vcs.log.bek.sort=false
|
||||
vcs.log.bek.sort.disabled=false
|
||||
vcs.log.linear.bek.sort=false
|
||||
|
||||
psi.incremental.reparse.depth.limit=1000
|
||||
psi.deferIconLoading=true
|
||||
|
||||
+7
-6
@@ -37,6 +37,10 @@ public class BekSorter {
|
||||
return isBekEnabled || isInternal;
|
||||
}
|
||||
|
||||
public static boolean isLinearBekEnabled() {
|
||||
return isBekEnabled() && Registry.is("vcs.log.linear.bek.sort");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static BekIntMap createBekMap(@NotNull LinearGraph permanentGraph,
|
||||
@NotNull GraphLayoutImpl graphLayout,
|
||||
@@ -86,14 +90,11 @@ public class BekSorter {
|
||||
};
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private final LinearGraph myPermanentGraph;
|
||||
@NotNull private final LinearGraph myPermanentGraph;
|
||||
|
||||
@NotNull
|
||||
private final GraphLayoutImpl myGraphLayout;
|
||||
@NotNull private final GraphLayoutImpl myGraphLayout;
|
||||
|
||||
@NotNull
|
||||
private final TimestampGetter myTimestampGetter;
|
||||
@NotNull private final TimestampGetter myTimestampGetter;
|
||||
|
||||
private BekSorter(@NotNull LinearGraph permanentGraph, @NotNull GraphLayoutImpl graphLayout, @NotNull TimestampGetter timestampGetter) {
|
||||
myPermanentGraph = permanentGraph;
|
||||
|
||||
@@ -354,7 +354,7 @@ public class MainFrame extends JPanel implements TypeSafeDataProvider {
|
||||
@Override
|
||||
public void update(AnActionEvent e) {
|
||||
super.update(e);
|
||||
e.getPresentation().setVisible(BekSorter.isBekEnabled());
|
||||
e.getPresentation().setVisible(BekSorter.isLinearBekEnabled());
|
||||
e.getPresentation().setEnabled(areGraphActionsEnabled() && myUI.isBek());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user