Editor Configuration

org.eclipse.wst.sse.ui.editorConfiguration

1.0

The SSE StructuredTextEditor is intended to be as flexible as possible. Much of its design centers around the notion of defining and redefining its behavior and appearance based on the content type of its input. This extension point allows clients to provide an editor configuration to the StructuredTextEditor without having to subclass the editor.

<!ELEMENT extension (sourceViewerConfiguration* , contentOutlineConfiguration* , propertySheetConfiguration* , provisionalConfiguration* , provisionalDefinition*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT sourceViewerConfiguration EMPTY>

<!ATTLIST sourceViewerConfiguration

target CDATA #REQUIRED

class  CDATA #REQUIRED>

Defines the source viewer configuration, affecting syntax highlighting, content assist, hover help, and more in the current editor.



<!ELEMENT contentOutlineConfiguration EMPTY>

<!ATTLIST contentOutlineConfiguration

target CDATA #REQUIRED

class  CDATA #REQUIRED>

Defines how the current editor's input maps to elements with in a Tree control, as well as selection filtering, toolbar and menu contributions, etc in the Outline view.



<!ELEMENT propertySheetConfiguration EMPTY>

<!ATTLIST propertySheetConfiguration

target CDATA #REQUIRED

class  CDATA #REQUIRED>

Defines how the current editor's input maps to properties in a Table control, as well as toolbar contributions, etc in the Properties view.



<!ELEMENT provisionalConfiguration EMPTY>

<!ATTLIST provisionalConfiguration

target CDATA #REQUIRED

type   CDATA #REQUIRED

class  CDATA #REQUIRED>

Declares a class fulfilling the requirements of a type to be used for the given target(s).
Note: this is not API and is only used for provisional configuration types.



<!ELEMENT provisionalDefinition EMPTY>

<!ATTLIST provisionalDefinition

type   CDATA #REQUIRED

value  CDATA #IMPLIED

target CDATA #REQUIRED>

Defines a value for a type to be used for the given target(s).
Note: this is not API and is only used for provisional configuration types.



   

<extension point=

"org.eclipse.wst.sse.ui.editorConfiguration"

>

<!-- associating a source viewer configuration to an input's content type-->

<sourceViewerConfiguration class=

"org.eclipse.wst.html.ui.StructuredTextViewerConfigurationHTML"

target=

"org.eclipse.wst.html.core.htmlsource"

/>

<!-- associating an outline configuration to an input's content type -->

<contentOutlineConfiguration class=

"org.eclipse.wst.sse.xml.ui.views.contentoutline.XMLContentOutlineConfiguration"

target=

"org.eclipse.core.runtime.xml"

/>

<!-- associating a property sheet configuration to multiple content types -->

<propertySheetConfiguration class=

"org.eclipse.wst.xml.ui.views.properties.XMLPropertySheetConfiguration"

target=

"org.eclipse.wst.sse.contenttype.xml, org.eclipse.wst.html.core.htmlsource, org.eclipse.jst.jsp.core.jspsource"

/>

</extension>

see org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration, org.eclipse.wst.sse.ui.views.contentoutline.ContentOutlineConfiguration, org.eclipse.wst.sse.ui.views.properties.StructuredPropertySheetConfiguration.