mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-91261 Code Style | Arrangement: grayed out modifiers are available for selection
This commit is contained in:
+4
@@ -196,6 +196,10 @@ public class ArrangementAtomNodeComponent implements ArrangementNodeComponent {
|
||||
myBackgroundColor = myColorsService.getBackgroundColor(selected);
|
||||
}
|
||||
|
||||
public boolean isEnabled() {
|
||||
return myEnabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs current component that it should {@link #getUiComponent() draw} itself according to the given 'enabled' state.
|
||||
*
|
||||
|
||||
+1
-1
@@ -136,7 +136,7 @@ public class ArrangementRuleEditor extends JPanel {
|
||||
return;
|
||||
}
|
||||
ArrangementAtomNodeComponent clickedComponent = getNodeComponentAt(e.getLocationOnScreen());
|
||||
if (clickedComponent == null) {
|
||||
if (clickedComponent == null || !clickedComponent.isEnabled()) {
|
||||
return;
|
||||
}
|
||||
ArrangementAtomMatchCondition chosenCondition = clickedComponent.getMatchCondition();
|
||||
|
||||
Reference in New Issue
Block a user