val output: Output_Area = new Output_Area(view) { overridedef handle_update(): Unit = dockable.handle_update() overridedef handle_shown(): Unit = split_pane_layout()
}
privateval output_state_button = new JEdit_Options.output_state.GUI
privateval auto_hovering_button = new JEdit_Options.auto_hovering.GUI
privateval auto_update_button = new GUI.Check("Auto update", init = do_update) {
tooltip = "Indicate automatic update following cursor movement" overridedef clicked(state: Boolean): Unit = {
do_update = state if (do_update) handle_update()
}
}
privateval update_button = new GUI.Button("Update") {
tooltip = "Update display according to the command at cursor position" overridedef clicked(): Unit = handle_update()
}
privateval main =
Session.Consumer[Any](getClass.getName) { case _: Session.Global_Options =>
GUI_Thread.later {
output.handle_resize()
output_state_button.load()
auto_hovering_button.load() if (do_update) handle_update()
}
case changed: Session.Commands_Changed => val restriction = if (changed.assignment) None else Some(changed.commands)
GUI_Thread.later { if (do_update) handle_update(restriction = restriction) }
case Session.Caret_Focus =>
GUI_Thread.later { if (do_update) handle_update() }
}
overridedef init(): Unit = {
PIDE.session.global_options += main
PIDE.session.commands_changed += main
PIDE.session.caret_focus += main
output.init()
}
overridedef exit(): Unit = {
PIDE.session.global_options -= main
PIDE.session.commands_changed -= main
PIDE.session.caret_focus -= main
output.exit()
}
}
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.