File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
platform/platform-impl/src/com/intellij/ide/plugins/newui Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -473,6 +473,11 @@ private void createLicensePanel() {
473
473
setTagTooltip (IdeBundle .message ("label.text.plugin.eap.license.not.required" ));
474
474
return ;
475
475
}
476
+
477
+ if (myPlugin .isLicenseOptional ()) {
478
+ return ; // do not show "No License" for Freemium plugins
479
+ }
480
+
476
481
licensePanel .setText (IdeBundle .message ("label.text.plugin.no.license" ), true , false );
477
482
}
478
483
else {
@@ -1617,7 +1622,7 @@ public String getAccessibleDescription() {
1617
1622
description .add (IdeBundle .message ("plugins.configurable.list.component.accessible.description.install.available" ));
1618
1623
}
1619
1624
else if (!myInstallButton .isEnabled () && !isDefaultText ) {
1620
- // Install button contains status text when it's disabled and its text is not default.
1625
+ // Install button contains status text when it is disabled and its text is not default.
1621
1626
// Disabled buttons are not focusable, so this information can be missed by screen reader users.
1622
1627
description .add (myInstallButton .getText ());
1623
1628
}
Original file line number Diff line number Diff line change @@ -1309,7 +1309,7 @@ class PluginDetailsPageComponent @JvmOverloads constructor(
1309
1309
licensePanel.showBuyPluginWithText(
1310
1310
message, false , false ,
1311
1311
{ descriptor }, false ,
1312
- ! requiresCommercialIde // if the descriptor requires a commercial IDE, we do not show trial/price message
1312
+ ! requiresCommercialIde // if the descriptor requires a commercial IDE, we do not show the trial/price message
1313
1313
)
1314
1314
}
1315
1315
else {
@@ -1321,11 +1321,17 @@ class PluginDetailsPageComponent @JvmOverloads constructor(
1321
1321
1322
1322
val stamp = instance.getConfirmationStamp(productCode)
1323
1323
if (stamp == null ) {
1324
- if (ApplicationManager .getApplication().isEAP) {
1324
+ if (ApplicationManager .getApplication().isEAP && ! java.lang. Boolean .getBoolean( " eap.require.license " ) ) {
1325
1325
tagPanel!! .setFirstTagTooltip(IdeBundle .message(" tooltip.license.not.required.for.eap.version" ))
1326
1326
licensePanel.hideWithChildren()
1327
1327
return
1328
1328
}
1329
+
1330
+ if (descriptor.isLicenseOptional()) {
1331
+ licensePanel.hideWithChildren()
1332
+ return ; // do not show "No License" for Freemium plugins
1333
+ }
1334
+
1329
1335
licensePanel.setText(IdeBundle .message(" label.text.plugin.no.license" ), true , false )
1330
1336
}
1331
1337
else {
You can’t perform that action at this time.
0 commit comments