mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
IDEA-343127: move repaint() to setter & clean up
GitOrigin-RevId: de3730607e4902e5fc348f17f62bac0fc6f52d6e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d84922c92d
commit
9b45ae17f4
@@ -181,8 +181,9 @@ public class ActionButton extends JComponent implements ActionButtonComponent, A
|
||||
return Toggleable.isSelected(myPresentation) || Boolean.TRUE.equals(getClientProperty(IS_SELECTED_BUTTON));
|
||||
}
|
||||
|
||||
public void setSelected(Boolean value) {
|
||||
public void setSelected(boolean value) {
|
||||
putClientProperty(IS_SELECTED_BUTTON, value);
|
||||
repaint();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -204,7 +204,6 @@ class CodeFloatingToolbar(
|
||||
override fun beforeShown(event: LightweightWindowEvent) {
|
||||
activeMenuPopup = popup
|
||||
button.isSelected = true
|
||||
button.repaint()
|
||||
alignButtonPopup(popup)
|
||||
HelpTooltip.setMasterPopupOpenCondition(button) { true }
|
||||
}
|
||||
@@ -212,7 +211,6 @@ class CodeFloatingToolbar(
|
||||
override fun onClosed(event: LightweightWindowEvent) {
|
||||
activeMenuPopup = null
|
||||
button.isSelected = false
|
||||
button.repaint()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user