<idea-plugin version="2" xmlns:xi="http://www.w3.org/2001/XInclude">
	<id>org.eclipse.xtend.idea</id>
	<name>Xtend Support</name>
	<description>
      This plugin enables smart editing of Xtend files.
	</description>
	<version>2.9.2</version>
	<category>Custom Languages</category>
	<vendor url="http://xtend-lang.org">Eclipse Xtend</vendor>
	<idea-version since-build="131"/>
	<depends>JUnit</depends>
	<depends optional="true">org.jetbrains.idea.maven</depends>
	<depends optional="true">org.jetbrains.plugins.gradle</depends>
	<depends>org.eclipse.xtext.idea</depends>

	<xi:include href="plugin_gen.xml" xpointer="xpointer(/idea-plugin/*)"/>

	 <actions>
	     <action id="Xtend.NewType" class="org.eclipse.xtend.core.idea.actions.NewXtendFileAction">
	        <add-to-group group-id="NewGroup1" anchor="after" relative-to-action="NewClass"/>
	     </action>
	     <action id="Xtend.ConvertToXtend" class="org.eclipse.xtend.core.idea.actions.ConvertJavaCodeAction"
	     		text="Convert to Xtend" description="Convert Java file to Xtend">
	        <add-to-group group-id="RefactoringMenu"/>
	     </action>
	     <action id="Xtend.CodeConvertToXtend" class="org.eclipse.xtend.core.idea.actions.ConvertJavaCodeAction"
	     		text="Convert Java File to Xtend File" description="Convert Java File to Xtend File">
	     	<keyboard-shortcut first-keystroke="alt shift control X"  keymap="$default"/>
            <add-to-group group-id="CodeMenu"/>
	     </action>
     </actions>
     
    <extensions defaultExtensionNs="org.eclipse.xtext.idea">
    	<package uri="http://www.eclipse.org/xtend"
    			 class="org.eclipse.xtend.core.xtend.XtendPackage"/>
    	<package uri="http://www.eclipse.org/xtend/RichString"
    			 class="org.eclipse.xtend.core.richstring.ProcessedRichStringPackage"/>
    	
    	<lang.editor.autoEditHandler language="org.eclipse.xtend.core.Xtend"
								factoryClass="org.eclipse.xtend.core.idea.XtendExtensionFactory"
    							implementationClass="org.eclipse.xtext.idea.editorActions.IdeaAutoEditHandler"/>
    </extensions>

	<extensions defaultExtensionNs="com.intellij">
		<createFromTemplateHandler implementation="org.eclipse.xtend.core.idea.actions.XtendCreateFromTemplateHandler"/>

    	<runConfigurationProducer implementation="org.eclipse.xtend.core.idea.execution.XtendApplicationConfigurationProducer"/>
    	<runConfigurationProducer implementation="org.eclipse.xtend.core.idea.execution.XtendJunitClassConfigurationProducer"/>
    	<runConfigurationProducer implementation="org.eclipse.xtend.core.idea.execution.XtendJunitMethodConfigurationProducer"/>

    	<framework.type implementation="org.eclipse.xtend.core.idea.framework.XtendFrameworkType" />
    	<library.presentationProvider implementation="org.eclipse.xtend.core.idea.framework.XtendLibraryPresentationProvider" />

    	<iconProvider implementation="org.eclipse.xtend.core.idea.icons.XtendIconProvider"/>
    	<treeStructureProvider implementation="org.eclipse.xtend.core.idea.projectview.XtendSelectableTreeStructureProvider" order="last"/>
    	<framework.detector implementation="org.eclipse.xtend.core.idea.framework.XtendFrameworkDetector"/>
    	<lang.importOptimizer language="org.eclipse.xtend.core.Xtend"
							factoryClass="org.eclipse.xtend.core.idea.XtendExtensionFactory"
							implementationClass="org.eclipse.xtext.xbase.idea.imports.XImportSectionOptimizer"/>

		<debugger.positionManagerFactory
							implementation="org.eclipse.xtend.core.idea.debug.XtendPositionManagerFactory" 
							order="last"/>
		<debugger.javaDebugAware
							implementation="org.eclipse.xtend.core.idea.debug.XtendIsJavaDebugAware"/>
		<debugger.extraSteppingFilter
							implementation="org.eclipse.xtend.core.idea.debug.XtendSteppingFilter"/>
		<debugger.sourcePositionProvider
							implementation="org.eclipse.xtend.core.idea.debug.XtendSourcePositionProvider"/>
							
		<liveTemplateContext implementation="org.eclipse.xtend.core.idea.completion.XtendCodeContextType$Generic"/>
		<liveTemplateContext implementation="org.eclipse.xtend.core.idea.completion.XtendCodeContextType$Member"/>
		<liveTemplateContext implementation="org.eclipse.xtend.core.idea.completion.XtendCodeContextType$Statement"/>
		<liveTemplateContext implementation="org.eclipse.xtend.core.idea.completion.XtendCodeContextType$Expression"/>
		<liveTemplateContext implementation="org.eclipse.xtend.core.idea.completion.XtendCodeContextType$TemplateExpression"/>
		
		<defaultLiveTemplatesProvider implementation="org.eclipse.xtend.core.idea.completion.XtendLiveTemplatesProvider"/>
	</extensions>
	
	<extensions defaultExtensionNs="org.jetbrains.plugins.gradle">
	  <frameworkSupport implementation="org.eclipse.xtend.core.idea.framework.XtendGradleFrameworkSupportProvider"/>
    </extensions>
	
</idea-plugin>
