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
9e161477
Commit
9e161477
authored
Oct 02, 2024
by
Riegel
Browse files
Format code
parent
6b536067
Pipeline
#10248
passed with stage
in 1 minute and 13 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/CityDoctorController.java
View file @
9e161477
...
@@ -218,8 +218,8 @@ public class CityDoctorController {
...
@@ -218,8 +218,8 @@ public class CityDoctorController {
}
}
}
}
private
void
buildCityFurniture
(
CityDoctorModel
model
){
private
void
buildCityFurniture
(
CityDoctorModel
model
)
{
if
(
model
.
getCityFurniture
().
isEmpty
()){
if
(
model
.
getCityFurniture
().
isEmpty
())
{
return
;
return
;
}
}
TreeView
<
Renderable
>
cityFurnitureView
=
mainWindow
.
getCityFurnitureView
();
TreeView
<
Renderable
>
cityFurnitureView
=
mainWindow
.
getCityFurnitureView
();
...
@@ -230,8 +230,8 @@ public class CityDoctorController {
...
@@ -230,8 +230,8 @@ public class CityDoctorController {
addMoreButtonIfNecessary
(
model
.
getCityFurniture
(),
cityFurnitureView
,
cityFurnitureRoot
,
cityFurnitureChunkNr
);
addMoreButtonIfNecessary
(
model
.
getCityFurniture
(),
cityFurnitureView
,
cityFurnitureRoot
,
cityFurnitureChunkNr
);
}
}
private
void
buildOtherCityObjects
(
CityDoctorModel
model
){
private
void
buildOtherCityObjects
(
CityDoctorModel
model
)
{
if
(
model
.
getGenericCityObjects
().
isEmpty
()){
if
(
model
.
getGenericCityObjects
().
isEmpty
())
{
return
;
return
;
}
}
TreeView
<
Renderable
>
otherObjectsView
=
mainWindow
.
getOtherObjectsView
();
TreeView
<
Renderable
>
otherObjectsView
=
mainWindow
.
getOtherObjectsView
();
...
@@ -542,11 +542,11 @@ public class CityDoctorController {
...
@@ -542,11 +542,11 @@ public class CityDoctorController {
}
}
private
void
createBuildingFurnitureNodes
(
Building
ab
,
TreeItem
<
Renderable
>
root
)
{
private
void
createBuildingFurnitureNodes
(
Building
ab
,
TreeItem
<
Renderable
>
root
)
{
createFurnitureNodes
(
ab
.
getBuildingRoomFurnitureList
(),
root
);
createFurnitureNodes
(
ab
.
getBuildingRoomFurnitureList
(),
root
);
}
}
private
void
createFurnitureNodes
(
List
<?
extends
AbstractFurniture
>
furniture
,
TreeItem
<
Renderable
>
root
){
private
void
createFurnitureNodes
(
List
<?
extends
AbstractFurniture
>
furniture
,
TreeItem
<
Renderable
>
root
)
{
if
(
furniture
.
isEmpty
())
{
if
(
furniture
.
isEmpty
())
{
return
;
return
;
}
}
...
@@ -982,7 +982,7 @@ public class CityDoctorController {
...
@@ -982,7 +982,7 @@ public class CityDoctorController {
fillTreeViewWithErrorCityObjects
(
mainWindow
.
getTerrainView
(),
model
.
getLand
(),
landChunkNr
);
fillTreeViewWithErrorCityObjects
(
mainWindow
.
getTerrainView
(),
model
.
getLand
(),
landChunkNr
);
}
}
public
void
fillTreeViewWithErrorCityFurniture
(){
public
void
fillTreeViewWithErrorCityFurniture
()
{
if
(
model
==
null
)
{
if
(
model
==
null
)
{
return
;
return
;
}
}
...
@@ -990,7 +990,7 @@ public class CityDoctorController {
...
@@ -990,7 +990,7 @@ public class CityDoctorController {
model
.
getCityFurniture
(),
cityFurnitureChunkNr
);
model
.
getCityFurniture
(),
cityFurnitureChunkNr
);
}
}
public
void
fillTreeViewWithErrorOtherObjects
(){
public
void
fillTreeViewWithErrorOtherObjects
()
{
if
(
model
==
null
)
{
if
(
model
==
null
)
{
return
;
return
;
}
}
...
...
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/MainWindow.java
View file @
9e161477
...
@@ -884,7 +884,7 @@ public class MainWindow extends Application {
...
@@ -884,7 +884,7 @@ public class MainWindow extends Application {
return
cityFurnitureView
;
return
cityFurnitureView
;
}
}
public
TreeView
<
Renderable
>
getOtherObjectsView
(){
public
TreeView
<
Renderable
>
getOtherObjectsView
()
{
return
otherObjectsView
;
return
otherObjectsView
;
}
}
...
...
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