com.intellij.openapi.editor.actionSystem.TypedActionHandler Java Examples
The following examples show how to use
com.intellij.openapi.editor.actionSystem.TypedActionHandler.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PowerMode.java From power-mode-intellij-plugin with Apache License 2.0 | 6 votes |
@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); } }); }
Example #2
Source File: StartupEvent.java From tmc-intellij with MIT License | 5 votes |
private void setupHandlersForSnapshots(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 ActivateSnapshotsAction(originalHandler)); }
Example #3
Source File: ClosingTagHandler.java From bamboo-soy with Apache License 2.0 | 4 votes |
public ClosingTagHandler(TypedActionHandler originalHandler) { myOriginalHandler = originalHandler; }
Example #4
Source File: ActivateSnapshotsAction.java From tmc-intellij with MIT License | 4 votes |
public ActivateSnapshotsAction(TypedActionHandler originalHandler) { handler = originalHandler; }
Example #5
Source File: EditorFactoryImpl.java From consulo with Apache License 2.0 | 4 votes |
@SuppressWarnings("NonDefaultConstructor") public MyRawTypedHandler(TypedActionHandler delegate) { myDelegate = delegate; }
Example #6
Source File: IncrementalSearchHandler.java From consulo with Apache License 2.0 | 4 votes |
public MyTypedHandler(@Nullable TypedActionHandler originalHandler) { super(originalHandler); }
Example #7
Source File: TypedHandler.java From consulo with Apache License 2.0 | 4 votes |
public TypedHandler(TypedActionHandler originalHandler) { super(originalHandler); }
Example #8
Source File: TypedActionHandlerBase.java From consulo with Apache License 2.0 | 4 votes |
public TypedActionHandlerBase(@Nullable TypedActionHandler originalHandler) { myOriginalHandler = originalHandler; }
Example #9
Source File: LookupTypedHandler.java From consulo with Apache License 2.0 | 4 votes |
public LookupTypedHandler(@Nullable TypedActionHandler originalHandler) { super(originalHandler); }
Example #10
Source File: ConsoleViewImpl.java From consulo with Apache License 2.0 | 4 votes |
private MyTypedHandler(final TypedActionHandler originalAction) { super(originalAction); }