This section shows all the steps needed to define the Insert Section action. We assume the
icon files (Section16.png) for
the menu item and
(Section20.png) for the toolbar, are already available. Although you
could use the same icon size for both menu and toolbar, usually the icons from the toolbars
are larger than the ones found in the menus. These files should be placed in the
frameworks / sdf directory.
If the images are bundled in a jar archive together with some Java operations implementation for instance, it might be convenient for you to refer the images not by the file name, but by their relative path location in the class-path.
If the image file Section20.png is located in the images directory inside the jar archive, you can refer to it by using /images/Section20.png. The jar file must be added into the Classpath list.
The shortcut is enabled only by adding the action to the main menu of the Author mode which contains all the actions that the author will have in a menu for the current document type.
local-name()='section' or local-name()='book' or local-name()='article'
<section xmlns= "http://www.oxygenxml.com/sample/documentation"> <title/> </section>
insertLocation - leave it empty. This means the location will be at the caret position.
insertPosition - select "Inside".