Presentation Edit Part Providers

org.eclipse.gmf.runtime.diagram.ui.editpartProviders

[Enter the first release in which this extension point appears.]

The EditPart service is a factory of editparts given a model and a context. An EditPart provider will extend the service by providing for new editparts or existing ones using a different combination of a model and a context.

<!ELEMENT extension (editpartProvider+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT editpartProvider (Priority , object* , context*)>

<!ATTLIST editpartProvider

class CDATA #REQUIRED>

The editpart provider description tag. A provider's description outlines zero or more objects to be referenced by the provider's contexts, and then lists zero or more contexts supported by the provider.



<!ELEMENT Priority EMPTY>

<!ATTLIST Priority

name (Lowest|Low|Medium|High|Highest) >

The description for the priority of the editpart provider



<!ELEMENT object (method* , staticMethod*)>

<!ATTLIST object

id    CDATA #REQUIRED

class CDATA #IMPLIED>

A descriptor of an object that is examined by this provider. The object descriptor can include an optional set of methods to call on the object.



<!ELEMENT method (value* , notValue*)>

<!ATTLIST method

name     CDATA #REQUIRED

value    CDATA #IMPLIED

notValue CDATA #IMPLIED>

A method to call by reflection on the object. The method has a name and a value. The value could be described by its string representation (value & notValue), or as an object "value" or "notValue". The rules of evaluation are as follows: 1- The return value string has to be in the "value" string set. 2- The return value string has to be not in the "notValue" string set. 3- The return value object has to be in the "value" object set. 4- The return value object has to be not in the "notValue" object set.



<!ELEMENT value (method*)>

<!ATTLIST value

class CDATA #IMPLIED>

A descriptor of an object that represents a method's returned value. The descriptor can include an optional set of methods to call on the "value" object.



<!ELEMENT notValue (method*)>

<!ATTLIST notValue

class CDATA #IMPLIED>

A descriptor of an object that represents a method's returned value that is not required. The descriptor can include an optional set of methods to call on the "notValue" object.



<!ELEMENT context EMPTY>

<!ATTLIST context

views                CDATA #IMPLIED

providesRootEditPart (true | false) "false">

A context supported by the editpart provider.



<!ELEMENT staticMethod (value* , notValue*)>

<!ATTLIST staticMethod

name     CDATA #REQUIRED

value    CDATA #IMPLIED

notValue CDATA #IMPLIED>

A static method to call by reflection on the class. The static method has a name and a value. The value could be described by its string representation (value & notValue), or as an object "value" or "notValue". The rules of evaluation are as follows: 1- The return value string has to be in the "value" string set. 2- The return value string has to be not in the "notValue" string set. 3- The return value object has to be in the "value" object set. 4- The return value object has to be not in the "notValue" object set.



[Enter extension point usage example here.]

public interface IEditPartProvider extends IProvider { public IGraphicalEditPart createGraphicEditPart(IView view); }

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