Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "E4/Scripting/Metadata"
(→What) |
(→Menu) |
||
Line 14: | Line 14: | ||
= Menu = | = Menu = | ||
+ | === What === | ||
+ | This metadata classify script into categories (Script Set). This categories are used for UI integration. This for example used for integration into the view and into the contextual menu. | ||
+ | |||
+ | === Example === | ||
+ | <code> | ||
+ | '''Menu: Examples > Modeling > Simple EMF API''' <br /> | ||
+ | </code> | ||
+ | The '>' character is used to create a new sub category. | ||
+ | |||
+ | === Result === | ||
+ | [[File:Menu_Metadata.png]] | ||
+ | [[File:Menu_Metadata_contextual_menu.png]] | ||
= Enable When = | = Enable When = |
Revision as of 05:39, 18 November 2013
Metadatas are informations you can add into the header of your script in order to add extra inforamtion for UI or running a script. This page will explain you the metadata available.
Contents
Description
What
This metadata describes what the current script do. This metadata is use to display tooltip into the UI.
Example
Description : {This script is used to convert the selected IProject to script project.}
Result
Menu
What
This metadata classify script into categories (Script Set). This categories are used for UI integration. This for example used for integration into the view and into the contextual menu.
Example
Menu: Examples > Modeling > Simple EMF API
The '>' character is used to create a new sub category.