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