<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<!-- ====================================================================== -->
<!-- Copyright (c) 2016, 2017 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-2.0/                                 -->
<!--                                                                        -->
<!-- SPDX-License-Identifier: EPL-2.0                                       -->
<!--                                                                        -->
<!-- Contributors:                                                          -->
<!--     Sopot Cela & Mickael Istria (Red Hat Inc). -initial implementation -->
<!--     Lucas Bullen (Red Hat Inc.) - Bug 508829 custom reconciler support -->
<!--                                 - Bug 521382 default highlighter       -->
<!-- ====================================================================== -->
<plugin>
	<extension
			point="org.eclipse.ui.genericeditor.contentAssistProcessors">
		<contentAssistProcessor
			class="org.eclipse.ui.genericeditor.tests.contributions.BarContentAssistProcessor"
			contentType="org.eclipse.ui.genericeditor.tests.content-type">
		</contentAssistProcessor>
		<contentAssistProcessor
			class="org.eclipse.ui.genericeditor.tests.contributions.LongRunningBarContentAssistProcessor"
			contentType="org.eclipse.ui.genericeditor.tests.specialized-content-type">
		</contentAssistProcessor>
		<contentAssistProcessor
	        class="org.eclipse.ui.genericeditor.tests.contributions.BarContentAssistProcessor"
	        contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
	      <enabledWhen>
	        <test
	            forcePluginActivation="true"
	            property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
	        </test>
	      </enabledWhen>
		</contentAssistProcessor>
	<contentAssistProcessor
		class="org.eclipse.ui.genericeditor.tests.contributions.ToUpperCaseContentAssistProcessor"
		contentType="org.eclipse.ui.genericeditor.tests.content-type">
	</contentAssistProcessor>
	</extension>
	<extension
			point="org.eclipse.ui.genericeditor.hoverProviders">
		<hoverProvider
        class="org.eclipse.ui.genericeditor.tests.contributions.AlrightyHoverProvider"
        contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
     		<enabledWhen>
        		<test
              			forcePluginActivation="true"
              			property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
        		</test>
			</enabledWhen>
		</hoverProvider>
		<hoverProvider
        		class="org.eclipse.ui.genericeditor.tests.contributions.AlrightyHoverProvider"
       			contentType="org.eclipse.ui.genericeditor.tests.content-type">
		</hoverProvider>
		<hoverProvider
			class="org.eclipse.ui.genericeditor.tests.contributions.WorldHoverProvider"
			contentType="org.eclipse.ui.genericeditor.tests.content-type-bar">
		</hoverProvider>
		<hoverProvider
			class="org.eclipse.ui.genericeditor.tests.contributions.HelloHoverProvider"
			contentType="org.eclipse.ui.genericeditor.tests.specialized-content-type-bar">
		</hoverProvider>
		<hoverProvider
        		class="org.eclipse.ui.genericeditor.tests.contributions.WorldHoverProvider"
				contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
     		<enabledWhen>
        		<not>
           			<test
                 			forcePluginActivation="true"
                 			property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
           			</test>
        		</not>
			</enabledWhen>
  		</hoverProvider>
	</extension>
	<extension
			point="org.eclipse.ui.genericeditor.reconcilers">
		<reconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.TheReconcilerFirst"
			contentType="org.eclipse.ui.genericeditor.tests.content-type-bar">
		</reconciler>
		<reconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.TheReconcilerSecond"
			contentType="org.eclipse.ui.genericeditor.tests.specialized-content-type-bar">
		</reconciler>
		<reconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.TheReconcilerFirst"
			contentType="org.eclipse.ui.genericeditor.tests.content-type">
		</reconciler>
  		<reconciler
        		class="org.eclipse.ui.genericeditor.tests.contributions.TheReconcilerFirst"
        		contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
     		<enabledWhen>
        		<test
              			forcePluginActivation="true"
              			property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
        		</test>
     		</enabledWhen>
  		</reconciler>
  		<reconciler
        		class="org.eclipse.ui.genericeditor.tests.contributions.TheReconcilerSecond"
       			contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
     		<enabledWhen>
        		<not>
           			<test
                 			forcePluginActivation="true"
                 			property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
           			</test>
        		</not>
     		</enabledWhen>
  		</reconciler>
	</extension>
	<extension
			point="org.eclipse.ui.genericeditor.presentationReconcilers">
		<presentationReconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.ThePresentationReconcilerBlue"
			contentType="org.eclipse.ui.genericeditor.tests.content-type">
		</presentationReconciler>
		<presentationReconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.ThePresentationReconcilerGreen"
			contentType="org.eclipse.ui.genericeditor.tests.specialized-content-type">
		</presentationReconciler>
		<presentationReconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.ThePresentationReconcilerRed"
			contentType="org.eclipse.ui.genericeditor.tests.sub-specialized-content-type">
		</presentationReconciler>
  		<presentationReconciler
        		class="org.eclipse.ui.genericeditor.tests.contributions.ThePresentationReconcilerBlue"
        		contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
     		<enabledWhen>
        		<test
              			forcePluginActivation="true"
              			property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
        		</test>
     		</enabledWhen>
  		</presentationReconciler>
	</extension>
	<extension
			point="org.eclipse.ui.ide.markerResolution">
		<markerResolutionGenerator
			class="org.eclipse.ui.genericeditor.tests.contributions.MarkerResolutionGenerator"
			markerType="org.eclipse.core.resources.problemmarker">
		</markerResolutionGenerator>
	</extension>
	<extension
			point="org.eclipse.core.contenttype.contentTypes">
		<content-type
			base-type="org.eclipse.core.runtime.text"
			file-names="foo.txt"
			id="org.eclipse.ui.genericeditor.tests.content-type"
			name="Generic Editor Test content-type"
			priority="normal">
		</content-type>
		<content-type
			base-type="org.eclipse.ui.genericeditor.tests.content-type"
			file-names="foo.txt"
			id="org.eclipse.ui.genericeditor.tests.specialized-content-type"
			name="Specialized Generic Editor content-type"
			priority="normal">
		</content-type>
		<content-type
			base-type="org.eclipse.ui.genericeditor.tests.specialized-content-type"
			file-names="foo.txt"
			id="org.eclipse.ui.genericeditor.tests.sub-specialized-content-type"
			name="Sub-Specialized Generic Editor content-type"
			priority="normal">
		</content-type>
		<content-type
			base-type="org.eclipse.ui.genericeditor.tests.content-type"
			file-names="foobar.txt"
			id="org.eclipse.ui.genericeditor.tests.specialized-content-type-foobartxt"
			name="Specialized Generic Editor content-type for &apos;foobar.txt&apos;"
			priority="normal">
		</content-type>
		<content-type
			base-type="org.eclipse.core.runtime.text"
			file-names="bar.txt"
			id="org.eclipse.ui.genericeditor.tests.content-type-bar"
			name="Generic Editor Test content-type for &apos;bar.txt&apos;"
			priority="normal">
		</content-type>
		<content-type
			base-type="org.eclipse.ui.genericeditor.tests.content-type-bar"
			file-names="bar.txt"
			id="org.eclipse.ui.genericeditor.tests.specialized-content-type-bar"
			name="Specialized Generic Editor content-type for &apos;bar.txt&apos;"
			priority="normal">
		</content-type>
		<content-type
			base-type="org.eclipse.core.runtime.text"
			file-names="enabledWhen.txt"
			id="org.eclipse.ui.genericeditor.tests.enabled-when-content-type"
			name="enabledWhen content-type for &apos;enabledWhen.txt&apos;"
			priority="normal">
		</content-type>
	</extension>
	<extension
			point="org.eclipse.ui.genericeditor.autoEditStrategies">
		<autoEditStrategy
			class="org.eclipse.ui.genericeditor.tests.contributions.TheAutoEditStrategyFirst"
			contentType="org.eclipse.ui.genericeditor.tests.content-type">
		</autoEditStrategy>
		<autoEditStrategy
			class="org.eclipse.ui.genericeditor.tests.contributions.TheAutoEditStrategySecond"
			contentType="org.eclipse.ui.genericeditor.tests.specialized-content-type">
		</autoEditStrategy>
		<autoEditStrategy
			class="org.eclipse.ui.genericeditor.tests.contributions.TheAutoEditStrategyThird"
			contentType="org.eclipse.ui.genericeditor.tests.sub-specialized-content-type">
		</autoEditStrategy>
		<autoEditStrategy
			class="org.eclipse.ui.genericeditor.tests.contributions.TheAutoEditStrategyFirst"
			contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
     		<enabledWhen>
        		<test
              			forcePluginActivation="true"
             			property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
        		</test>
     		</enabledWhen>
		</autoEditStrategy>
	</extension>
	<extension
			point="org.eclipse.ui.genericeditor.highlightReconcilers">
		<highlightReconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.HighlightReconciler"
			contentType="org.eclipse.ui.genericeditor.tests.content-type-bar">
		</highlightReconciler>
		<highlightReconciler
				class="org.eclipse.ui.genericeditor.tests.contributions.HighlightReconciler"
				contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
			<enabledWhen>
				<test
						forcePluginActivation="true"
						property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
				</test>
			</enabledWhen>
		</highlightReconciler>
	</extension>
	<extension
			point="org.eclipse.ui.genericeditor.foldingReconcilers">
		<foldingReconciler
			class="org.eclipse.ui.genericeditor.tests.contributions.FoldingReconciler"
			contentType="org.eclipse.ui.genericeditor.tests.content-type-bar">
		</foldingReconciler>
		<foldingReconciler
				class="org.eclipse.ui.genericeditor.tests.contributions.FoldingReconciler"
				contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
			<enabledWhen>
				<test
						forcePluginActivation="true"
						property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
				</test>
			</enabledWhen>
		</foldingReconciler>
	</extension>
	<extension
			point="org.eclipse.core.expressions.propertyTesters">
    	<propertyTester
				class="org.eclipse.ui.genericeditor.tests.contributions.EnabledPropertyTester"
				id="org.eclipse.ui.genericeditor.tests.contributions.enabled"
				namespace="org.eclipse.ui.genericeditor.tests.contributions"
				properties="enabled"
				type="org.eclipse.ui.internal.genericeditor.ExtensionBasedTextEditor">
    	</propertyTester>
	</extension>
    <extension
          point="org.eclipse.ui.genericeditor.icons">
        <icon
             contentType="org.eclipse.ui.genericeditor.tests.content-type"
             icon="icons/newfile_wiz.png"/>
        <icon
             contentType="org.eclipse.ui.genericeditor.tests.specialized-content-type"
             icon="icons/newfolder_wiz.png"/>
        <icon
             contentType="org.eclipse.ui.genericeditor.tests.sub-specialized-content-type"
             icon="platform:/plugin/org.eclipse.ui.ide/icons/full/etool16/newprj_wiz.png"/>
    </extension>
    <extension
          point="org.eclipse.ui.genericeditor.quickAssistProcessors">
       <quickAssistProcessor
             class="org.eclipse.ui.genericeditor.tests.contributions.MockQuickAssistProcessor"
             contentType="org.eclipse.ui.genericeditor.tests.content-type">
       </quickAssistProcessor>
    </extension>
	<extension
			point="org.eclipse.ui.genericeditor.textDoubleClickStrategies">
		<textDoubleClickStrategy
			class="org.eclipse.ui.genericeditor.tests.contributions.WideDoubleClickStrategy"
			contentType="org.eclipse.ui.genericeditor.tests.enabled-when-content-type">
     		<enabledWhen>
        		<test
              			forcePluginActivation="true"
             			property="org.eclipse.ui.genericeditor.tests.contributions.enabled">
        		</test>
     		</enabledWhen>
		</textDoubleClickStrategy>
	</extension>
</plugin>
