Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHE-4590: hide info panel in command line and preview URL editors #4707

Merged
merged 2 commits into from
Apr 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down