@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); } }); }
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)); }
public QuoteHandler(TypedActionHandler originalHandler) { myOriginalHandler = originalHandler; }
public ClosingTagHandler(TypedActionHandler originalHandler) { myOriginalHandler = originalHandler; }
public ActivateSpywareAction(TypedActionHandler originalHandler) { handler = originalHandler; }
public HackerTyperAction(TypedActionHandler typedActionHandler) { super(typedActionHandler); }
public MyTypedHandler(@Nullable TypedActionHandler originalHandler) { super(originalHandler); }
public TypedHandler(TypedActionHandler originalHandler){ super(originalHandler); }
public TypedActionHandlerBase(@Nullable TypedActionHandler originalHandler) { myOriginalHandler = originalHandler; }
public LookupTypedHandler(@Nullable TypedActionHandler originalHandler) { super(originalHandler); }
public SpaceHandler(TypedActionHandler originalHandler) { super(originalHandler); }
public EncloseTypedAction(TypedActionHandler handler) { defaultHandler = handler; }
public TypedHandler(TypedActionHandler originalHandler) { super(originalHandler); }
/** * Preserve the original TypedHandler. * * @param original_handler The original TypedHandler. */ public SmartyTypedActionHandler (TypedActionHandler original_handler) { this.original_handler = original_handler; }
/** * Return the original TypedHandler. Allows dynamically disabling this type handler. * * @return The original TypedHandler. */ public TypedActionHandler getOriginalTypedHandler () { return original_handler; }