MCPcopy Create free account
hub / github.com/boazy/TWEditorEnhanced / actionPerformed

Method actionPerformed

src/main/java/EquipPanel.java:106–127  ·  view source on GitHub ↗
(ActionEvent ae)

Source from the content-addressed store, hash-verified

104 }
105
106 public void actionPerformed(ActionEvent ae)
107 {
108 try
109 {
110 String action = ae.getActionCommand();
111 if (action.equals("examine available item"))
112 examineAvailableItem();
113 else if (action.equals("examine current item"))
114 examineCurrentItem();
115 else if (action.equals("add available item"))
116 addSelectedItem();
117 else if (action.equals("remove current item"))
118 removeSelectedItem();
119 }
120 catch (DBException exc) {
121 Main.logException("Unable to process database field", exc);
122 } catch (IOException exc) {
123 Main.logException("An I/O error occurred", exc);
124 } catch (Throwable exc) {
125 Main.logException("Exception while processing action event", exc);
126 }
127 }
128
129 private void examineCurrentItem()
130 throws DBException, IOException

Callers

nothing calls this directly

Calls 6

examineAvailableItemMethod · 0.95
examineCurrentItemMethod · 0.95
addSelectedItemMethod · 0.95
removeSelectedItemMethod · 0.95
logExceptionMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected