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/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: 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) {