You can create menu and toolbar items for your own Java classes.

On the source file's property sheet, select the Execution tab and set the Executor property to Internal Execution. Then right-click the source file's node, choose Tools | Options to open the Options window, expand the Menu or Toolbars node, right-click the category where you want to place it, and choose Paste | Copy.