/FileExtraction/Java_unseen/JetBrains_psiviewer/src/main/java/idea/plugin/psiviewer/controller/actions/PsiTestDump.java
package idea.plugin.psiviewer.controller.actions;

import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.psi.PsiFile;
import org.jetbrains.annotations.NotNull;

public class PsiTestDump extends PsiDump {
  public static final String TEST_DATA_SEPARATOR = "-----";

  @Override
  public void actionPerformed(@NotNull AnActionEvent e) {
    PsiFile pf = getFile(e);
    try {
      placeStringInClipboard(pf.getText() +
              '\n' + TEST_DATA_SEPARATOR + '\n' +
              getPsiData(pf));
    } catch (Exception ignored) {
    }
  }
}
