All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.unibo.tuprolog.ui.gui.TuPrologIDEApplication.kt Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package it.unibo.tuprolog.ui.gui

import javafx.application.Application
import javafx.stage.Stage
import kotlin.system.exitProcess

class TuPrologIDEApplication : Application() {
    @Suppress("TooGenericExceptionCaught", "PrintStackTrace", "TooGenericExceptionThrown")
    override fun start(stage: Stage) {
        try {
            TuPrologIDEBuilder(stage).show()
        } catch (e: Throwable) {
            e.printStackTrace()
            throw Error(e)
        }
    }

    override fun stop() {
        exitProcess(0)
    }

    companion object {
        @JvmStatic
        fun main(args: Array) {
            launch(TuPrologIDEApplication::class.java)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy