Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 311b0a822773b44ac1d3a232f29f6d51ed833b5c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                                                            
                                       

































































































































                                                                                                                                                     































                                                                                                                                       
                   































                                                                                                                                    














































































































                                                                                                                                                                        






                                                                        
         
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>

<plugin>
   <extension-point id="quickfix" name="Room Quickfix Provider" schema="schema/quickfix.exsd"/>

    <extension
            point="org.eclipse.ui.editors">
        <editor
              class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.etrice.core.ui.editor.RoomEditor"
              contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
              default="true"
              extensions="room"
              icon="icons/Room_doc.ico"
              id="org.eclipse.etrice.core.Room"
              name="Room Editor">
        </editor>
    </extension>
    <extension
        point="org.eclipse.ui.handlers">
        <handler
            class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler"
            commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration">
            <activeWhen>
                <reference
                    definitionId="org.eclipse.etrice.core.Room.Editor.opened">
                </reference>
            </activeWhen>
        </handler>
        <handler
            class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler"
            commandId="org.eclipse.etrice.core.Room.validate">
         <activeWhen>
            <reference
                    definitionId="org.eclipse.etrice.core.Room.Editor.opened">
            </reference>
         </activeWhen>
      </handler>
    </extension>
    <extension point="org.eclipse.core.expressions.definitions">
        <definition id="org.eclipse.etrice.core.Room.Editor.opened">
            <and>
                <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/>
                <with variable="activeEditor">
                    <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" 
                        value="org.eclipse.etrice.core.Room" 
                        forcePluginActivation="true"/>
                </with>        
            </and>
        </definition>
    </extension>
    <extension
            point="org.eclipse.ui.preferencePages">
        <page
        	category="org.eclipse.etrice.ui.common.preferences.ETricePreferencePage"
            class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
            id="org.eclipse.etrice.core.Room"
            name="Room">
            <keywordReference id="org.eclipse.etrice.core.ui.keyword_Room"/>
        </page>
        <page
        	category="org.eclipse.etrice.ui.common.preferences.ETricePreferencePage"
            class="org.eclipse.etrice.core.ui.preferences.ValidationExtensionPreferences"
            id="org.eclipse.etrice.core.Room.ValidationExtensions"
            name="Validation Extensions">
            <keywordReference id="org.eclipse.etrice.core.ui.keyword_Room"/>
        </page>
        <page
            category="org.eclipse.etrice.core.Room"
            class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage"
            id="org.eclipse.etrice.core.Room.coloring"
            name="Syntax Coloring">
            <keywordReference id="org.eclipse.etrice.core.ui.keyword_Room"/>
        </page>
        <page
            category="org.eclipse.etrice.core.Room"
            class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage"
            id="org.eclipse.etrice.core.Room.templates"
            name="Templates">
            <keywordReference id="org.eclipse.etrice.core.ui.keyword_Room"/>
        </page>
    </extension>
    <extension
            point="org.eclipse.ui.propertyPages">
        <page
            class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
            id="org.eclipse.etrice.core.Room"
            name="Room">
            <keywordReference id="org.eclipse.etrice.core.ui.keyword_Room"/>
            <enabledWhen>
	            <adapt type="org.eclipse.core.resources.IProject"/>
			</enabledWhen>
	        <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/>
        </page>
    </extension>
    <extension
        point="org.eclipse.ui.keywords">
        <keyword
            id="org.eclipse.etrice.core.ui.keyword_Room"
            label="Room"/>
    </extension>
    <extension
         point="org.eclipse.ui.commands">
      <command
            description="Trigger expensive validation"
            id="org.eclipse.etrice.core.Room.validate"
            name="Validate">
      </command>
    </extension>
    <extension point="org.eclipse.ui.menus">
        <menuContribution
            locationURI="popup:#TextEditorContext?after=group.edit">
             <command
                 commandId="org.eclipse.etrice.core.Room.validate"
                 style="push"
                 tooltip="Trigger expensive validation">
            <visibleWhen checkEnabled="false">
                <reference
                    definitionId="org.eclipse.etrice.core.Room.Editor.opened">
                </reference>
            </visibleWhen>
         </command>  
         </menuContribution>
    </extension>
    <extension point="org.eclipse.ui.menus">
		<menuContribution locationURI="popup:#TextEditorContext?endof=group.find">
			<command commandId="org.eclipse.xtext.ui.editor.FindReferences">
				<visibleWhen checkEnabled="false">
                	<reference definitionId="org.eclipse.etrice.core.Room.Editor.opened">
                	</reference>
            	</visibleWhen>
			</command>
		</menuContribution>
	</extension>
	<extension point="org.eclipse.ui.handlers">
	    <handler
            class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler"
            commandId="org.eclipse.xtext.ui.editor.FindReferences">
            <activeWhen>
                <reference
                    definitionId="org.eclipse.etrice.core.Room.Editor.opened">
                </reference>
            </activeWhen>
        </handler>
    </extension>
     
    <extension
         point="org.eclipse.ui.commands">
      <command
            description="Migrate model to transition data with generic name"
            id="org.eclipse.etrice.core.room.ui.migratetransitiondata"
            name="Migrate Transition Data Style">
      </command>
    </extension>
    <extension point="org.eclipse.ui.menus">
		<menuContribution locationURI="popup:#TextEditorContext?after=org.eclipse.etrice.core.Room.validate">
			<command
         commandId="org.eclipse.etrice.core.room.ui.migratetransitiondata"
         icon="icons/correction_change.gif">
				<visibleWhen checkEnabled="false">
                	<reference definitionId="org.eclipse.etrice.core.Room.Editor.opened">
                	</reference>
            	</visibleWhen>
			</command>
		</menuContribution>
	</extension>
	<extension point="org.eclipse.ui.handlers">
	    <handler
            class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.etrice.core.ui.handlers.MigrateTransitionData"
            commandId="org.eclipse.etrice.core.room.ui.migratetransitiondata">
            <activeWhen>
                <reference
                    definitionId="org.eclipse.etrice.core.Room.Editor.opened">
                </reference>
            </activeWhen>
        </handler>
    </extension>   
     
    <extension
         point="org.eclipse.ui.commands">
      <command
            description="Migrate model to smart action codes"
            id="org.eclipse.etrice.core.room.ui.migrateactioncodes"
            name="Migrate to Smart Action Codes">
      </command>
    </extension>
    <extension point="org.eclipse.ui.menus">
		<menuContribution locationURI="popup:#TextEditorContext?after=org.eclipse.etrice.core.fsm.FSM.validate">
			<command
         commandId="org.eclipse.etrice.core.room.ui.migrateactioncodes"
         icon="icons/correction_change.gif">
				<visibleWhen checkEnabled="false">
                	<reference definitionId="org.eclipse.etrice.core.Room.Editor.opened">
                	</reference>
            	</visibleWhen>
			</command>
		</menuContribution>
	</extension>
	<extension point="org.eclipse.ui.handlers">
	    <handler
            class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.etrice.core.ui.handlers.MigrateActionCodes"
            commandId="org.eclipse.etrice.core.room.ui.migrateactioncodes">
            <activeWhen>
                <reference
                    definitionId="org.eclipse.etrice.core.Room.Editor.opened">
                </reference>
            </activeWhen>
        </handler>
    </extension>

