X Tutup
Skip to content

Commit ec763ef

Browse files
whitespace settings
1 parent 450b510 commit ec763ef

File tree

278 files changed

+62062
-62031
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

278 files changed

+62062
-62031
lines changed

app/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ spotless {
105105
googleJavaFormat().reflowLongStrings().skipJavadocFormatting()
106106
// fix formatting of type annotations
107107
formatAnnotations()
108+
109+
trimTrailingWhitespace()
110+
leadingSpacesToTabs()
108111
}
109112
}
110113

app/src/main/java/com/basic4gl/desktop/AboutDialog.java

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -12,71 +12,71 @@
1212
* Created by Nate on 1/12/2015.
1313
*/
1414
public class AboutDialog {
15-
private JDialog mDialog;
15+
private JDialog mDialog;
1616

17-
public AboutDialog(Frame parent) {
18-
Locale locale = new Locale("en", "US");
19-
ResourceBundle resources = ResourceBundle.getBundle("build", locale);
17+
public AboutDialog(Frame parent) {
18+
Locale locale = new Locale("en", "US");
19+
ResourceBundle resources = ResourceBundle.getBundle("build", locale);
2020

21-
mDialog = new JDialog(parent);
21+
mDialog = new JDialog(parent);
2222

23-
mDialog.setTitle("About");
23+
mDialog.setTitle("About");
2424

25-
mDialog.setResizable(false);
26-
mDialog.setModal(true);
25+
mDialog.setResizable(false);
26+
mDialog.setModal(true);
2727

28-
JPanel mainPanel = new JPanel();
29-
mDialog.add(mainPanel);
30-
GridLayout mainLayout = new GridLayout(2, 1);
31-
mainPanel.setLayout(mainLayout);
28+
JPanel mainPanel = new JPanel();
29+
mDialog.add(mainPanel);
30+
GridLayout mainLayout = new GridLayout(2, 1);
31+
mainPanel.setLayout(mainLayout);
3232

33-
JPanel infoPanel = new JPanel();
34-
mainPanel.add(infoPanel);
35-
GridLayout infoLayout1 = new GridLayout(1, 2);
36-
infoPanel.setLayout(infoLayout1);
37-
JLabel labelLogo = new JLabel(SwingIconUtil.createImageIcon(BuildInfo.ICON_LOGO_LARGE));
38-
infoPanel.add(labelLogo);
33+
JPanel infoPanel = new JPanel();
34+
mainPanel.add(infoPanel);
35+
GridLayout infoLayout1 = new GridLayout(1, 2);
36+
infoPanel.setLayout(infoLayout1);
37+
JLabel labelLogo = new JLabel(SwingIconUtil.createImageIcon(BuildInfo.ICON_LOGO_LARGE));
38+
infoPanel.add(labelLogo);
3939

40-
JPanel descriptionPanel = new JPanel();
41-
infoPanel.add(descriptionPanel);
42-
BoxLayout descriptionLayout = new BoxLayout(descriptionPanel, BoxLayout.Y_AXIS);
40+
JPanel descriptionPanel = new JPanel();
41+
infoPanel.add(descriptionPanel);
42+
BoxLayout descriptionLayout = new BoxLayout(descriptionPanel, BoxLayout.Y_AXIS);
4343

44-
descriptionPanel.setLayout(descriptionLayout);
45-
descriptionPanel.setBorder(new EmptyBorder(10, 5, 10, 5));
46-
descriptionPanel.add(new JLabel(BuildInfo.APPLICATION_NAME));
47-
JLabel labelDescription = new JLabel(BuildInfo.APPLICATION_DESCRIPTION);
48-
labelDescription.setFont(new Font(Font.MONOSPACED, Font.ITALIC, 12));
49-
labelDescription.setBorder(new EmptyBorder(5, 5, 5, 5));
50-
descriptionPanel.add(labelDescription);
51-
descriptionPanel.add(
52-
new JLabel("Version: " + resources.getString(BuildInfo.APPLICATION_VERSION_RESOURCE)));
53-
descriptionPanel.add(
54-
new JLabel(
55-
"Build Date: " + resources.getString(BuildInfo.APPLICATION_BUILD_DATE_RESOURCE)));
56-
descriptionPanel.add(Box.createVerticalGlue());
57-
descriptionPanel.add(new JLabel(BuildInfo.APPLICATION_COPYRIGHT));
58-
descriptionPanel.add(new JLabel(BuildInfo.APPLICATION_WEBSITE));
44+
descriptionPanel.setLayout(descriptionLayout);
45+
descriptionPanel.setBorder(new EmptyBorder(10, 5, 10, 5));
46+
descriptionPanel.add(new JLabel(BuildInfo.APPLICATION_NAME));
47+
JLabel labelDescription = new JLabel(BuildInfo.APPLICATION_DESCRIPTION);
48+
labelDescription.setFont(new Font(Font.MONOSPACED, Font.ITALIC, 12));
49+
labelDescription.setBorder(new EmptyBorder(5, 5, 5, 5));
50+
descriptionPanel.add(labelDescription);
51+
descriptionPanel.add(
52+
new JLabel("Version: " + resources.getString(BuildInfo.APPLICATION_VERSION_RESOURCE)));
53+
descriptionPanel.add(
54+
new JLabel(
55+
"Build Date: " + resources.getString(BuildInfo.APPLICATION_BUILD_DATE_RESOURCE)));
56+
descriptionPanel.add(Box.createVerticalGlue());
57+
descriptionPanel.add(new JLabel(BuildInfo.APPLICATION_COPYRIGHT));
58+
descriptionPanel.add(new JLabel(BuildInfo.APPLICATION_WEBSITE));
5959

60-
JTextPane textLicenses = new JTextPane();
61-
JScrollPane scrollLicenses = new JScrollPane(textLicenses);
62-
scrollLicenses.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
63-
textLicenses.setEditable(false);
60+
JTextPane textLicenses = new JTextPane();
61+
JScrollPane scrollLicenses = new JScrollPane(textLicenses);
62+
scrollLicenses.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
63+
textLicenses.setEditable(false);
6464

65-
java.net.URL helpURL = ClassLoader.getSystemClassLoader().getResource("about.html");
66-
if (helpURL != null) {
67-
try {
68-
textLicenses.setPage(helpURL);
69-
} catch (IOException e) {
70-
System.err.println("Attempted to read a bad URL: " + helpURL);
71-
}
72-
} else {
73-
System.err.println("Couldn't find file: about.html");
74-
}
75-
mainPanel.add(scrollLicenses);
76-
// JScrollPane scrollPane = new ScrollPane(textLicenses);
77-
mDialog.pack();
78-
mDialog.setSize(new Dimension(360, 320));
79-
mDialog.setLocationRelativeTo(parent);
80-
mDialog.setVisible(true);
81-
}
65+
java.net.URL helpURL = ClassLoader.getSystemClassLoader().getResource("about.html");
66+
if (helpURL != null) {
67+
try {
68+
textLicenses.setPage(helpURL);
69+
} catch (IOException e) {
70+
System.err.println("Attempted to read a bad URL: " + helpURL);
71+
}
72+
} else {
73+
System.err.println("Couldn't find file: about.html");
74+
}
75+
mainPanel.add(scrollLicenses);
76+
// JScrollPane scrollPane = new ScrollPane(textLicenses);
77+
mDialog.pack();
78+
mDialog.setSize(new Dimension(360, 320));
79+
mDialog.setLocationRelativeTo(parent);
80+
mDialog.setVisible(true);
81+
}
8282
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.basic4gl.desktop;
22

33
enum ApMode {
4-
AP_CLOSED,
5-
AP_STOPPED,
6-
AP_PAUSED,
7-
AP_RUNNING
4+
AP_CLOSED,
5+
AP_STOPPED,
6+
AP_PAUSED,
7+
AP_RUNNING
88
}

0 commit comments

Comments
 (0)
X Tutup