mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
copyright: enable add action eagerly (IDEA-184303)
This commit is contained in:
@@ -139,10 +139,11 @@ public class ProjectSettingsPanel {
|
||||
|
||||
@Override
|
||||
public boolean canCreateElement() {
|
||||
return !myProfilesModel.getAllProfiles().isEmpty();
|
||||
return true;
|
||||
}
|
||||
};
|
||||
ToolbarDecorator decorator = ToolbarDecorator.createDecorator(myScopeMappingTable, producer);
|
||||
ToolbarDecorator decorator = ToolbarDecorator.createDecorator(myScopeMappingTable, producer)
|
||||
.setAddActionUpdater(e -> !myProfilesModel.getAllProfiles().isEmpty());
|
||||
return JBUI.Panels.simplePanel(0, 10)
|
||||
.addToTop(component)
|
||||
.addToCenter(decorator.createPanel())
|
||||
|
||||
Reference in New Issue
Block a user