/*******************************************************************************
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package org.eclipse.che.ide.editor.preferences;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.inject.Inject;
/** Implementation of the {@link EditorPreferenceView}. */
public class EditorPreferenceViewImpl extends Composite implements EditorPreferenceView {
/** The UI binder instance. */
private static final EditorPreferenceViewImplUiBinder UIBINDER = GWT.create(EditorPreferenceViewImplUiBinder.class);
@UiField
SimplePanel keymapsSection;
@UiField
SimplePanel editorPropertiesSection;
@Inject
public EditorPreferenceViewImpl() {
initWidget(UIBINDER.createAndBindUi(this));
}
@Override
public AcceptsOneWidget getKeymapsContainer() {
return this.keymapsSection;
}
@Override
public AcceptsOneWidget getEditorPropertiesContainer() {
return editorPropertiesSection;
}
/** UI binder interface for the {@link EditorPreferenceViewImpl} component. */
interface EditorPreferenceViewImplUiBinder extends UiBinder<ScrollPanel, EditorPreferenceViewImpl> {
}
}