1 package com.jetbrains.edu.coursecreator.projectView;
3 import com.intellij.ide.projectView.PresentationData;
4 import com.intellij.ide.projectView.ViewSettings;
5 import com.intellij.ide.projectView.impl.nodes.PsiFileNode;
6 import com.intellij.openapi.project.Project;
7 import com.intellij.psi.PsiFile;
8 import com.intellij.ui.SimpleTextAttributes;
11 * represents a file which is invisible for student in student mode
13 public class CCStudentInvisibleFileNode extends PsiFileNode {
14 private final String myName;
16 public CCStudentInvisibleFileNode(Project project,
18 ViewSettings viewSettings) {
19 super(project, value, viewSettings);
20 myName = value.getName();
23 public CCStudentInvisibleFileNode(Project project,
25 ViewSettings viewSettings,
27 super(project, value, viewSettings);
33 protected void updateImpl(PresentationData data) {
34 super.updateImpl(data);
36 data.addText(myName, SimpleTextAttributes.GRAY_ATTRIBUTES);