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
2b7c8578
Commit
2b7c8578
authored
Jun 19, 2017
by
Ivan Dages
Browse files
axis link : type mismatch indication
parent
fb0958e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/fr/ill/ics/n3d/gui/EditorMenuBar.java
View file @
2b7c8578
...
...
@@ -552,6 +552,21 @@ public class EditorMenuBar extends MenuBar {
selectButton
.
setOnAction
(
selEvent
->
{
Nomad3DController
selectedController
=
controllersList
.
getSelectionModel
().
getSelectedItem
();
if
(!((
selectedAxis
.
getType
()
==
Axis
.
Type
.
ROTATION
&&
selectedController
.
getType
()
==
Nomad3DController
.
Type
.
ROTATION
)
||
(
selectedAxis
.
getType
()
==
Axis
.
Type
.
TRANSLATION
&&
selectedController
.
getType
()
==
Nomad3DController
.
Type
.
TRANSLATION
)))
{
Alert
alert
=
new
Alert
(
AlertType
.
CONFIRMATION
);
alert
.
setTitle
(
linkAxisItem
.
getText
());
alert
.
setContentText
(
"The selected axis and controller do not have the same type."
);
Optional
<
ButtonType
>
res
=
alert
.
showAndWait
();
if
(
res
.
isPresent
())
{
if
(
res
.
get
()
!=
ButtonType
.
OK
)
{
return
;
}
}
}
linkStage
.
close
();
Alert
alert
=
new
Alert
(
AlertType
.
CONFIRMATION
);
...
...
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