MCPcopy Index your code
hub / github.com/TheKingOfDuck/Copy2Java / stateChanged

Method stateChanged

src/main/java/burp/Windows.java:66–78  ·  view source on GitHub ↗
(ChangeEvent e)

Source from the content-addressed store, hash-verified

64
65 setproxy.addChangeListener(new ChangeListener() {
66 public void stateChanged(ChangeEvent e) {
67 //System.out.println(setproxy.isSelected());
68 String[] proxyStr = proxy.getText().split(":");
69
70 if(setproxy.isSelected()) {
71 String code = textArea.getText().toString().replace("setProxy(false)", "setProxy(true)");
72 code = code.replace("127.0.0.1",proxyStr[0]).replace("8080",proxyStr[1]);
73 textArea.setText(code);
74 }else {
75 String code = textArea.getText().toString().replace("setProxy(true)", "setProxy(false)");
76 textArea.setText(code);
77 }
78 }
79 });
80
81

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected