Skip to content
dschadow edited this page Dec 23, 2014 · 2 revisions

Using the JCrypTool Extension Points automatically extend the main menu (like Algorithms) and the Crypto Explorer view. JCrypTool is using a pull mechanism for all crypto plug-ins, meaning that JCrypTool is searching for all crypto plug-ins and automatically integrates them into the matching category. This is a major difference from the normal Eclipse mechanism where plug-ins normally define themselves where they extend menus, toolbars or other parts of the GUI.

In principle JCrypTool can be extended everywhere. The pull mechanism described above only works for crypto plug-ins (no matter for which category). In case you want to extend JCrypTool with another plug-in (e.g. a view or an editor) the normal Eclipse mechanism must be used.

Extending the File Explorer View

The File Explorer view can be extended in a lot of different areas. Besides the context menu the view menu and the view toolbar can be extended as well.

Context menu

The context menu (popup menu) ID is org.jcryptool.fileexplorer.popup. Besides the context menu the views menu and the views toolbar can be extended as well in the following categories:

  • crypto
  • edit
  • delete
  • rename
  • additions

Crypto plug-ins are placed in the crypto area. To extend this area with an additional entry the following Location URI (for Eclipse Commands) must be used: popup:org.jcryptool.fileexplorer.popup?before=crypto. Besides before it is possible to use after as well. Contributions without an exact position specification are added at the end of the menu (in the area additions).

Cryptographic plug-ins that are using the algorithms Extension Point in the org.jcryptool.core.operations plug-in are automatically added to the Encryption/ Decryption menu. Such a plug-in may not extend the context menu with another entry!

Menu

To extend the menu of the File Explorer view use the Location URI menu:org.jcryptool.fileexplorer.views.FileExplorerView.

Toolbar

To extend the toolbar of the File Explorer view use the Location URI toolbar:org.jcryptool.fileexplorer.views.FileExplorerView.