List of usage examples for com.intellij.openapi.ui.popup ListSeparator ListSeparator
public ListSeparator()
From source file:com.intellij.codeInsight.intention.impl.IntentionListStep.java
License:Apache License
@Override public ListSeparator getSeparatorAbove(final IntentionActionWithTextCaching value) { List<IntentionActionWithTextCaching> values = getValues(); int index = values.indexOf(value); if (index <= 0) return null; IntentionActionWithTextCaching prev = values.get(index - 1); if (getGroup(value) != getGroup(prev)) { return new ListSeparator(); }/* ww w.ja va 2 s. c o m*/ return null; }