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
ab2bb34f
Commit
ab2bb34f
authored
Nov 15, 2024
by
Riegel
Browse files
Add resetting of search on clicking showWorldBtn
parent
596ded22
Changes
3
Show whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/CityDoctorController.java
View file @
ab2bb34f
...
@@ -906,6 +906,7 @@ public class CityDoctorController {
...
@@ -906,6 +906,7 @@ public class CityDoctorController {
public
void
showWorld
()
{
public
void
showWorld
()
{
if
(
model
!=
null
)
{
if
(
model
!=
null
)
{
renderer
.
render
(
model
);
renderer
.
render
(
model
);
resetSearch
(
mainWindow
.
getSelectedTab
());
}
}
}
}
...
...
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/MainToolBar.java
View file @
ab2bb34f
...
@@ -162,6 +162,7 @@ public class MainToolBar {
...
@@ -162,6 +162,7 @@ public class MainToolBar {
content
.
getSelectionModel
().
clearSelection
();
content
.
getSelectionModel
().
clearSelection
();
}
}
controller
.
showWorld
();
controller
.
showWorld
();
mainWindow
.
resetSearchBar
();
});
});
showWorldBtn
.
setTooltip
(
new
Tooltip
(
Localization
.
getText
(
"MainToolBar.showWorld"
)));
showWorldBtn
.
setTooltip
(
new
Tooltip
(
Localization
.
getText
(
"MainToolBar.showWorld"
)));
}
}
...
...
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/Renderer.java
View file @
ab2bb34f
...
@@ -1206,5 +1206,4 @@ public class Renderer {
...
@@ -1206,5 +1206,4 @@ public class Renderer {
errorUpdater
=
null
;
errorUpdater
=
null
;
refresher
=
null
;
refresher
=
null
;
}
}
}
}
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