mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-21737: Flask conf. option must have 3 states
Flask may be: * Enabled explicitly * Disabled explicitly * In unknown state Once moved to explicit state, it can't be set back
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
package com.intellij.util.ui;
|
||||
|
||||
import com.intellij.util.ui.accessibility.AccessibleContextUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.accessibility.AccessibleContext;
|
||||
import javax.accessibility.AccessibleRole;
|
||||
@@ -78,7 +79,8 @@ public class ThreeStateCheckBox extends JCheckBox {
|
||||
setState(initial);
|
||||
}
|
||||
|
||||
private State nextState() {
|
||||
@NotNull
|
||||
protected State nextState() {
|
||||
switch (myState) {
|
||||
case SELECTED:
|
||||
return State.NOT_SELECTED;
|
||||
|
||||
Reference in New Issue
Block a user