86 lines
3.3 KiB
XML
86 lines
3.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?eclipse version="3.4"?>
|
|
<plugin>
|
|
|
|
<!-- Jav-Editor: -->
|
|
<extension
|
|
point="org.eclipse.ui.editors">
|
|
<editor
|
|
class="typinferenzplugin.editor.JavEditor"
|
|
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
|
|
default="true"
|
|
extensions="jav"
|
|
icon="icons/sample.gif"
|
|
id="typinferenzplugin.editors.XMLEditor"
|
|
name="Java-Typinferenz-Editor">
|
|
</editor>
|
|
</extension>
|
|
|
|
<!-- Marker
|
|
Tutorial dazu: http://cubussapiens.hu/2011/05/custom-markers-and-annotations-the-bright-side-of-eclipse/
|
|
-->
|
|
<extension
|
|
id="typinferenzplugin.replacemarker"
|
|
name="TypeReplaceMarker"
|
|
point="org.eclipse.core.resources.markers">
|
|
<super type="org.eclipse.core.resources.problemmarker" />
|
|
<super type="org.eclipse.core.resources.textmarker" />
|
|
</extension>
|
|
|
|
<!-- Src: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Forg_eclipse_ui_editors_annotationTypes.html -->
|
|
<extension
|
|
point="org.eclipse.ui.editors.annotationTypes">
|
|
<type
|
|
name="typinferenzplugin.annotation"
|
|
markerType="typinferenzplugin.replacemarker"
|
|
markerSeverity="1">
|
|
</type>
|
|
</extension>
|
|
|
|
<!-- Src: https://stackoverflow.com/questions/2888207/eclipse-plugin-custom-icon-for-a-marker
|
|
<extension point="org.eclipse.ui.editors.markerAnnotationSpecification">
|
|
<specification
|
|
annotationType="typinferenzplugin.annotation"
|
|
icon="icons/sample.gif"
|
|
verticalRulerPreferenceKey="myMarkerIndicationInVerticalRuler"
|
|
verticalRulerPreferenceValue="true"/>
|
|
</extension>
|
|
-->
|
|
<extension
|
|
point="org.eclipse.ui.editors.markerAnnotationSpecification">
|
|
<specification
|
|
annotationType="typinferenzplugin.annotation"
|
|
icon="icons/sample.gif"
|
|
colorPreferenceKey="org.eclipse.viatra2.slice.color"
|
|
colorPreferenceValue="192,255,192"
|
|
contributesToHeader="false"
|
|
highlightPreferenceKey="org.eclipse.viatra2.slice.highlight"
|
|
highlightPreferenceValue="true"
|
|
includeOnPreferencePage="true"
|
|
label="GTASM Slice Marker"
|
|
overviewRulerPreferenceKey="org.eclipse.viatra2.slice.overview"
|
|
overviewRulerPreferenceValue="true"
|
|
presentationLayer="0"
|
|
textPreferenceKey="org.eclipse.viatra2.slice.text"
|
|
textPreferenceValue="true"
|
|
textStylePreferenceValue="BOX"
|
|
verticalRulerPreferenceKey="org.eclipse.viatra2.slice.ruler"
|
|
verticalRulerPreferenceValue="true">
|
|
</specification>
|
|
</extension>
|
|
|
|
<!-- ExtensionPoint für die QuickFixes der ReplaceMarker Quelle: http://wiki.eclipse.org/FAQ_How_do_I_implement_Quick_Fixes_for_my_own_language%3F -->
|
|
<extension
|
|
point="org.eclipse.ui.menus">
|
|
<menuContribution
|
|
allPopups="true"
|
|
class="typinferenzplugin.editor.RightClickMenu"
|
|
locationURI="popup:#TextEditorContext">
|
|
<dynamic
|
|
class="typinferenzplugin.editor.InsertTypeContribution"
|
|
id="typinferenzplugin.typeinsert.menu">
|
|
</dynamic>
|
|
</menuContribution>
|
|
</extension>
|
|
</plugin>
|