| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.4"?> |
| <!-- |
| #=============================================================================# |
| # Copyright (c) 2007, 2022 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 id="org.eclipse.statet.docmlet.TexDocTemplates" |
| name="TeX Document Templates" |
| schema="schema/DocTemplates.exsd"/> |
| |
| <extension |
| point="org.eclipse.core.runtime.preferences"> |
| <initializer |
| class="org.eclipse.statet.internal.docmlet.tex.ui.TexUIPreferenceInitializer"> |
| </initializer> |
| </extension> |
| |
| <extension |
| point="org.eclipse.statet.ltk.ModelTypes"> |
| <unitType modelTypeId="Ltx" |
| contextKey="editor.default" |
| unitFactory="org.eclipse.statet.internal.docmlet.tex.ui.LtxEditorWorkingCopyFactory"> |
| </unitType> |
| </extension> |
| <extension |
| point="org.eclipse.statet.ltk.ModelAdapters"> |
| <adapterFactory |
| modelTypeId="Ltx" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.TexAdapterFactory"> |
| <adapter |
| type="org.eclipse.statet.ltk.ui.ElementLabelProvider"/> |
| <adapter |
| type="org.eclipse.ui.texteditor.IDocumentProvider"/> |
| </adapterFactory> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| id="org.eclipse.statet.docmlet.commands.ConvertToTexProject" |
| categoryId="org.eclipse.ui.category.project" |
| name="%commands_ConvertToTexProject_name" |
| defaultHandler="org.eclipse.statet.internal.docmlet.tex.ui.ConvertToTexProjectHandler"> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| allPopups="false" |
| locationURI="popup:org.eclipse.ui.projectConfigure?endof=additions"> |
| <command |
| commandId="org.eclipse.statet.docmlet.commands.ConvertToTexProject" |
| style="push"> |
| <visibleWhen |
| checkEnabled="false"> |
| <with |
| variable="activeMenuSelection"> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <adapt |
| type="org.eclipse.core.resources.IProject"> |
| <test |
| property="org.eclipse.core.resources.open"> |
| </test> |
| <not> |
| <test |
| property="org.eclipse.core.resources.projectNature" |
| value="org.eclipse.statet.docmlet.resourceProjects.Tex"> |
| </test> |
| </not> |
| </adapt> |
| </iterate> |
| </with> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.editors"> |
| <editor |
| id="org.eclipse.statet.docmlet.editors.Ltx" |
| name="%editors_Latex_name" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.editors.LtxDocEditor" |
| contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" |
| default="false"> |
| <contentTypeBinding |
| contentTypeId="org.eclipse.statet.docmlet.contentTypes.Ltx"> |
| </contentTypeBinding> |
| </editor> |
| </extension> |
| <extension |
| point="org.eclipse.ui.contexts"> |
| <context |
| id="org.eclipse.statet.docmlet.contexts.TexEditor" |
| parentId="org.eclipse.statet.workbench.contexts.TextEditor" |
| name="%contexts_TexEditing_name"> |
| </context> |
| </extension> |
| |
| <extension |
| point="org.eclipse.statet.ltk.AdvancedContentAssist"> |
| <category |
| id="templates" |
| name="%contentAssist_TemplateCategory_name"> |
| </category> |
| <category |
| id="tex-elements" |
| name="%contentAssist_TexCategory_name"> |
| </category> |
| <computer |
| id="org.eclipse.statet.docmlet.contentAssistComputers.TexTemplateCompletion" |
| contentTypeId="org.eclipse.statet.docmlet.contentTypes.Ltx" |
| categoryId="templates" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.editors.LtxEditorTemplateCompletionComputer"> |
| <partition |
| partitionType="Ltx.Default"> |
| </partition> |
| <partition |
| partitionType="Ltx.Math"> |
| </partition> |
| </computer> |
| <computer |
| id="org.eclipse.statet.docmlet.contentAssistComputers.TexTextElementCompletion" |
| contentTypeId="org.eclipse.statet.docmlet.contentTypes.Ltx" |
| categoryId="tex-elements" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.editors.LtxElementCompletionComputer$Default"> |
| <partition |
| partitionType="Ltx.Default"> |
| </partition> |
| </computer> |
| <computer |
| id="org.eclipse.statet.docmlet.contentAssistComputers.TexMathElementCompletion" |
| contentTypeId="org.eclipse.statet.docmlet.contentTypes.Ltx" |
| categoryId="tex-elements" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.editors.LtxElementCompletionComputer$Math"> |
| <partition |
| partitionType="Ltx.Math"> |
| </partition> |
| </computer> |
| <computer |
| id="org.eclipse.statet.docmlet.contentAssistComputers.TexPathCompletion" |
| contentTypeId="org.eclipse.statet.docmlet.contentTypes.Ltx" |
| categoryId="paths" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.editors.TexPathCompletionComputer"> |
| <partition |
| partitionType="Ltx.Default"> |
| </partition> |
| </computer> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| id="org.eclipse.statet.docmlet.commands.InsertTexEditorTemplate" |
| categoryId="org.eclipse.statet.workbench.commandCategorys.Source" |
| name="%commands_InsertTexEditorTemplate_name" |
| description="%commands_InsertTexEditorTemplate_description"> |
| <commandParameter |
| id="templateId" |
| name="%commands_InsertTexEditorTemplate_TemplatePar_name" |
| values="org.eclipse.statet.internal.docmlet.tex.ui.editors.InsertLtxEditorTemplateParameterValues"/> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| commandId="org.eclipse.statet.docmlet.commands.InsertTexEditorTemplate" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.editors.InsertLtxEditorTemplateHandler"> |
| <enabledWhen> |
| <with |
| variable="activePart"> |
| <adapt |
| type="org.eclipse.statet.ltk.ui.sourceediting.SourceEditor"/> |
| </with> |
| </enabledWhen> |
| </handler> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.editors.templates"> |
| <contextTypeRegistry |
| id="org.eclipse.statet.docmlet.templates.LtxEditor"> |
| </contextTypeRegistry> |
| <contextType |
| id="org.eclipse.statet.docmlet.templates.LtxEditorDefaultContextType" |
| registryId="org.eclipse.statet.docmlet.templates.LtxEditor" |
| name="%templates_TexEditorDefaultContextType_name" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.editors.LtxEditorContextType"> |
| </contextType> |
| <contextType |
| id="org.eclipse.statet.docmlet.templates.LtxEditorMathContextType" |
| registryId="org.eclipse.statet.docmlet.templates.LtxEditor" |
| name="%templates_TexEditorMathContextType_name" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.editors.LtxEditorContextType"> |
| </contextType> |
| <include |
| file="templates/default-ltxeditor-templates.xml" |
| translations="templates/default-ltxeditor-templates.properties"> |
| </include> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectorTargets"> |
| <target |
| id="org.eclipse.statet.docmlet.editorHyperlinks.TexEditorTarget" |
| name="%editorHyperlinks_TexEditorTarget_name"> |
| <context |
| type="org.eclipse.statet.ltk.ui.sourceediting.SourceEditor1"> |
| </context> |
| </target> |
| </extension> |
| <extension |
| point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectors"> |
| <!--hyperlinkDetector |
| id="org.eclipse.statet.docmlet.editorHyperlinks.FileDetector" |
| targetId="org.eclipse.statet.docmlet.editorHyperlinks.TexEditorTarget" |
| name="%editorHyperlinks_FileDetector_name" |
| class="org.eclipse.statet.r.internal.ui.editors.RFileHyperlinkDetector" |
| activate="true"> |
| </hyperlinkDetector --> |
| <hyperlinkDetector |
| id="org.eclipse.statet.docmlet.editorHyperlinks.TexElementDetector" |
| targetId="org.eclipse.statet.docmlet.editorHyperlinks.TexEditorTarget" |
| name="%editorHyperlinks_TexElement_name" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.editors.TexElementHyperlinkDetector" |
| activate="true"> |
| </hyperlinkDetector> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| id="org.eclipse.statet.docmlet.commands.ProcessTexDefault" |
| categoryId="org.eclipse.statet.docmlet.commands.EditDocsCategory" |
| name="%commands_ProcessTex_name" |
| description="%commands_ProcessTex_description"> |
| </command> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| commandId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences" |
| class="org.eclipse.statet.docmlet.tex.ui.actions.TexToggleMarkOccurrencesHandler"> |
| <activeWhen> |
| <with |
| variable="activeEditorId"> |
| <equals |
| value="org.eclipse.statet.docmlet.editors.Ltx"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.ui.edit.text.folding.toggle" |
| class="org.eclipse.statet.docmlet.tex.ui.actions.TexToggleFoldingHandler"> |
| <activeWhen> |
| <with variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.docmlet.editors.Ltx"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.jdt.ui.edit.text.java.open.editor" |
| class="org.eclipse.statet.docmlet.tex.ui.actions.LtxOpenDeclarationHandler"> |
| <activeWhen> |
| <with variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.docmlet.editors.Ltx"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.bindings"> |
| <key |
| commandId="org.eclipse.statet.docmlet.commands.ProcessTexDefault" |
| contextId="org.eclipse.statet.docmlet.contexts.TexEditor" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| sequence="M1+T 3"> |
| </key> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.actionSetPartAssociations"> |
| <actionSetPartAssociation |
| targetID="org.eclipse.ui.edit.text.actionSet.presentation"> |
| <part |
| id="org.eclipse.statet.docmlet.editors.Ltx"> |
| </part> |
| </actionSetPartAssociation> |
| </extension> |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="menu:org.eclipse.ui.main.menu?after=org.eclipse.statet.base.menus.MainStatSource" |
| allPopups="false"> |
| <menu |
| id="tex.symbols" |
| label="%menus_Symbols_label"> |
| <separator |
| name="symbols"> |
| </separator> |
| <dynamic |
| id="org.eclipse.statet.docmlet.menus.TexSymbolsContributions" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.editors.LtxSymbolsMenuContributions"> |
| </dynamic> |
| <separator |
| name="additions"> |
| </separator> |
| <visibleWhen |
| checkEnabled="false"> |
| <with |
| variable="activeEditor"> |
| <instanceof |
| value="org.eclipse.statet.docmlet.tex.ui.editors.LtxEditor"> |
| </instanceof> |
| </with> |
| </visibleWhen> |
| </menu> |
| </menuContribution> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.preferencePages"> |
| <page |
| id="org.eclipse.statet.docmlet.preferencePages.Tex" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.config.TexBasePreferencePage" |
| name="%preferencePages_Tex_name"> |
| </page> |
| <page |
| id="org.eclipse.statet.docmlet.preferencePages.TexCodeStyle" |
| category="org.eclipse.statet.docmlet.preferencePages.Tex" |
| name="%preferencePages_TexCodeStyle_name" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.config.TexCodeStylePreferencePage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceAppearance"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceFormatting"/> |
| </page> |
| <page |
| id="org.eclipse.statet.docmlet.preferencePages.LtxCommand" |
| category="org.eclipse.statet.docmlet.preferencePages.Tex" |
| name="%preferencePages_LtxCommands_name" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.config.LtxCommandsPreferencePage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceContentAssist"/> |
| </page> |
| <page |
| id="org.eclipse.statet.docmlet.preferencePages.TexDocTemplates" |
| category="org.eclipse.statet.docmlet.preferencePages.Tex" |
| name="%preferencePages_TexDocTemplates_name" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.config.DocTemplatesPreferencePage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceTemplates"/> |
| </page> |
| <page |
| id="org.eclipse.statet.docmlet.preferencePages.TexEditor" |
| category="org.eclipse.statet.docmlet.preferencePages.Tex" |
| name="%preferencePages_TexEditor_name" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.config.TexEditorPreferencePage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceEditor"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceAppearance"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.AutoBracket"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.AutoIndent"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.AutoWrap"/> |
| </page> |
| <page |
| id="org.eclipse.statet.docmlet.preferencePages.LtxTextStyles" |
| category="org.eclipse.statet.docmlet.preferencePages.Tex" |
| name="%preferencePages_LtxTextStyles_name" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.config.LtxTextStylesPreferencePage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceEditor"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceAppearance"/> |
| </page> |
| <page |
| id="org.eclipse.statet.docmlet.preferencePages.LtxEditorContentAssist" |
| category="org.eclipse.statet.docmlet.preferencePages.TexEditor" |
| name="%preferencePages_TexEditorContentAssist_name" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.config.LtxContentAssistConfigurationPage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceEditor"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceContentAssist"/> |
| </page> |
| <page |
| id="org.eclipse.statet.docmlet.preferencePages.LtxEditorTemplates" |
| category="org.eclipse.statet.docmlet.preferencePages.Tex" |
| name="%preferencePages_LtxEditorTemplates_name" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.config.LtxEditorTemplatesPreferencePage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceEditor"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceTemplates"/> |
| </page> |
| </extension> |
| |
| <extension |
| point="org.eclipse.compare.contentViewers"> |
| <viewer |
| id="org.eclipse.statet.docmlet.compareContentViewers.Ltx" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.editors.LtxContentViewerCreator"> |
| </viewer> |
| <contentTypeBinding |
| contentViewerId="org.eclipse.statet.docmlet.compareContentViewers.Ltx" |
| contentTypeId="org.eclipse.statet.docmlet.contentTypes.Ltx"/> |
| </extension> |
| <extension |
| point="org.eclipse.compare.contentMergeViewers"> |
| <viewer |
| id="org.eclipse.statet.docmlet.compareContentViewers.LtxMergeViewer" |
| class="org.eclipse.statet.internal.docmlet.tex.ui.editors.LtxMergeViewerCreator"> |
| </viewer> |
| <contentTypeBinding |
| contentMergeViewerId="org.eclipse.statet.docmlet.compareContentViewers.LtxMergeViewer" |
| contentTypeId="org.eclipse.statet.docmlet.contentTypes.Ltx"/> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.editors.annotationTypes"> |
| <type |
| name="org.eclipse.statet.docmlet.tex.editorAnnotations.ErrorProblem" |
| super="org.eclipse.statet.ltk.editorAnnotations.ErrorProblem" |
| markerSeverity="2"> |
| </type> |
| <type |
| name="org.eclipse.statet.docmlet.tex.editorAnnotations.WarningProblem" |
| super="org.eclipse.statet.ltk.editorAnnotations.WarningProblem" |
| markerSeverity="1"> |
| </type> |
| <type |
| name="org.eclipse.statet.docmlet.tex.editorAnnotations.InfoProblem" |
| super="org.eclipse.statet.ltk.editorAnnotations.InfoProblem" |
| markerSeverity="0"> |
| </type> |
| </extension> |
| |
| </plugin> |