#IDEA-CR-8144 allow to place group separator to the project types list top

This commit is contained in:
Dmitry.Krasilschikov
2016-02-11 15:11:30 +03:00
parent 93dde07b12
commit 7a6cb09586
@@ -695,11 +695,13 @@ public class FlatWelcomeFrame extends JFrame implements IdeFrame {
@Override
public boolean hasSeparatorAboveOf(AnAction value) {
int index = groups.indexOf(value);
if (index < 1) return false;
AnAction upper = groups.get(index - 1);
if (getParentGroupName(upper) == null && getParentGroupName(value) != null) return true;
final String parentGroupName = getParentGroupName(value);
return !Comparing.equal(getParentGroupName(upper), getParentGroupName(value));
if (index < 1) return parentGroupName != null;
AnAction upper = groups.get(index - 1);
if (getParentGroupName(upper) == null && parentGroupName != null) return true;
return !Comparing.equal(getParentGroupName(upper), parentGroupName);
}
})