Java Code Examples for com.intellij.openapi.editor.impl.softwrap.SoftWrapAppliancePlaces#CONSOLE
The following examples show how to use
com.intellij.openapi.editor.impl.softwrap.SoftWrapAppliancePlaces#CONSOLE .
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: SettingsImpl.java From consulo with Apache License 2.0 | 5 votes |
public SettingsImpl(@Nullable EditorEx editor, @Nullable Project project, @Nonnull EditorKind kind) { myEditor = editor; myLanguage = editor != null && project != null ? getDocumentLanguage(project, editor.getDocument()) : null; if (EditorKind.CONSOLE.equals(kind)) { mySoftWrapAppliancePlace = SoftWrapAppliancePlaces.CONSOLE; } else if (EditorKind.PREVIEW.equals(kind)) { mySoftWrapAppliancePlace = SoftWrapAppliancePlaces.PREVIEW; } else { mySoftWrapAppliancePlace = SoftWrapAppliancePlaces.MAIN_EDITOR; } }
Example 2
Source File: ConsoleViewImpl.java From consulo with Apache License 2.0 | 5 votes |
@Override @Nonnull public AnAction[] createConsoleActions() { //Initializing prev and next occurrences actions final CommonActionsManager actionsManager = CommonActionsManager.getInstance(); final AnAction prevAction = actionsManager.createPrevOccurenceAction(this); prevAction.getTemplatePresentation().setText(getPreviousOccurenceActionName()); final AnAction nextAction = actionsManager.createNextOccurenceAction(this); nextAction.getTemplatePresentation().setText(getNextOccurenceActionName()); final AnAction switchSoftWrapsAction = new ToggleUseSoftWrapsToolbarAction(SoftWrapAppliancePlaces.CONSOLE) { @Override protected Editor getEditor(@Nonnull AnActionEvent e) { return myEditor; } }; final AnAction autoScrollToTheEndAction = new ScrollToTheEndToolbarAction(myEditor); List<AnAction> consoleActions = new ArrayList<>(); consoleActions.add(prevAction); consoleActions.add(nextAction); consoleActions.add(switchSoftWrapsAction); consoleActions.add(autoScrollToTheEndAction); consoleActions.add(ActionManager.getInstance().getAction("Print")); consoleActions.add(new ClearThisConsoleAction(this)); consoleActions.addAll(customActions); List<ConsoleActionsPostProcessor> postProcessors = ConsoleActionsPostProcessor.EP_NAME.getExtensionList(); AnAction[] result = consoleActions.toArray(AnAction.EMPTY_ARRAY); for (ConsoleActionsPostProcessor postProcessor : postProcessors) { result = postProcessor.postProcess(this, result); } return result; }
Example 3
Source File: ConsoleLogToolWindowFactory.java From aem-ide-tooling-4-intellij with Apache License 2.0 | 4 votes |
public ToggleSoftWraps(Editor editor) { super(SoftWrapAppliancePlaces.CONSOLE); myEditor = editor; }
Example 4
Source File: EventLogToolWindowFactory.java From consulo with Apache License 2.0 | 4 votes |
public ToggleSoftWraps(Editor editor) { super(SoftWrapAppliancePlaces.CONSOLE); myEditor = editor; }