template actions are now injection aware

This commit is contained in:
Sergey Ignatov
2013-11-08 16:48:08 +04:00
parent 773f5f0bb9
commit b486fcb930
3 changed files with 6 additions and 6 deletions
@@ -25,16 +25,16 @@
package com.intellij.codeInsight.template.impl.actions;
import com.intellij.codeInsight.CodeInsightBundle;
import com.intellij.codeInsight.hint.actions.InjectionAwareEditorAction;
import com.intellij.codeInsight.template.impl.TemplateManagerImpl;
import com.intellij.codeInsight.template.impl.TemplateState;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.actionSystem.Presentation;
import com.intellij.openapi.command.CommandProcessor;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.actionSystem.EditorAction;
import com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler;
public class NextVariableAction extends EditorAction {
public class NextVariableAction extends InjectionAwareEditorAction {
public NextVariableAction() {
super(new Handler());
setInjectedContext(true);
@@ -25,16 +25,16 @@
package com.intellij.codeInsight.template.impl.actions;
import com.intellij.codeInsight.CodeInsightBundle;
import com.intellij.codeInsight.hint.actions.InjectionAwareEditorAction;
import com.intellij.codeInsight.template.impl.TemplateManagerImpl;
import com.intellij.codeInsight.template.impl.TemplateState;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.actionSystem.Presentation;
import com.intellij.openapi.command.CommandProcessor;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.actionSystem.EditorAction;
import com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler;
public class PreviousVariableAction extends EditorAction {
public class PreviousVariableAction extends InjectionAwareEditorAction {
public PreviousVariableAction() {
super(new Handler());
setInjectedContext(true);
@@ -15,19 +15,19 @@
*/
package com.intellij.codeInsight.template.impl.editorActions;
import com.intellij.codeInsight.hint.actions.InjectionAwareEditorAction;
import com.intellij.codeInsight.template.TemplateManager;
import com.intellij.codeInsight.template.impl.TemplateManagerImpl;
import com.intellij.codeInsight.template.impl.TemplateSettings;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.actionSystem.EditorAction;
import com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler;
import com.intellij.openapi.project.Project;
/**
* @author peter
*/
public class ExpandLiveTemplateByTabAction extends EditorAction {
public class ExpandLiveTemplateByTabAction extends InjectionAwareEditorAction {
public ExpandLiveTemplateByTabAction() {
super(new EditorWriteActionHandler() {
@Override