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

Method RecreateTable

src/main/java/core/packetproxy/model/Packets.java:261–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259 }
260
261 private void RecreateTable() throws Exception {
262 int option = JOptionPane.showConfirmDialog(null, "packetsテーブルの形式が更新されているため\n現在のテーブルを削除して再起動しても良いですか?",
263 "テーブルの更新", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
264 if (option == JOptionPane.YES_OPTION) {
265
266 database.dropTable(Packet.class);
267 dao = database.createTable(Packet.class);
268 }
269 }
270
271 @Override
272 public void propertyChange(PropertyChangeEvent evt) {

Callers 1

PacketsMethod · 0.95

Calls 2

dropTableMethod · 0.80
createTableMethod · 0.80

Tested by

no test coverage detected