mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
CodeFragmentFactory -> abstract class
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ import java.util.Map;
|
||||
* @author Eugene Zhuravlev
|
||||
* Date: Aug 30, 2010
|
||||
*/
|
||||
public class CodeFragmentFactoryContextWrapper implements CodeFragmentFactory{
|
||||
public class CodeFragmentFactoryContextWrapper extends CodeFragmentFactory {
|
||||
public static final Key<Value> LABEL_VARIABLE_VALUE_KEY = Key.create("_label_variable_value_key_");
|
||||
public static final String DEBUG_LABEL_SUFFIX = "_DebugLabel";
|
||||
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ import java.util.concurrent.atomic.AtomicReference;
|
||||
* @author Eugene Zhuravlev
|
||||
* Date: Jun 7, 2005
|
||||
*/
|
||||
public class DefaultCodeFragmentFactory implements CodeFragmentFactory {
|
||||
public class DefaultCodeFragmentFactory extends CodeFragmentFactory {
|
||||
private static final class SingletonHolder {
|
||||
public static final DefaultCodeFragmentFactory ourInstance = new DefaultCodeFragmentFactory();
|
||||
}
|
||||
|
||||
+7
-7
@@ -22,21 +22,21 @@ import com.intellij.openapi.project.Project;
|
||||
import com.intellij.psi.JavaCodeFragment;
|
||||
import com.intellij.psi.PsiElement;
|
||||
|
||||
public interface CodeFragmentFactory {
|
||||
ExtensionPointName<CodeFragmentFactory> EXTENSION_POINT_NAME = ExtensionPointName.create("com.intellij.debugger.codeFragmentFactory");
|
||||
public abstract class CodeFragmentFactory {
|
||||
public static final ExtensionPointName<CodeFragmentFactory> EXTENSION_POINT_NAME = ExtensionPointName.create("com.intellij.debugger.codeFragmentFactory");
|
||||
|
||||
JavaCodeFragment createCodeFragment(TextWithImports item, PsiElement context, Project project);
|
||||
public abstract JavaCodeFragment createCodeFragment(TextWithImports item, PsiElement context, Project project);
|
||||
|
||||
JavaCodeFragment createPresentationCodeFragment(TextWithImports item, PsiElement context, Project project);
|
||||
public abstract JavaCodeFragment createPresentationCodeFragment(TextWithImports item, PsiElement context, Project project);
|
||||
|
||||
boolean isContextAccepted(PsiElement contextElement);
|
||||
public abstract boolean isContextAccepted(PsiElement contextElement);
|
||||
|
||||
LanguageFileType getFileType();
|
||||
public abstract LanguageFileType getFileType();
|
||||
|
||||
/**
|
||||
* In case if createCodeFragment returns java code use
|
||||
* com.intellij.debugger.engine.evaluation.expression.EvaluatorBuilderImpl#getInstance()
|
||||
* @return builder, which can evaluate expression for your code fragment
|
||||
*/
|
||||
EvaluatorBuilder getEvaluatorBuilder();
|
||||
public abstract EvaluatorBuilder getEvaluatorBuilder();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user