From Optflux
Jump to: navigation, search

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 167: Line 167:
 
** '''/>''' - 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) ===
  
 
Several additions can be made to the workbench through this extension point.
 
Several additions can be made to the workbench through this extension point.
 
----
 
  
 
==== Adding a new view for a datatype ====
 
==== Adding a new view for a datatype ====
Line 200: Line 195:
 
** '''/>''' - close the view description
 
** '''/>''' - close the view description
 
* '''</extension>''' - close the declaration of the new extension
 
* '''</extension>''' - close the declaration of the new extension
 
----
 
  
 
==== Adding a new operation icon ====
 
==== Adding a new operation icon ====
Line 220: Line 213:
 
** '''<icon-operation''' - beginning the operation icon description
 
** '''<icon-operation''' - beginning the operation icon description
 
*** '''operation="myplugin_mymapoperation""''' - The UID of the operation to which we want to define a new icon
 
*** '''operation="myplugin_mymapoperation""''' - The UID of the operation to which we want to define a new icon
*** '''icon="icons/exec.png"''' - The path to the icon (relative to the root of the plugin source folder)
+
*** '''icon="icons/exec.png"''' - The path to icon (relative to the root of the plugin source folder)
 
** '''/>''' - close the operation icon description
 
** '''/>''' - close the operation icon description
 
* '''</extension>''' - close the declaration of the new extension
 
* '''</extension>''' - close the declaration of the new extension
 
----
 
  
 
==== Adding a new datatype icon ====
 
==== Adding a new datatype icon ====
 
<extension
 
    uid="aibench.workbench"
 
    name="aibench.workbench.view" >
 
    <icon-datatype
 
        datatype="myplugin4optflux.datatypes.MySimpleDatatype"
 
        icon="icons/blocks.png"
 
    />
 
</extension>
 
 
Where:
 
* '''<extension''' - declaration of the beginning of the new extension
 
** '''uid="aibench.workbench"''' - This is the uid of the plug-in that contains the extension point
 
** '''name="aibench.aibench.view"'''  - The extension point to which we will connect
 
** '''<icon-datatype''' - beginning the datatype icon description
 
*** '''datatype="myplugin4optflux.datatypes.MySimpleDatatype""''' - The path to the class of the Datatype to which we want to define the icon
 
*** '''icon="icons/blocks.png"''' - The path to the icon (relative to the root of the plugin source folder)
 
** '''/>''' - close the datatype icon description
 
* '''</extension>''' - close the declaration of the new extension
 
 
----
 
  
 
==== 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) ====
 
YES BUT NOT YET :)
 

Please note that all contributions to Optflux may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Optflux:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)