From c5ac6a835020228181239603bd589c84c823e4b2 Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Wed, 5 Apr 2017 12:08:49 +0300 Subject: [PATCH 1/2] Make it possible to show/hide text editor's info panel. --- .../che/ide/api/editor/texteditor/TextEditorPartView.java | 8 ++++++++ .../che/ide/editor/texteditor/TextEditorPartViewImpl.java | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/editor/texteditor/TextEditorPartView.java b/ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/editor/texteditor/TextEditorPartView.java index 9d826bf8328..b388a956b97 100644 --- a/ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/editor/texteditor/TextEditorPartView.java +++ b/ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/editor/texteditor/TextEditorPartView.java @@ -68,6 +68,14 @@ public interface TextEditorPartView extends RequiresResize, IsWidget, HasNotific */ void showPlaceHolder(Widget placeHolder); + /** + * Sets whether the info panel is visible. + * + * @param visible + * {@code true} to show the info panel, {@code false} to hide it + */ + void setInfoPanelVisible(boolean visible); + /** * Sets the initial state of the info panel. * diff --git a/ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/editor/texteditor/TextEditorPartViewImpl.java b/ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/editor/texteditor/TextEditorPartViewImpl.java index fd21b34fd27..ae199b7b405 100644 --- a/ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/editor/texteditor/TextEditorPartViewImpl.java +++ b/ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/editor/texteditor/TextEditorPartViewImpl.java @@ -143,6 +143,11 @@ public void showPlaceHolder(final Widget placeHolder) { this.editorPanel.setWidget(placeHolder); } + @Override + public void setInfoPanelVisible(boolean visible) { + infoPanel.setVisible(visible); + } + @Override public void initInfoPanel(final String mode, final Keymap keymap, final int lineCount, final int tabSize) { From 7b475e4efdb2a0226be3c39b6ab2505543e4d43f Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Wed, 5 Apr 2017 12:09:38 +0300 Subject: [PATCH 2/2] CHE-4590: hide info panel in command line and preview URL editors --- .../ide/command/editor/page/text/AbstractPageWithTextEditor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/command/editor/page/text/AbstractPageWithTextEditor.java b/ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/command/editor/page/text/AbstractPageWithTextEditor.java index bf7d6b1d29d..4f2bd836f70 100644 --- a/ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/command/editor/page/text/AbstractPageWithTextEditor.java +++ b/ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/command/editor/page/text/AbstractPageWithTextEditor.java @@ -79,6 +79,7 @@ private void initializeEditor(EditorBuilder editorBuilder) { editor.getEditorWidget().setFoldingRulerVisible(false); editor.getEditorWidget().setZoomRulerVisible(false); editor.getEditorWidget().setOverviewRulerVisible(false); + editor.getView().setInfoPanelVisible(false); break; case PROP_DIRTY: