mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
23 lines
422 B
Java
23 lines
422 B
Java
package com.intellij.codeInsight.template;
|
|
|
|
import com.intellij.psi.PsiElement;
|
|
|
|
public class TextResult implements Result{
|
|
private final String myText;
|
|
|
|
public TextResult(String text) {
|
|
myText = text;
|
|
}
|
|
|
|
public String getText() {
|
|
return myText;
|
|
}
|
|
|
|
public boolean equalsToText(String text, PsiElement context) {
|
|
return text.equals(myText);
|
|
}
|
|
|
|
public String toString() {
|
|
return myText;
|
|
}
|
|
} |