| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.4"?> |
| <!-- |
| #=============================================================================# |
| # Copyright (c) 2007, 2021 Stephan Wahlbrink and others. |
| # |
| # This program and the accompanying materials are made available under the |
| # terms of the Eclipse Public License 2.0 which is available at |
| # https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 |
| # which is available at https://www.apache.org/licenses/LICENSE-2.0. |
| # |
| # SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 |
| # |
| # Contributors: |
| # Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation |
| #=============================================================================# |
| --> |
| |
| <plugin> |
| |
| <extension |
| point="org.eclipse.core.runtime.preferences"> |
| <initializer |
| class="org.eclipse.statet.internal.yaml.core.YamlCorePreferenceInitializer"> |
| </initializer> |
| </extension> |
| |
| <extension |
| point="org.eclipse.core.contenttype.contentTypes"> |
| <content-type |
| id="org.eclipse.statet.yaml.contentTypes.Yaml" |
| base-type="org.eclipse.core.runtime.text" |
| file-extensions="yaml,yml" |
| name="%contentTypes_Yaml_name" |
| priority="normal"> |
| </content-type> |
| </extension> |
| <extension |
| point="org.eclipse.core.filebuffers.documentSetup"> |
| <participant |
| contentTypeId="org.eclipse.statet.yaml.contentTypes.Yaml" |
| class="org.eclipse.statet.yaml.core.source.doc.YamlDocumentSetupParticipant"> |
| </participant> |
| </extension> |
| |
| <extension |
| point="org.eclipse.statet.ltk.ModelTypes"> |
| <modelType |
| id="Yaml"> |
| </modelType> |
| <contentType |
| contentTypeId="org.eclipse.statet.yaml.contentTypes.Yaml" |
| modelTypeId="Yaml"> |
| </contentType> |
| <unitType modelTypeId="Yaml" |
| contextKey="persistence.default" |
| unitFactory="org.eclipse.statet.internal.yaml.core.model.YamlSourceUnitFactory"> |
| </unitType> |
| </extension> |
| <extension |
| point="org.eclipse.statet.ltk.ModelAdapters"> |
| <adapterFactory |
| modelTypeId="Yaml" |
| class="org.eclipse.statet.internal.yaml.core.ModelAdapterFactory"> |
| <adapter |
| type="org.eclipse.statet.ltk.model.core.ModelManager"/> |
| </adapterFactory> |
| </extension> |
| |
| <extension |
| point="org.eclipse.core.resources.markers" |
| id="org.eclipse.statet.yaml.resourceMarkers.Tasks" |
| name="%resourceMarkers_Task_name"> |
| <super type="org.eclipse.core.resources.taskmarker"/> |
| <persistent value="true"/> |
| </extension> |
| |
| <extension |
| point="org.eclipse.team.core.fileTypes"> |
| <fileTypes |
| extension="yaml" |
| type="text"/> |
| <fileTypes |
| extension="yml" |
| type="text"/> |
| </extension> |
| |
| </plugin> |