mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (typo)
This commit is contained in:
+7
-5
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -38,11 +38,12 @@ import java.awt.*;
|
||||
*/
|
||||
public abstract class AbstractUpdateDialog extends DialogWrapper {
|
||||
private final boolean myEnableLink;
|
||||
|
||||
protected String myLicenseInfo = null;
|
||||
protected boolean myPaidUpgrade;
|
||||
protected boolean mySubscribtionLicense = false;
|
||||
protected boolean mySubscriptionLicense = false;
|
||||
|
||||
public AbstractUpdateDialog(boolean enableLink) {
|
||||
protected AbstractUpdateDialog(boolean enableLink) {
|
||||
super(true);
|
||||
myEnableLink = enableLink;
|
||||
setTitle(IdeBundle.message("updates.info.dialog.title"));
|
||||
@@ -83,7 +84,7 @@ public abstract class AbstractUpdateDialog extends DialogWrapper {
|
||||
protected void initLicensingInfo(@NotNull UpdateChannel channel, @NotNull BuildInfo build) {
|
||||
LicensingFacade facade = LicensingFacade.getInstance();
|
||||
if (facade != null) {
|
||||
mySubscribtionLicense = facade.isSubscriptionLicense();
|
||||
mySubscriptionLicense = facade.isSubscriptionLicense();
|
||||
if (!channel.getLicensing().equals(UpdateChannel.LICENSING_EAP)) {
|
||||
Boolean paidUpgrade = facade.isPaidUpgrade(channel.getMajorVersion(), build.getReleaseDate());
|
||||
if (paidUpgrade == Boolean.TRUE) {
|
||||
@@ -102,7 +103,8 @@ public abstract class AbstractUpdateDialog extends DialogWrapper {
|
||||
|
||||
|
||||
protected void configureMessageArea(@NotNull JEditorPane area) {
|
||||
configureMessageArea(area, myEnableLink ? IdeBundle.message("updates.configure.label", ShowSettingsUtil.getSettingsMenuName()) : "", null, null);
|
||||
String messageBody = myEnableLink ? IdeBundle.message("updates.configure.label", ShowSettingsUtil.getSettingsMenuName()) : "";
|
||||
configureMessageArea(area, messageBody, null, null);
|
||||
}
|
||||
|
||||
protected void configureMessageArea(final @NotNull JEditorPane area,
|
||||
|
||||
+1
-1
@@ -233,7 +233,7 @@ class UpdateInfoDialog extends AbstractUpdateDialog {
|
||||
configureMessageArea(myMessageArea);
|
||||
}
|
||||
|
||||
if (mySubscribtionLicense && myLicenseInfo != null) {
|
||||
if (mySubscriptionLicense && myLicenseInfo != null) {
|
||||
configureMessageArea(myLicenseArea, myLicenseInfo, myPaidUpgrade ? JBColor.RED : null, null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user