Updated plugin code to allow the user to interact with the plugin using
swing.