Operation

Identifier:
net.refractions.udig.ui.Operation

Since:
UDIG 1.0

Description:
Contribute operations to the user interface; will show up in menu bars, toolbars and context menus as appropriate.

Configuration Markup:

<!ELEMENT extension (category* , operation*)+>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT category EMPTY>

<!ATTLIST category

id          CDATA #REQUIRED

name        CDATA #REQUIRED

menuPath    CDATA #IMPLIED

context     CDATA #IMPLIED

description CDATA #IMPLIED

>

A way of organizing operations in menus. The operation menus will be organized into submenus for each category of operations. For example: "net.refractions.udig.ui.edit"



<!ELEMENT operation (enablement?)>

<!ATTLIST operation

id          CDATA #REQUIRED

name        CDATA #REQUIRED

description CDATA #IMPLIED

icon        CDATA #IMPLIED

class       CDATA #REQUIRED

targetClass CDATA #REQUIRED

categoryId  CDATA #IMPLIED

menuPath    CDATA #IMPLIED

enablesFor  CDATA "1"

>

An definition for an operation on a data element. Operations can be performed on objects including but not limited to Layers, FeatureSources/Stores, IGeoResources, etc...

The type object that the operation operates on is declared in this extension point and when the selection includes objects that the operation can be performed on, a menu item will be enabled in the Operations menu and available in the context menu in the view where the selection occurred



<!ELEMENT and (adaptsTo* , property* , and* , or* , not*)>



<!ELEMENT or (adaptsTo* , property* , and* , or* , not*)>



<!ELEMENT not (adaptsTo | property | and | or | not)>



<!ELEMENT enablement (adaptsTo | and | or | not | property)>

Use enablement to sepcify when the operation is avaialble.



<!ELEMENT adaptsTo EMPTY>

<!ATTLIST adaptsTo

target CDATA #IMPLIED

>


<!ELEMENT property EMPTY>

<!ATTLIST property

propertyId    IDREF #REQUIRED

expectedValue CDATA #REQUIRED

name          CDATA #IMPLIED

target        CDATA #IMPLIED

>

Declares the propertyName that a condition element operates on.



Examples:
[Enter extension point usage example here.]

API Information:
[Enter API information here.]

Supplied Implementation:
[Enter information about supplied implementation of this extension point.]