[Editor] Add tooltip to JavaClassParameter
This commit is contained in:
@@ -7,6 +7,7 @@ import javafx.scene.input.MouseEvent
|
|||||||
import tornadofx.Scope
|
import tornadofx.Scope
|
||||||
import tornadofx.find
|
import tornadofx.find
|
||||||
import tornadofx.toProperty
|
import tornadofx.toProperty
|
||||||
|
import tornadofx.tooltip
|
||||||
|
|
||||||
class JavaClassParameter(
|
class JavaClassParameter(
|
||||||
key: String,
|
key: String,
|
||||||
@@ -19,6 +20,10 @@ class JavaClassParameter(
|
|||||||
override val editor = Label(initialValue).apply {
|
override val editor = Label(initialValue).apply {
|
||||||
textProperty().bind(editorValueProperty)
|
textProperty().bind(editorValueProperty)
|
||||||
|
|
||||||
|
tooltip {
|
||||||
|
textProperty().bind(editorValueProperty)
|
||||||
|
}
|
||||||
|
|
||||||
addEventHandler(MouseEvent.MOUSE_CLICKED) {
|
addEventHandler(MouseEvent.MOUSE_CLICKED) {
|
||||||
if (it.button == MouseButton.PRIMARY) {
|
if (it.button == MouseButton.PRIMARY) {
|
||||||
find<SelectJavaClassFragment>(Scope()).apply {
|
find<SelectJavaClassFragment>(Scope()).apply {
|
||||||
|
|||||||
Reference in New Issue
Block a user