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
2 months ago
by
Riegel
Browse files
Options
Download
Email Patches
Plain Diff
Refactor: Rename variables
parent
fb528f1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java
+9
-9
...java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java
with
9 additions
and
9 deletions
+9
-9
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/ZipEntryPicker.java
+
9
-
9
View file @
bc8ede8e
...
@@ -137,18 +137,18 @@ public class ZipEntryPicker {
...
@@ -137,18 +137,18 @@ public class ZipEntryPicker {
subpathValueTxt
.
setText
(
entry
.
getFileName
());
subpathValueTxt
.
setText
(
entry
.
getFileName
());
if
(
entry
.
getFileSize
()
!=
-
1L
)
{
if
(
entry
.
getFileSize
()
!=
-
1L
)
{
long
fileSize
=
entry
.
getFileSize
();
long
fileSize
=
entry
.
getFileSize
();
long
KB
=
1024L
;
long
kb
=
1024L
;
long
MB
=
KB
*
KB
;
long
mb
=
kb
*
kb
;
long
GB
=
MB
*
KB
;
long
gb
=
mb
*
kb
;
if
(
fileSize
<
KB
)
{
if
(
fileSize
<
kb
)
{
filesizeValue
.
setText
(
"< 1 KB"
);
filesizeValue
.
setText
(
"< 1 KB"
);
}
else
if
(
fileSize
<
MB
)
{
}
else
if
(
fileSize
<
mb
)
{
filesizeValue
.
setText
(
String
.
format
(
"%s KB"
,
fileSize
/
KB
));
filesizeValue
.
setText
(
String
.
format
(
"%s KB"
,
fileSize
/
kb
));
}
else
if
(
fileSize
<
GB
)
{
}
else
if
(
fileSize
<
gb
)
{
filesizeValue
.
setText
(
String
.
format
(
"%s MB"
,
fileSize
/
MB
));
filesizeValue
.
setText
(
String
.
format
(
"%s MB"
,
fileSize
/
mb
));
}
else
{
}
else
{
double
gigabytes
=
(
double
)
fileSize
/
GB
;
double
gigabytes
=
(
double
)
fileSize
/
gb
;
filesizeValue
.
setText
(
String
.
format
(
"%.2f GB"
,
gigabytes
));
filesizeValue
.
setText
(
String
.
format
(
"%.2f GB"
,
gigabytes
));
}
}
}
else
{
}
else
{
...
...
This diff is collapsed.
Click to expand it.
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