MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / update

Method update

src/main/java/core/packetproxy/gui/GUIPacket.java:110–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 }
109
110 public void update() {
111 if (showing_packet == null) {
112
113 return;
114 }
115 switch (packet_pane.getSelectedIndex()) {
116
117 case 0 :
118 received_panel.setData(showing_packet.getReceivedData());
119 break;
120 case 1 :
121 decoded_panel.setData(showing_packet.getDecodedData());
122 break;
123 case 2 :
124 modified_panel.setData(showing_packet.getModifiedData());
125 break;
126 case 3 :
127 sent_panel.setData(showing_packet.getSentData());
128 break;
129 case 4 :
130 all_panel.setPacket(showing_packet);
131 break;
132 default :
133 }
134 }
135
136 public void setPacket(Packet packet) {
137 if (showing_packet != null && showing_packet.getId() == packet.getId()) {

Callers 15

stateChangedMethod · 0.95
setPacketMethod · 0.95
mouseClickedMethod · 0.45
actionPerformedMethod · 0.45
processMethod · 0.45
mouseClickedMethod · 0.45
mouseClickedMethod · 0.45
mouseClickedMethod · 0.45
mouseClickedMethod · 0.45
actionPerformedMethod · 0.45
mouseClickedMethod · 0.45
mouseClickedMethod · 0.45

Calls 7

getReceivedDataMethod · 0.80
getDecodedDataMethod · 0.80
getModifiedDataMethod · 0.80
getSentDataMethod · 0.80
getSelectedIndexMethod · 0.45
setDataMethod · 0.45
setPacketMethod · 0.45

Tested by

no test coverage detected