<!-- adding resource factories -->

	<extension
		point="org.eclipse.emf.ecore.extension_parser">
		<parser
			class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory"
			type="room">
		</parser>
	</extension>
	<extension point="org.eclipse.xtext.extension_resourceServiceProvider">
        <resourceServiceProvider
            class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider"
            uriExtension="room">
        </resourceServiceProvider>
    </extension>


	<!-- Quick Outline -->
	<extension
		point="org.eclipse.ui.handlers">
		<handler 
			class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler"
			commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline">
			<activeWhen>
				<reference
					definitionId="org.eclipse.etrice.core.Room.Editor.opened">
				</reference>
			</activeWhen>
		</handler>
	</extension>
	<extension
		point="org.eclipse.ui.commands">
		<command
			description="Open the quick outline."
			id="org.eclipse.xtext.ui.editor.outline.QuickOutline"
			name="Quick Outline">
		</command>
	</extension>
	<extension point="org.eclipse.ui.menus">
		<menuContribution
			locationURI="popup:#TextEditorContext?after=group.open">
			<command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"
				style="push"
				tooltip="Open Quick Outline">
				<visibleWhen checkEnabled="false">
					<reference definitionId="org.eclipse.etrice.core.Room.Editor.opened"/>
				</visibleWhen>
			</command>
		</menuContribution>
	</extension>
   <!-- quickfix marker resolution generator -->
   <extension
         point="org.eclipse.ui.ide.markerResolution">
      <markerResolutionGenerator
            class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator">
      </markerResolutionGenerator>
   </extension>
   	<!-- Rename Refactoring -->
	<extension point="org.eclipse.ui.handlers">
		<handler 
			class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.IRenameElementHandler"
			commandId="org.eclipse.xtext.ui.refactoring.RenameElement">
			<activeWhen>
				<reference
					definitionId="org.eclipse.etrice.core.Room.Editor.opened">
				</reference>
			</activeWhen>
		</handler>
	</extension>
    <extension point="org.eclipse.ui.menus">
         <menuContribution
            locationURI="popup:#TextEditorContext?after=group.edit">
         <command commandId="org.eclipse.xtext.ui.refactoring.RenameElement"
               style="push">
            <visibleWhen checkEnabled="false">
               <reference
                     definitionId="org.eclipse.etrice.core.Room.Editor.opened">
               </reference>
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>
   <extension point="org.eclipse.ui.preferencePages">
	    <page
	        category="org.eclipse.etrice.core.Room"
	        class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferencePage"
	        id="org.eclipse.etrice.core.Room.refactoring"
	        name="Refactoring">
	        <keywordReference id="org.eclipse.etrice.core.ui.keyword_Room"/>
	    </page>
	</extension>

  <extension point="org.eclipse.compare.contentViewers">
    <viewer id="org.eclipse.etrice.core.Room.compare.contentViewers"
            class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
            extensions="room">
    </viewer>
  </extension>
  <extension point="org.eclipse.compare.contentMergeViewers">
    <viewer id="org.eclipse.etrice.core.Room.compare.contentMergeViewers"
            class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
            extensions="room" label="Room Compare">
     </viewer>
  </extension>
  <extension point="org.eclipse.ui.editors.documentProviders">
    <provider id="org.eclipse.etrice.core.Room.editors.documentProviders"
            class="org.eclipse.etrice.core.ui.RoomExecutableExtensionFactory:org.eclipse.xtext.ui.editor.model.XtextDocumentProvider"
            extensions="room">
    </provider>
  </extension>
	<extension point="org.eclipse.e4.ui.css.swt.theme">	
      <stylesheet uri="css/e4-dark_room_syntaxhighlighting.css">	
         <themeid	
               refid="org.eclipse.e4.ui.css.theme.e4_dark">	
         </themeid>	
	  </stylesheet>	
   </extension>
</plugin>

Back to the top