Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
bc8ede8e
Commit
bc8ede8e
authored
Jan 07, 2025
by
Riegel
Browse files
Refactor: Rename variables
parent
fb528f1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java
View file @
bc8ede8e
...
...
@@ -137,18 +137,18 @@ public class ZipEntryPicker {
subpathValueTxt
.
setText
(
entry
.
getFileName
());
if
(
entry
.
getFileSize
()
!=
-
1L
)
{
long
fileSize
=
entry
.
getFileSize
();
long
KB
=
1024L
;
long
MB
=
KB
*
KB
;
long
GB
=
MB
*
KB
;
long
kb
=
1024L
;
long
mb
=
kb
*
kb
;
long
gb
=
mb
*
kb
;
if
(
fileSize
<
KB
)
{
if
(
fileSize
<
kb
)
{
filesizeValue
.
setText
(
"< 1 KB"
);
}
else
if
(
fileSize
<
MB
)
{
filesizeValue
.
setText
(
String
.
format
(
"%s KB"
,
fileSize
/
KB
));
}
else
if
(
fileSize
<
GB
)
{
filesizeValue
.
setText
(
String
.
format
(
"%s MB"
,
fileSize
/
MB
));
}
else
if
(
fileSize
<
mb
)
{
filesizeValue
.
setText
(
String
.
format
(
"%s KB"
,
fileSize
/
kb
));
}
else
if
(
fileSize
<
gb
)
{
filesizeValue
.
setText
(
String
.
format
(
"%s MB"
,
fileSize
/
mb
));
}
else
{
double
gigabytes
=
(
double
)
fileSize
/
GB
;
double
gigabytes
=
(
double
)
fileSize
/
gb
;
filesizeValue
.
setText
(
String
.
format
(
"%.2f GB"
,
gigabytes
));
}
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment