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

Method actionPerformed

src/main/java/InventoryPanel.java:129–150  ·  view source on GitHub ↗
(ActionEvent ae)

Source from the content-addressed store, hash-verified

127 }
128
129 public void actionPerformed(ActionEvent ae)
130 {
131 try
132 {
133 String action = ae.getActionCommand();
134 if (action.equals("examine available item"))
135 examineAvailableItem();
136 else if (action.equals("examine current item"))
137 examineCurrentItem();
138 else if (action.equals("add available item"))
139 addSelectedItem();
140 else if (action.equals("remove current item"))
141 removeSelectedItem();
142 }
143 catch (DBException exc) {
144 Main.logException("Unable to process database field", exc);
145 } catch (IOException exc) {
146 Main.logException("An I/O error occurred", exc);
147 } catch (Throwable exc) {
148 Main.logException("Exception while processing action event", exc);
149 }
150 }
151
152 private void examineCurrentItem()
153 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