From Optflux
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 6: | Line 6: | ||
= Global Structure of the plugin.xml file = | = Global Structure of the plugin.xml file = | ||
− | + | * The plugin.xml file begins with the declaration of the '''<plugin start=[value]''' tag. Here, '''[value]''' equals a boolean value (either '''true''' or '''false'''). '''We will use false as default'''. This value is only true for some core plug-ins since they will be loaded first by the plug-in engine. | |
− | |||
− | |||
− | |||
− | * The plugin.xml file begins with the declaration of the '''<plugin start= | ||
** All the information pertaining the plugin will be contained from this level on. | ** All the information pertaining the plugin will be contained from this level on. | ||
* The plug-in is terminated with the closing tag '''</plugin>''' | * The plug-in is terminated with the closing tag '''</plugin>''' | ||
Line 42: | Line 38: | ||
== Lifecycle == | == Lifecycle == | ||
− | The lifecycle section | + | The lifecycle section only rarely used when we need to change the default behavior of our plug-in. |
* It is declared as '''<lifecycleclass> ''[path.to.our.lifecycle.class]''</lifecycleclass>''' | * It is declared as '''<lifecycleclass> ''[path.to.our.lifecycle.class]''</lifecycleclass>''' | ||
Line 163: | Line 159: | ||
** '''<operation-description''' - beginning the operation description | ** '''<operation-description''' - beginning the operation description | ||
*** '''name="My Operation"''' - The name of the operation (this will be used in the OptFlux menus) | *** '''name="My Operation"''' - The name of the operation (this will be used in the OptFlux menus) | ||
− | *** '''uid= "myplugin_myoperation"''' - The UID of our operation (this must be unique and will be useful in the future | + | *** '''uid= "myplugin_myoperation"''' - The UID of our operation (this must be unique and will be useful in the future) |
*** '''path="20@Plugins/1@MyOperations"''' - The path for our operation to be placed in the OptFlux menus (position@menu/position@submenu) | *** '''path="20@Plugins/1@MyOperations"''' - The path for our operation to be placed in the OptFlux menus (position@menu/position@submenu) | ||
** '''/>''' - close the operation description | ** '''/>''' - close the operation description | ||
* '''</extension>''' - close the declaration of the new extension | * '''</extension>''' - close the declaration of the new extension | ||
− | |||
− | |||
− | |||
=== WORKBENCH: aibench.workbench.view (To declare new views or other graphical components) === | === WORKBENCH: aibench.workbench.view (To declare new views or other graphical components) === | ||
− | |||
− | |||
− | |||
− | |||
==== Adding a new view for a datatype ==== | ==== Adding a new view for a datatype ==== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==== Adding a new operation icon ==== | ==== Adding a new operation icon ==== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==== Adding a new datatype icon ==== | ==== Adding a new datatype icon ==== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==== Adding a custom-made GUI for an operation (override default dynamic generation of input dialog) ==== | ==== Adding a custom-made GUI for an operation (override default dynamic generation of input dialog) ==== | ||
− | |||
− |