Oracle SqlDeveloper/Jdeveloper extension
研究sqldeveloper的extension花了很多天的时间,这方面的文档不多,全靠jd反编译Oracle的class研究的。
Jdeveloper的扩展性设计的比较不错,可以灵活地对现有的产品进行扩展,研究过程中也学到不少东西。
只是Oracle的相关文档太少。
查阅的部分参考资料记录如下:
http://www.oracle.com/technetwork/developer-tools/sql-developer/arch-v1-087005.html
# sqldeveloper extension examples
# jdev ext dev demo
# jdev help on extension dev.
http://docs.oracle.com/cd/E16162_01/doc.1112/e20067/toc.htm
http://docs.oracle.com/cd/E16162_01/doc.1112/e20067/dev_extensions_jdev.htm#BABFGDBC # How to Develop Commands
http://docs.oracle.com/cd/E24382_01/doc.1112/e20067/dev_extensions_jdev.htm
# Javadoc for Oracle Extension SDK
http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17493/toc.htm
http://www.oracle.com/technetwork/developer-tools/jdev/samples-083838.html
# How To Create a Java Defined Extension
https://wikis.oracle.com/display/oraclesqldeveloper/How+To+Create+a+Java+Defined+Extension
A SQL Developer extension consists of 5 main parts
extension.xml which is the initial hook by which the extension is defined and loaded into SQL Developer.
Extension Addin Java class, which provides additional hooks by which the extension is defined and loaded into SQL Developer programatically.
Java classes which provided the extensions functionality
XML files which provide a neater mechanism for extending certain parts of SQL Developer like the navigator
Resource files like icon images
Java extensions are deployed into jar files, which when placed in SQL Developers extension directory are loaded during SQL Developers next start up.