mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 11:50:54 +07:00
move postfix templates to java-impl
This commit is contained in:
@@ -18,10 +18,6 @@
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../plugins/generate-tostring/testSrc" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../plugins/generate-tostring/resources" isTestSource="false" />
|
||||
</content>
|
||||
<content url="file://$MODULE_DIR$/../../plugins/postfix">
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../plugins/postfix/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../plugins/postfix/testSrc" isTestSource="true" />
|
||||
</content>
|
||||
<orderEntry type="module" module-name="boot" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
package org.jetbrains.postfixCompletion.completion;
|
||||
package com.intellij.codeInsight.template.postfix.completion;
|
||||
|
||||
import com.intellij.codeInsight.completion.CompletionContributor;
|
||||
import com.intellij.codeInsight.completion.CompletionType;
|
||||
import com.intellij.codeInsight.template.CustomLiveTemplate;
|
||||
import com.intellij.codeInsight.template.postfix.templates.PostfixLiveTemplate;
|
||||
import com.intellij.patterns.ElementPattern;
|
||||
import com.intellij.psi.JavaTokenType;
|
||||
import com.intellij.psi.PsiElement;
|
||||
@@ -11,7 +12,6 @@ import com.intellij.psi.impl.source.tree.ElementType;
|
||||
import com.intellij.psi.tree.TokenSet;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.postfixCompletion.templates.PostfixLiveTemplate;
|
||||
|
||||
import static com.intellij.patterns.PsiJavaPatterns.psiElement;
|
||||
import static com.intellij.patterns.StandardPatterns.string;
|
||||
@@ -1,19 +1,19 @@
|
||||
package org.jetbrains.postfixCompletion.completion;
|
||||
package com.intellij.codeInsight.template.postfix.completion;
|
||||
|
||||
import com.intellij.codeInsight.lookup.Lookup;
|
||||
import com.intellij.codeInsight.lookup.LookupActionProvider;
|
||||
import com.intellij.codeInsight.lookup.LookupElement;
|
||||
import com.intellij.codeInsight.lookup.LookupElementAction;
|
||||
import com.intellij.codeInsight.template.postfix.settings.PostfixCompletionConfigurable;
|
||||
import com.intellij.codeInsight.template.postfix.settings.PostfixCompletionSettings;
|
||||
import com.intellij.codeInsight.template.postfix.settings.PostfixTemplatesListPanel;
|
||||
import com.intellij.codeInsight.template.postfix.templates.PostfixTemplate;
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.options.ShowSettingsUtil;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.util.Consumer;
|
||||
import com.intellij.util.PlatformIcons;
|
||||
import org.jetbrains.postfixCompletion.settings.PostfixCompletionConfigurable;
|
||||
import org.jetbrains.postfixCompletion.settings.PostfixCompletionSettings;
|
||||
import org.jetbrains.postfixCompletion.settings.PostfixTemplatesListPanel;
|
||||
import org.jetbrains.postfixCompletion.templates.PostfixTemplate;
|
||||
|
||||
public class PostfixTemplateLookupActionProvider implements LookupActionProvider {
|
||||
@Override
|
||||
@@ -1,18 +1,18 @@
|
||||
package org.jetbrains.postfixCompletion.completion;
|
||||
package com.intellij.codeInsight.template.postfix.completion;
|
||||
|
||||
import com.intellij.codeInsight.completion.InsertionContext;
|
||||
import com.intellij.codeInsight.lookup.LookupElementPresentation;
|
||||
import com.intellij.codeInsight.template.CustomTemplateCallback;
|
||||
import com.intellij.codeInsight.template.impl.LiveTemplateLookupElement;
|
||||
import com.intellij.codeInsight.template.impl.TemplateImpl;
|
||||
import com.intellij.codeInsight.template.postfix.templates.PostfixLiveTemplate;
|
||||
import com.intellij.codeInsight.template.postfix.templates.PostfixTemplate;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.postfixCompletion.templates.PostfixLiveTemplate;
|
||||
import org.jetbrains.postfixCompletion.templates.PostfixTemplate;
|
||||
|
||||
import static org.jetbrains.postfixCompletion.completion.PostfixTemplateCompletionContributor.getPostfixLiveTemplate;
|
||||
import static com.intellij.codeInsight.template.postfix.completion.PostfixTemplateCompletionContributor.getPostfixLiveTemplate;
|
||||
|
||||
class PostfixTemplateLookupElement extends LiveTemplateLookupElement {
|
||||
@NotNull
|
||||
@@ -1,19 +1,19 @@
|
||||
package org.jetbrains.postfixCompletion.completion;
|
||||
package com.intellij.codeInsight.template.postfix.completion;
|
||||
|
||||
import com.intellij.codeInsight.completion.CompletionParameters;
|
||||
import com.intellij.codeInsight.completion.CompletionProvider;
|
||||
import com.intellij.codeInsight.completion.CompletionResultSet;
|
||||
import com.intellij.codeInsight.template.CustomTemplateCallback;
|
||||
import com.intellij.codeInsight.template.postfix.settings.PostfixCompletionSettings;
|
||||
import com.intellij.codeInsight.template.postfix.templates.PostfixLiveTemplate;
|
||||
import com.intellij.codeInsight.template.postfix.templates.PostfixTemplate;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.patterns.StandardPatterns;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import com.intellij.util.ProcessingContext;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.postfixCompletion.settings.PostfixCompletionSettings;
|
||||
import org.jetbrains.postfixCompletion.templates.PostfixLiveTemplate;
|
||||
import org.jetbrains.postfixCompletion.templates.PostfixTemplate;
|
||||
|
||||
import static org.jetbrains.postfixCompletion.completion.PostfixTemplateCompletionContributor.getPostfixLiveTemplate;
|
||||
import static com.intellij.codeInsight.template.postfix.completion.PostfixTemplateCompletionContributor.getPostfixLiveTemplate;
|
||||
|
||||
class PostfixTemplatesCompletionProvider extends CompletionProvider<CompletionParameters> {
|
||||
@Override
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="org.jetbrains.postfixCompletion.settings.PostfixCompletionConfigurable">
|
||||
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="com.intellij.codeInsight.template.postfix.settings.PostfixCompletionConfigurable">
|
||||
<grid id="27dc6" binding="myPanel" layout-manager="GridLayoutManager" row-count="4" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<margin top="0" left="0" bottom="0" right="0"/>
|
||||
<constraints>
|
||||
@@ -1,8 +1,9 @@
|
||||
package org.jetbrains.postfixCompletion.settings;
|
||||
package com.intellij.codeInsight.template.postfix.settings;
|
||||
|
||||
import com.intellij.application.options.editor.EditorOptionsProvider;
|
||||
import com.intellij.codeInsight.CodeInsightBundle;
|
||||
import com.intellij.codeInsight.template.impl.TemplateSettings;
|
||||
import com.intellij.codeInsight.template.postfix.templates.PostfixTemplate;
|
||||
import com.intellij.openapi.options.Configurable;
|
||||
import com.intellij.openapi.options.ConfigurationException;
|
||||
import com.intellij.openapi.options.SearchableConfigurable;
|
||||
@@ -12,7 +13,6 @@ import com.intellij.util.containers.ContainerUtil;
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.postfixCompletion.templates.PostfixTemplate;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.event.ChangeEvent;
|
||||
@@ -1,13 +1,13 @@
|
||||
package org.jetbrains.postfixCompletion.settings;
|
||||
package com.intellij.codeInsight.template.postfix.settings;
|
||||
|
||||
import com.intellij.codeInsight.template.impl.TemplateSettings;
|
||||
import com.intellij.codeInsight.template.postfix.templates.PostfixTemplate;
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
import com.intellij.openapi.components.*;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import com.intellij.util.xmlb.XmlSerializerUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.postfixCompletion.templates.PostfixTemplate;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Map;
|
||||
@@ -1,5 +1,6 @@
|
||||
package org.jetbrains.postfixCompletion.settings;
|
||||
package com.intellij.codeInsight.template.postfix.settings;
|
||||
|
||||
import com.intellij.codeInsight.template.postfix.templates.PostfixTemplate;
|
||||
import com.intellij.ui.BooleanTableCellEditor;
|
||||
import com.intellij.ui.BooleanTableCellRenderer;
|
||||
import com.intellij.ui.TableViewSpeedSearch;
|
||||
@@ -14,7 +15,6 @@ import com.intellij.util.ui.ListTableModel;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.postfixCompletion.templates.PostfixTemplate;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.table.TableCellEditor;
|
||||
@@ -1,9 +1,9 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.template.postfix.util.CommonUtils;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.postfixCompletion.util.CommonUtils;
|
||||
|
||||
public class AssertStatementPostfixTemplate extends BooleanPostfixTemplate {
|
||||
public AssertStatementPostfixTemplate() {
|
||||
@@ -1,11 +1,11 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.template.postfix.util.CommonUtils;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiExpression;
|
||||
import com.intellij.psi.PsiExpressionStatement;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.postfixCompletion.util.CommonUtils;
|
||||
|
||||
abstract public class BooleanPostfixTemplate extends PostfixTemplate {
|
||||
protected BooleanPostfixTemplate(@NotNull String name, @NotNull String description, @NotNull String example) {
|
||||
@@ -1,9 +1,9 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.template.postfix.util.JavaSurroundersProxy;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.psi.PsiExpression;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.postfixCompletion.util.JavaSurroundersProxy;
|
||||
|
||||
public class CastExpressionPostfixTemplate extends ExpressionPostfixTemplateWithChooser {
|
||||
public CastExpressionPostfixTemplate() {
|
||||
@@ -1,12 +1,12 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.CodeInsightServicesUtil;
|
||||
import com.intellij.codeInsight.template.postfix.util.JavaSurroundersProxy;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiExpression;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.postfixCompletion.util.JavaSurroundersProxy;
|
||||
|
||||
public class ElseStatementPostfixTemplate extends BooleanPostfixTemplate {
|
||||
public ElseStatementPostfixTemplate() {
|
||||
@@ -1,5 +1,6 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.template.postfix.util.CommonUtils;
|
||||
import com.intellij.codeInsight.unwrap.ScopeHighlighter;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.command.CommandProcessor;
|
||||
@@ -16,7 +17,6 @@ import com.intellij.refactoring.IntroduceTargetChooser;
|
||||
import com.intellij.refactoring.introduceVariable.IntroduceVariableBase;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.postfixCompletion.util.CommonUtils;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.openapi.util.Pair;
|
||||
import com.intellij.psi.PsiExpression;
|
||||
@@ -1,10 +1,10 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.template.postfix.util.CommonUtils;
|
||||
import com.intellij.openapi.util.Pair;
|
||||
import com.intellij.psi.PsiExpression;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.postfixCompletion.util.CommonUtils;
|
||||
|
||||
public class ForDescendingPostfixTemplate extends ForIndexedPostfixTemplate {
|
||||
public ForDescendingPostfixTemplate() {
|
||||
@@ -1,9 +1,10 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.template.Template;
|
||||
import com.intellij.codeInsight.template.TemplateManager;
|
||||
import com.intellij.codeInsight.template.impl.MacroCallNode;
|
||||
import com.intellij.codeInsight.template.macro.SuggestVariableNameMacro;
|
||||
import com.intellij.codeInsight.template.postfix.util.CommonUtils;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
@@ -14,7 +15,6 @@ import com.intellij.psi.PsiExpressionStatement;
|
||||
import com.intellij.psi.PsiType;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.postfixCompletion.util.CommonUtils;
|
||||
|
||||
public abstract class ForIndexedPostfixTemplate extends PostfixTemplate {
|
||||
protected ForIndexedPostfixTemplate(@NotNull String key, @NotNull String description, @NotNull String example) {
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.template.Template;
|
||||
import com.intellij.codeInsight.template.TemplateManager;
|
||||
@@ -7,6 +7,7 @@ import com.intellij.codeInsight.template.impl.TextExpression;
|
||||
import com.intellij.codeInsight.template.impl.VariableNode;
|
||||
import com.intellij.codeInsight.template.macro.IterableComponentTypeMacro;
|
||||
import com.intellij.codeInsight.template.macro.SuggestVariableNameMacro;
|
||||
import com.intellij.codeInsight.template.postfix.util.CommonUtils;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
@@ -14,7 +15,6 @@ import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiExpression;
|
||||
import com.intellij.psi.PsiExpressionStatement;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.postfixCompletion.util.CommonUtils;
|
||||
|
||||
public class ForeachPostfixTemplate extends PostfixTemplate {
|
||||
public ForeachPostfixTemplate() {
|
||||
@@ -1,11 +1,11 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.template.postfix.util.JavaSurroundersProxy;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiExpression;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.postfixCompletion.util.JavaSurroundersProxy;
|
||||
|
||||
public class IfStatementPostfixTemplate extends BooleanPostfixTemplate {
|
||||
public IfStatementPostfixTemplate() {
|
||||
@@ -1,9 +1,11 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.guess.GuessManager;
|
||||
import com.intellij.codeInsight.lookup.LookupElement;
|
||||
import com.intellij.codeInsight.lookup.PsiTypeLookupItem;
|
||||
import com.intellij.codeInsight.template.*;
|
||||
import com.intellij.codeInsight.template.postfix.util.Aliases;
|
||||
import com.intellij.codeInsight.template.postfix.util.CommonUtils;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.editor.RangeMarker;
|
||||
@@ -14,8 +16,6 @@ import com.intellij.psi.*;
|
||||
import com.intellij.refactoring.introduceField.ElementToWorkOn;
|
||||
import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.postfixCompletion.util.Aliases;
|
||||
import org.jetbrains.postfixCompletion.util.CommonUtils;
|
||||
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Set;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
@@ -1,11 +1,11 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.CodeInsightServicesUtil;
|
||||
import com.intellij.codeInsight.template.postfix.util.CommonUtils;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.util.Condition;
|
||||
import com.intellij.psi.PsiExpression;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.postfixCompletion.util.CommonUtils;
|
||||
|
||||
public class NotExpressionPostfixTemplate extends ExpressionPostfixTemplateWithChooser {
|
||||
public NotExpressionPostfixTemplate() {
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.template.postfix.util.Aliases;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.postfixCompletion.util.Aliases;
|
||||
|
||||
@Aliases("nn")
|
||||
public class NotNullCheckPostfixTemplate extends NullCheckPostfixTemplate {
|
||||
@@ -1,12 +1,12 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.template.postfix.util.JavaSurroundersProxy;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.psi.*;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.postfixCompletion.util.JavaSurroundersProxy;
|
||||
|
||||
/**
|
||||
* @author ignatov
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.psi.JavaPsiFacade;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.completion.CompletionInitializationContext;
|
||||
import com.intellij.codeInsight.completion.CompletionType;
|
||||
@@ -6,6 +6,8 @@ import com.intellij.codeInsight.completion.JavaCompletionContributor;
|
||||
import com.intellij.codeInsight.template.CustomLiveTemplateBase;
|
||||
import com.intellij.codeInsight.template.CustomTemplateCallback;
|
||||
import com.intellij.codeInsight.template.impl.TemplateSettings;
|
||||
import com.intellij.codeInsight.template.postfix.settings.PostfixCompletionSettings;
|
||||
import com.intellij.codeInsight.template.postfix.util.Aliases;
|
||||
import com.intellij.lang.java.JavaLanguage;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.command.CommandProcessor;
|
||||
@@ -25,8 +27,6 @@ import com.intellij.util.containers.ContainerUtil;
|
||||
import org.jetbrains.annotations.Contract;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.postfixCompletion.settings.PostfixCompletionSettings;
|
||||
import org.jetbrains.postfixCompletion.util.Aliases;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.template.postfix.settings.PostfixCompletionSettings;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
@@ -8,7 +9,6 @@ import com.intellij.psi.PsiExpression;
|
||||
import com.intellij.psi.util.PsiTreeUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.postfixCompletion.settings.PostfixCompletionSettings;
|
||||
|
||||
public abstract class PostfixTemplate {
|
||||
@NotNull private final String myPresentableName;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.CodeInsightUtilCore;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
@@ -1,12 +1,12 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.codeInsight.template.postfix.util.CommonUtils;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiExpression;
|
||||
import com.intellij.psi.PsiExpressionStatement;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.postfixCompletion.util.CommonUtils;
|
||||
|
||||
public class ThrowExceptionPostfixTemplate extends PostfixTemplate {
|
||||
public ThrowExceptionPostfixTemplate() {
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.templates;
|
||||
package com.intellij.codeInsight.template.postfix.templates;
|
||||
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.psi.*;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.util;
|
||||
package com.intellij.codeInsight.template.postfix.util;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
@@ -1,5 +1,6 @@
|
||||
package org.jetbrains.postfixCompletion.util;
|
||||
package com.intellij.codeInsight.template.postfix.util;
|
||||
|
||||
import com.intellij.codeInsight.template.postfix.templates.PostfixTemplate;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.psi.*;
|
||||
@@ -8,7 +9,6 @@ import com.intellij.refactoring.util.CommonRefactoringUtil;
|
||||
import org.jetbrains.annotations.Contract;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.postfixCompletion.templates.PostfixTemplate;
|
||||
|
||||
public abstract class CommonUtils {
|
||||
private CommonUtils() {
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.postfixCompletion.util;
|
||||
package com.intellij.codeInsight.template.postfix.util;
|
||||
|
||||
import com.intellij.codeInsight.generation.surroundWith.JavaExpressionSurroundDescriptor;
|
||||
import com.intellij.lang.surroundWith.Surrounder;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user