// Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
// Licensed under the Apache License, Version 2.0 (see LICENSE).

package com.twitter.intellij.pants.service.scala;

import com.intellij.openapi.externalSystem.model.Key;
import com.intellij.openapi.externalSystem.model.ProjectKeys;
import com.intellij.openapi.externalSystem.model.project.AbstractExternalEntityData;
import com.intellij.openapi.util.text.StringUtil;
import com.twitter.intellij.pants.util.PantsConstants;
import org.jetbrains.annotations.NotNull;

import java.util.Set;

public class ScalaModelData extends AbstractExternalEntityData {
  private static final long serialVersionUID = 1L;
  @NotNull
  public static final Key<ScalaModelData> KEY =
    Key.create(ScalaModelData.class, ProjectKeys.LIBRARY_DEPENDENCY.getProcessingWeight() + 1);
  private final String myScalaLibId;
  private final Set<String> myClasspath;

  public ScalaModelData(@NotNull String scalaLibId, @NotNull Set<String> classpath) {
    super(PantsConstants.SYSTEM_ID);
    myScalaLibId = scalaLibId;
    myClasspath = classpath;
  }

  @NotNull
  public String getScalaLibId() {
    return myScalaLibId;
  }

  @NotNull
  public Set<String> getClasspath() {
    return myClasspath;
  }

  @Override
  public boolean equals(Object obj) {
    return super.equals(obj) && StringUtil.equals(getScalaLibId(), ((ScalaModelData)obj).getScalaLibId());
  }
}

@@ -429,16 +429,67 @@
 ngUtil;%0A
+import com.intellij.serialization.PropertyMapping;%0A
 import c
@@ -951,16 +951,69 @@
 spath;%0A%0A
+  @PropertyMapping(%7B%22myScalaLibId%22 , %22myClasspath%22%7D)%0A
   public

Fix ScalaModelData Mapping (#451)