mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
template actions are now injection aware
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
+2
-2
@@ -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);
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user