mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix the layout of the Usage Statistics configurable
This commit is contained in:
+2
-1
@@ -16,6 +16,7 @@
|
||||
package com.intellij.internal.statistic.configurable;
|
||||
|
||||
import com.intellij.internal.statistic.persistence.UsageStatisticsPersistenceComponent;
|
||||
import com.intellij.openapi.options.Configurable;
|
||||
import com.intellij.openapi.options.ConfigurationException;
|
||||
import com.intellij.openapi.options.SearchableConfigurable;
|
||||
import org.jetbrains.annotations.Nls;
|
||||
@@ -25,7 +26,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class StatisticsConfigurable implements SearchableConfigurable {
|
||||
public class StatisticsConfigurable implements SearchableConfigurable, Configurable.NoScroll {
|
||||
|
||||
private boolean modifiedByDefault;
|
||||
|
||||
|
||||
+6
-16
@@ -3,7 +3,7 @@
|
||||
<grid id="27dc6" binding="myMainPanel" layout-manager="GridLayoutManager" row-count="3" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<margin top="0" left="0" bottom="0" right="0"/>
|
||||
<constraints>
|
||||
<xy x="20" y="20" width="335" height="259"/>
|
||||
<xy x="20" y="20" width="335" height="268"/>
|
||||
</constraints>
|
||||
<properties/>
|
||||
<border type="none"/>
|
||||
@@ -38,8 +38,8 @@
|
||||
<text value=""/>
|
||||
</properties>
|
||||
</component>
|
||||
<grid id="d4bdc" binding="myRadioButtonPanel" layout-manager="GridLayoutManager" row-count="3" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<margin top="0" left="0" bottom="0" right="0"/>
|
||||
<grid id="d4bdc" layout-manager="GridLayoutManager" row-count="3" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<margin top="0" left="0" bottom="10" right="0"/>
|
||||
<constraints>
|
||||
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="2" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
@@ -75,22 +75,12 @@
|
||||
</grid>
|
||||
</children>
|
||||
</grid>
|
||||
<grid id="edf0a" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<margin top="30" left="0" bottom="0" right="0"/>
|
||||
<component id="67819" class="javax.swing.JLabel" binding="myLabel">
|
||||
<constraints>
|
||||
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
|
||||
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
<properties/>
|
||||
<border type="none"/>
|
||||
<children>
|
||||
<component id="67819" class="javax.swing.JLabel" binding="myLabel">
|
||||
<constraints>
|
||||
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
<properties/>
|
||||
</component>
|
||||
</children>
|
||||
</grid>
|
||||
</component>
|
||||
</children>
|
||||
</grid>
|
||||
<component id="9c047" class="javax.swing.JLabel" binding="myTitle">
|
||||
|
||||
+2
-3
@@ -21,7 +21,7 @@ import com.intellij.internal.statistic.connect.StatisticsService;
|
||||
import com.intellij.internal.statistic.persistence.UsageStatisticsPersistenceComponent;
|
||||
import com.intellij.openapi.application.ApplicationInfo;
|
||||
import com.intellij.openapi.application.ApplicationNamesInfo;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import com.intellij.ui.RelativeFont;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.event.ActionEvent;
|
||||
@@ -37,14 +37,13 @@ public class StatisticsConfigurationComponent {
|
||||
private JRadioButton myMonthlyRadioButton;
|
||||
private JRadioButton myWeeklyRadioButton;
|
||||
private JLabel myLabel;
|
||||
private JPanel myRadioButtonPanel;
|
||||
|
||||
public StatisticsConfigurationComponent() {
|
||||
String product = ApplicationNamesInfo.getInstance().getFullProductName();
|
||||
String company = ApplicationInfo.getInstance().getCompanyName();
|
||||
myTitle.setText(StatisticsBundle.message("stats.title", product, company));
|
||||
myLabel.setText(StatisticsBundle.message("stats.config.details", company));
|
||||
myLabel.setFont(UIUtil.getLabelFont(UIUtil.FontSize.SMALL));
|
||||
RelativeFont.SMALL.install(myLabel);
|
||||
|
||||
myAllowToSendUsagesCheckBox.setText(StatisticsBundle.message("stats.config.allow.send.stats.text", company));
|
||||
myAllowToSendUsagesCheckBox.addActionListener(new ActionListener() {
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
stats.title=Help improve {0} by sending anonymous usage statistics to {1}
|
||||
stats.title=<html>Help improve {0} by sending anonymous usage statistics to {1}
|
||||
|
||||
stats.config.allow.send.stats.text=Allow sending usage statistics to {0}
|
||||
stats.config.details=<html>We are asking your permission to send information about your plugins configuration (what is enabled <br>and what is not) and feature usage statistics (e.g. how frequently you are using code completion).<br> This data is anonymous, does not contain any personal information, collected for use only by {0}<br> and will never be transmitted to any third party.</html>
|
||||
stats.config.details=<html>We are asking your permission to send information about your plugins configuration \
|
||||
(what is enabled and what is not) and feature usage statistics (e.g. how frequently you are using code completion). \
|
||||
This data is anonymous, does not contain any personal information, \
|
||||
collected for use only by {0} and will never be transmitted to any third party.
|
||||
Reference in New Issue
Block a user