Example usage for com.intellij.openapi.ui.popup ListSeparator ListSeparator

List of usage examples for com.intellij.openapi.ui.popup ListSeparator ListSeparator

Introduction

In this page you can find the example usage for com.intellij.openapi.ui.popup ListSeparator ListSeparator.

Prototype

public ListSeparator() 

Source Link

Usage

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;
}