Skip to content

Commit 70da094

Browse files
author
jantje
committed
#892 fix indentation before getting started
1 parent 82ebace commit 70da094

File tree

1 file changed

+54
-53
lines changed

1 file changed

+54
-53
lines changed

io.sloeber.core/src/io/sloeber/core/managers/ToolSystem.java

+54-53
Original file line numberDiff line numberDiff line change
@@ -13,68 +13,69 @@
1313

1414
public class ToolSystem {
1515

16-
private String host;
17-
private String archiveFileName;
18-
private String url;
19-
private String checksum;
20-
private String size;
16+
private String host;
17+
private String archiveFileName;
18+
private String url;
19+
private String checksum;
20+
private String size;
2121

22-
private transient Tool tool;
22+
private transient Tool tool;
2323

24-
public void setOwner(Tool tool) {
25-
this.tool = tool;
26-
}
24+
public void setOwner(Tool tool) {
25+
this.tool = tool;
26+
}
2727

28-
public String getHost() {
29-
return this.host;
30-
}
28+
public String getHost() {
29+
return this.host;
30+
}
3131

32-
public String getArchiveFileName() {
33-
return this.archiveFileName;
34-
}
32+
public String getArchiveFileName() {
33+
return this.archiveFileName;
34+
}
3535

36-
public String getUrl() {
37-
return this.url;
38-
}
36+
public String getUrl() {
37+
return this.url;
38+
}
3939

40-
public String getChecksum() {
41-
return this.checksum;
42-
}
40+
public String getChecksum() {
41+
return this.checksum;
42+
}
4343

44-
public String getSize() {
45-
return this.size;
46-
}
44+
public String getSize() {
45+
return this.size;
46+
}
4747

48-
public boolean isApplicable() {
49-
switch (Platform.getOS()) {
50-
case Platform.OS_WIN32:
51-
return "i686-mingw32".equals(this.host); //$NON-NLS-1$
52-
case Platform.OS_MACOSX:
53-
switch (this.host) {
54-
case "i386-apple-darwin11": //$NON-NLS-1$
55-
case "x86_64-apple-darwin": //$NON-NLS-1$
56-
case "x86_64-apple-darwin12": //$NON-NLS-1$
57-
case "x86_64-apple-darwin14": //$NON-NLS-1$
58-
return true;
59-
default:
60-
return false;
61-
}
62-
case Platform.OS_LINUX:
63-
switch (Platform.getOSArch()) {
64-
case Platform.ARCH_X86_64:
65-
return "x86_64-linux-gnu".equals(this.host) || "x86_64-pc-linux-gnu".equals(this.host); //$NON-NLS-1$ //$NON-NLS-2$
66-
case Platform.ARCH_X86:
67-
return "i686-linux-gnu".equals(this.host) || "i686-pc-linux-gnu".equals(this.host); //$NON-NLS-1$ //$NON-NLS-2$
68-
default:
69-
return false;
70-
}
71-
default:
72-
return false;
48+
public boolean isApplicable() {
49+
switch (Platform.getOS()) {
50+
case Platform.OS_WIN32:
51+
return "i686-mingw32".equals(this.host); //$NON-NLS-1$
52+
case Platform.OS_MACOSX:
53+
switch (this.host) {
54+
case "i386-apple-darwin11": //$NON-NLS-1$
55+
case "x86_64-apple-darwin": //$NON-NLS-1$
56+
case "x86_64-apple-darwin12": //$NON-NLS-1$
57+
case "x86_64-apple-darwin14": //$NON-NLS-1$
58+
return true;
59+
default:
60+
return false;
61+
}
62+
case Platform.OS_LINUX:
63+
switch (Platform.getOSArch()) {
64+
case Platform.ARCH_X86_64:
65+
return "x86_64-linux-gnu".equals(this.host) || "x86_64-pc-linux-gnu".equals(this.host); //$NON-NLS-1$ //$NON-NLS-2$
66+
case Platform.ARCH_X86:
67+
return "i686-linux-gnu".equals(this.host) || "i686-pc-linux-gnu".equals(this.host); //$NON-NLS-1$ //$NON-NLS-2$
68+
default:
69+
return false;
70+
}
71+
default:
72+
return false;
73+
}
7374
}
74-
}
7575

76-
public IStatus install(IProgressMonitor monitor) {
77-
return InternalPackageManager.downloadAndInstall(this.url, this.archiveFileName, this.tool.getInstallPath(), false, monitor);
78-
}
76+
public IStatus install(IProgressMonitor monitor) {
77+
return InternalPackageManager.downloadAndInstall(this.url, this.archiveFileName, this.tool.getInstallPath(),
78+
false, monitor);
79+
}
7980

8081
}

0 commit comments

Comments
 (0)