[vcs-log][linear-bek] hide linear bek in registry

This commit is contained in:
Julia Beliaeva
2015-02-02 16:45:49 +03:00
parent c97a72b8e4
commit 3de45d9ed2
3 changed files with 9 additions and 7 deletions
@@ -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
@@ -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());
}
}