package jetbrains.mps.vcs.changesmanager.editor;

/*Generated by MPS */

import jetbrains.mps.annotations.GeneratedClass;
import jetbrains.mps.vcs.diff.ui.common.ChangeGroupLayout;
import jetbrains.mps.nodeEditor.inspector.InspectorEditorComponent;
import org.jetbrains.annotations.NotNull;
import jetbrains.mps.nodeEditor.EditorComponent;
import java.util.List;
import jetbrains.mps.vcs.diff.ui.common.ChangeEditorMessage;
import jetbrains.mps.vcs.diff.changes.ModelChange;
import org.jetbrains.annotations.Nullable;
import jetbrains.mps.vcs.diff.ChangeSet;

@GeneratedClass(node = "r:06e50ed3-c893-4772-ba4a-878fc9de01d0(jetbrains.mps.vcs.changesmanager.editor)/867367425399245463", model = "r:06e50ed3-c893-4772-ba4a-878fc9de01d0(jetbrains.mps.vcs.changesmanager.editor)")
/*package*/ class StripsChangeGroupLayout extends ChangeGroupLayout {
  private EditorHighlighter myEditorHighlighter;
  public StripsChangeGroupLayout(EditorHighlighter editorHighlighter) {
    super(null, editorHighlighter.getEditorComponent() instanceof InspectorEditorComponent, true);
    myEditorHighlighter = editorHighlighter;
  }
  @NotNull
  @Override
  public EditorComponent getLeftComponent() {
    return myEditorHighlighter.getEditorComponent();
  }
  @NotNull
  @Override
  public EditorComponent getRightComponent() {
    return myEditorHighlighter.getEditorComponent();
  }
  @Override
  protected List<ChangeEditorMessage> getLeftMessages(ModelChange change) {
    return myEditorHighlighter.getMessages(change);
  }
  @Override
  protected List<ChangeEditorMessage> getRightMessages(ModelChange change) {
    return myEditorHighlighter.getMessages(change);
  }
  @Nullable
  @Override
  protected ChangeSet getChangeSet() {
    return myEditorHighlighter.getChangeSet();
  }
}
