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);
}
}
idea插件开发——持久化数据
最新推荐文章于 2024-05-02 10:20:53 发布