Framework Java Extensibility Guide
You can add extensions to your custom framework (document type) by using the Extensions tab from the Document Type configuration dialog box.
If you want to customize the Eclipse plugin, you can look at the Eclipse IDE Integration Sample Project to see how an Eclipse plugin can interact with the Oxygen APIs.