当前位置: 首页>>代码示例>>Java>>正文


Java TypedActionHandler类代码示例

本文整理汇总了Java中com.intellij.openapi.editor.actionSystem.TypedActionHandler的典型用法代码示例。如果您正苦于以下问题:Java TypedActionHandler类的具体用法?Java TypedActionHandler怎么用?Java TypedActionHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TypedActionHandler类属于com.intellij.openapi.editor.actionSystem包,在下文中一共展示了TypedActionHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initComponent

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
@Override
public void initComponent() {

    final EditorActionManager editorActionManager = EditorActionManager.getInstance();
    final EditorFactory editorFactory = EditorFactory.getInstance();
    particleContainerManager = new ParticleContainerManager();
    editorFactory.addEditorFactoryListener(particleContainerManager, new Disposable() {
        @Override
        public void dispose() {

        }
    });
    final TypedAction typedAction = editorActionManager.getTypedAction();
    final TypedActionHandler rawHandler = typedAction.getRawHandler();
    typedAction.setupRawHandler(new TypedActionHandler() {
        @Override
        public void execute(@NotNull final Editor editor, final char c, @NotNull final DataContext dataContext) {
            updateEditor(editor);
            rawHandler.execute(editor, c, dataContext);
        }
    });
}
 
开发者ID:baptistemesta,项目名称:power-mode-intellij-plugin,代码行数:23,代码来源:PowerMode.java

示例2: setupHandlersForSpyware

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
private void setupHandlersForSpyware(ProgressObserver observer) {
    observer.progress(0, 0.70, "Setting handlers");
    final EditorActionManager actionManager = EditorActionManager.getInstance();
    final TypedAction typedAction = actionManager.getTypedAction();
    TypedActionHandler originalHandler = actionManager.getTypedAction().getHandler();
    typedAction.setupHandler(new ActivateSpywareAction(originalHandler));
}
 
开发者ID:testmycode,项目名称:tmc-intellij,代码行数:8,代码来源:StartupEvent.java

示例3: QuoteHandler

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public QuoteHandler(TypedActionHandler originalHandler) {
  myOriginalHandler = originalHandler;
}
 
开发者ID:google,项目名称:bamboo-soy,代码行数:4,代码来源:QuoteHandler.java

示例4: ClosingTagHandler

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public ClosingTagHandler(TypedActionHandler originalHandler) {
  myOriginalHandler = originalHandler;
}
 
开发者ID:google,项目名称:bamboo-soy,代码行数:4,代码来源:ClosingTagHandler.java

示例5: ActivateSpywareAction

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public ActivateSpywareAction(TypedActionHandler originalHandler) {
    handler = originalHandler;
}
 
开发者ID:testmycode,项目名称:tmc-intellij,代码行数:4,代码来源:ActivateSpywareAction.java

示例6: HackerTyperAction

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public HackerTyperAction(TypedActionHandler typedActionHandler) {
    super(typedActionHandler);
}
 
开发者ID:mitallast,项目名称:hackertyper-plugin,代码行数:4,代码来源:HackerTyperAction.java

示例7: MyTypedHandler

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public MyTypedHandler(@Nullable TypedActionHandler originalHandler) {
  super(originalHandler);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:IncrementalSearchHandler.java

示例8: TypedHandler

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public TypedHandler(TypedActionHandler originalHandler){
  super(originalHandler);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:TypedHandler.java

示例9: TypedActionHandlerBase

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public TypedActionHandlerBase(@Nullable TypedActionHandler originalHandler) {
  myOriginalHandler = originalHandler;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:TypedActionHandlerBase.java

示例10: LookupTypedHandler

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public LookupTypedHandler(@Nullable TypedActionHandler originalHandler) {
  super(originalHandler);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:LookupTypedHandler.java

示例11: SpaceHandler

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public SpaceHandler(TypedActionHandler originalHandler) {
  super(originalHandler);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:SpaceHandler.java

示例12: EncloseTypedAction

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public EncloseTypedAction(TypedActionHandler handler) {
    defaultHandler = handler;
}
 
开发者ID:lexand,项目名称:enclosing-jidea-plugin,代码行数:4,代码来源:EnclosingMod.java

示例13: TypedHandler

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public TypedHandler(TypedActionHandler originalHandler) {
  super(originalHandler);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:4,代码来源:TypedHandler.java

示例14: SmartyTypedActionHandler

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
/**
 * Preserve the original TypedHandler.
 *
 * @param original_handler The original TypedHandler.
 */
public SmartyTypedActionHandler (TypedActionHandler original_handler)
{
	this.original_handler = original_handler;
}
 
开发者ID:mollie,项目名称:PhpStorm,代码行数:10,代码来源:SmartyTypedActionHandler.java

示例15: getOriginalTypedHandler

import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
/**
 * Return the original TypedHandler. Allows dynamically disabling this type handler.
 *
 * @return The original TypedHandler.
 */
public TypedActionHandler getOriginalTypedHandler ()
{
	return original_handler;
}
 
开发者ID:mollie,项目名称:PhpStorm,代码行数:10,代码来源:SmartyTypedActionHandler.java


注:本文中的com.intellij.openapi.editor.actionSystem.TypedActionHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。