package cn.weblab.plugin.util;
import com.intellij.ide.util.PropertiesComponent;
import com.intellij.openapi.project.Project;
public class PersistenceUtil {
public static PropertiesComponent applicationComponent = PropertiesComponent.getInstance();
public static String getValue(String key) {
return applicationComponent.getValue(key);
}
public static String getValue(Project project, String key) {
PropertiesComponent projectComponent = PropertiesComponent.getInstance(project);
return projectComponent.getValue(key);
}
}
11-30
3435
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)