本文整理汇总了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);
}
});
}
示例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));
}
示例3: QuoteHandler
import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public QuoteHandler(TypedActionHandler originalHandler) {
myOriginalHandler = originalHandler;
}
示例4: ClosingTagHandler
import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public ClosingTagHandler(TypedActionHandler originalHandler) {
myOriginalHandler = originalHandler;
}
示例5: ActivateSpywareAction
import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public ActivateSpywareAction(TypedActionHandler originalHandler) {
handler = originalHandler;
}
示例6: HackerTyperAction
import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public HackerTyperAction(TypedActionHandler typedActionHandler) {
super(typedActionHandler);
}
示例7: MyTypedHandler
import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public MyTypedHandler(@Nullable TypedActionHandler originalHandler) {
super(originalHandler);
}
示例8: TypedHandler
import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public TypedHandler(TypedActionHandler originalHandler){
super(originalHandler);
}
示例9: TypedActionHandlerBase
import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public TypedActionHandlerBase(@Nullable TypedActionHandler originalHandler) {
myOriginalHandler = originalHandler;
}
示例10: LookupTypedHandler
import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public LookupTypedHandler(@Nullable TypedActionHandler originalHandler) {
super(originalHandler);
}
示例11: SpaceHandler
import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public SpaceHandler(TypedActionHandler originalHandler) {
super(originalHandler);
}
示例12: EncloseTypedAction
import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public EncloseTypedAction(TypedActionHandler handler) {
defaultHandler = handler;
}
示例13: TypedHandler
import com.intellij.openapi.editor.actionSystem.TypedActionHandler; //导入依赖的package包/类
public TypedHandler(TypedActionHandler originalHandler) {
super(originalHandler);
}
示例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;
}
示例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;
}