Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
Protos
Nomad 3D
nomad-3d-editor
Commits
5e502bee
Commit
5e502bee
authored
Feb 08, 2019
by
legoc
Browse files
Added the name of the axis in the tree item
parent
b5b71cb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/fr/ill/ics/n3d/gui/HierarchyCell.java
View file @
5e502bee
...
...
@@ -83,10 +83,14 @@ public class HierarchyCell extends CheckBoxTreeCell<Component> {
if
(
empty
||
isEditing
())
{
return
;
}
else
{
// DEBUG
// setText(item.getName() + " -- " + item.getAxis().getType() + " - " + item.getAxis().getMethod());
setText
(
item
.
getName
());
String
text
=
item
.
getName
();
if
(
item
.
getAxis
().
getController
()
!=
null
)
{
text
+=
" ("
+
item
.
getAxis
().
getController
().
getName
()
+
")"
;
}
setText
(
text
);
setContextMenu
(
rigthClickMenu
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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