mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] restores API compatibility with a retrograde plugin
This commit is contained in:
@@ -11,6 +11,9 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jvnet.winp.WinProcess;
|
||||
|
||||
import java.lang.management.ManagementFactory;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class OSProcessUtil {
|
||||
private static final Logger LOG = Logger.getInstance(OSProcessUtil.class);
|
||||
@@ -123,4 +126,13 @@ public class OSProcessUtil {
|
||||
|
||||
return String.valueOf(ourPid);
|
||||
}
|
||||
|
||||
/** @deprecated trivial; use {@link #getProcessList()} directly (to be removed in IDEA 2019) */
|
||||
public static List<String> getCommandLinesOfRunningProcesses() {
|
||||
List<String> result = new ArrayList<>();
|
||||
for (ProcessInfo each : getProcessList()) {
|
||||
result.add(each.getCommandLine());
|
||||
}
|
||||
return Collections.unmodifiableList(result);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user