- I just use
String path = System.getProperty("idea.config.path");
inactionPerformed
method,then I got null.. - But when debugging my plugin, this property can be found and value is
C:\Users\myusername\.IntelliJIdea2017.1\system\plugins-sandbox
- At last,I use
System.getProperties().store(new FileWriter(new File("C:/temp/a.txt")), "");
to get all properties into a file,and there really doesn't exist a"idea.config.path"
property ina.txt
file
Asked
Active
Viewed 289 times
0
1 Answers
1
You should use the API instead.
com.intellij.openapi.application.PathManager#getConfigPath

CrazyCoder
- 389,263
- 172
- 990
- 904
-
May I ask an other question.. I just use this [example](https://stackoverflow.com/questions/18725340/create-a-background-task-in-intellij-plugin) to read file in background task,and then I got "Access is allowed from event dispatch thread only." what should I do... – xinkun Aug 24 '17 at 01:07
-
I've already replied to your question via the support ticket, please see http://www.jetbrains.org/intellij/sdk/docs/basics/architectural_overview/general_threading_rules.html for details. Don't ask multiple question in one or in the comments for the answer. Always submit a new question instead. Also consider accepting the answer if it was helpful. Please see https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work. – CrazyCoder Aug 24 '17 at 01:08