Content assist processors

Identifier:
org.eclipse.ui.genericeditor.contentAssistProcessors

Since:
1.0

Description:
This extension point is used to contribute content assist processors for adding content assist support to a given content type.

Configuration Markup:

<!ELEMENT extension (contentAssistProcessor)+>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT contentAssistProcessor (enabledWhen?)>

<!ATTLIST contentAssistProcessor

class       CDATA #REQUIRED

contentType IDREF #REQUIRED>


<!ELEMENT enabledWhen (not | or | and | instanceof | test | systemTest | equals | count | with | resolve | adapt | iterate | reference)?>

A core Expression that controls the enabled of the given content assist processor. The viewer, editor, and editor input are registered in the evaluation context as variable: * : use it if your expression requires the viewer. * : use it if your expression requires the document. * : use it if your expression requires the editor (deprecated, not always set). * : use it if your expression requires the editor input (deprecated, not always set).



Examples:
This is an example of a processor being registered for a target definition file type:

<extension point="org.eclipse.ui.genericeditor.contentAssistProcessors">
   <contentAssistProcessor
       class="org.eclipse.ui.genericeditor.examples.TargedDefinitionContentAssist"
       contentType="org.eclipse.pde.targetFile">
      <enabledWhen>
         <with variable="editor">
            <test property="org.eclipse.ui.genericeditor.examples.TargetDefinitionPropertyTester">
            </test>
         </with>
      </enabledWhen>
   </contentAssistProcessor>
</extension>


Copyright (c) 2016 Red Hat Inc. and others This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html/ SPDX-License-Identifier: EPL-2.0