Cleanup (typo)

This commit is contained in:
Roman Shevchenko
2014-12-08 11:42:42 +01:00
parent ce780fe4f1
commit 49d742a4d6
2 changed files with 8 additions and 6 deletions
@@ -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,
@@ -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);
}
}