Created
October 14, 2021 00:22
-
-
Save krisrice/481d16b28ce226bdb6efe18e3463e6e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set scan off | |
set define off | |
script | |
var StatusBarComponent = Java.type("oracle.dbtools.raptor.console.StatusBarComponent"); | |
var component = new StatusBarComponent() { | |
getName: function() { | |
return "cmdstatus"; | |
}, | |
getDescription: function() { | |
return "cmdstatus "; | |
}, | |
update: function(context) { | |
if ( ctx.getProperty("sqldev.last.err.message") ) { | |
context.append("๐"); | |
} else { | |
context.append("๐"); | |
} | |
} | |
}; | |
ctx.getConsoleService().registerStatusBarComponent(component); | |
/ | |
set statusbar add cmdstatus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment