mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
Support tabs for PropertyTablePanel
This commit is contained in:
@@ -149,9 +149,14 @@ public final class PropertyTablePanel extends JPanel implements ListSelectionLis
|
||||
myActionPolicy = policy;
|
||||
|
||||
for (AnAction action : myActions) {
|
||||
JComponent button = (JComponent)action.getTemplatePresentation().getClientProperty(BUTTON_KEY);
|
||||
boolean visible = policy.showAction(action);
|
||||
|
||||
Presentation presentation = action.getTemplatePresentation();
|
||||
presentation.setVisible(visible);
|
||||
|
||||
JComponent button = (JComponent)presentation.getClientProperty(BUTTON_KEY);
|
||||
if (button != null) {
|
||||
button.setVisible(policy.showAction(action));
|
||||
button.setVisible(visible);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user