MCPcopy Create free account
hub / github.com/TheCyaniteProject/exit_code_java / killCommand

Method killCommand

src/main/java/exitcode/Apps.java:158–168  ·  view source on GitHub ↗
(Integer pid)

Source from the content-addressed store, hash-verified

156 /*/
157
158 public static void killCommand(Integer pid) { // This is for "kill x"
159 Apps.open_windows.remove(Apps.apps.get(pid).get(0));
160 Desktop.main_root.getChildren().remove(Apps.apps.get(pid).get(0));
161 //Pid stuff
162 Logger.messageCustom("APP", String.format("Killed %s, PID: %s", Apps.apps.get(pid).get(1) , pid));
163 Iterator<Integer> iterate = apps.keySet().iterator();
164 while (iterate.hasNext()) {
165 ArrayList<Object> i = apps.get(iterate.next());
166 iterate.remove();
167 }
168 }
169
170 public static int get_processID() {
171 int id_number = 1;

Callers 1

runMethod · 0.95

Calls 2

messageCustomMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected