Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
d2f701da
Commit
d2f701da
authored
3 months ago
by
Riegel
Browse files
Options
Download
Email Patches
Plain Diff
Refactor fetching of top-level CityObject
parent
0b280dc5
master
dev
dev_gui_features
dev_gui_features_zip_loading
archive/dev_gui_features_zip_loading
2 merge requests
!28
Version 3.17.0 Release
,
!26
Add ZIP-archive support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/VertexClickHandler.java
+5
-11
.../de/hft/stuttgart/citydoctor2/gui/VertexClickHandler.java
with
5 additions
and
11 deletions
+5
-11
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/VertexClickHandler.java
+
5
-
11
View file @
d2f701da
...
...
@@ -49,25 +49,19 @@ public class VertexClickHandler implements ClickHandler {
MenuItem
clipMi
=
new
MenuItem
(
Localization
.
getText
(
"MainWindow.copyId"
));
clipMi
.
setOnAction
(
ea
->
{
CityObject
parent
=
p
.
getParent
().
getParent
();
if
(
parent
instanceof
BoundarySurface
bs
)
{
parent
=
bs
.
getParent
();
}
CityObject
topLevelCityObject
=
p
.
getParent
().
getParent
().
getTopLevelCityObject
();
Clipboard
clipboard
=
getSystemClipboard
();
ClipboardContent
content
=
new
ClipboardContent
();
content
.
putString
(
paren
t
.
getGmlId
().
toString
());
content
.
putString
(
topLevelCityObjec
t
.
getGmlId
().
toString
());
clipboard
.
setContent
(
content
);
});
cMenu
.
getItems
().
add
(
clipMi
);
MenuItem
detailMi
=
new
MenuItem
(
Localization
.
getText
(
"MainWindow.focusCityObject"
));
detailMi
.
setOnAction
(
ea
->
{
CityObject
parent
=
p
.
getParent
().
getParent
();
if
(
parent
instanceof
BoundarySurface
bs
)
{
parent
=
bs
.
getParent
();
}
mainWindow
.
showCityObjectDetail
(
parent
);
CityObject
topLevelCityObject
=
p
.
getParent
().
getParent
().
getTopLevelCityObject
();
mainWindow
.
showCityObjectDetail
(
topLevelCityObject
);
});
cMenu
.
getItems
().
add
(
detailMi
);
...
...
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
Menu
Explore
Projects
Groups
Snippets