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

Method examineCurrentItem

src/main/java/InventoryPanel.java:152–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 }
151
152 private void examineCurrentItem()
153 throws DBException, IOException
154 {
155 int sel = this.itemsField.getSelectedIndex();
156 if (sel < 0) {
157 JOptionPane.showMessageDialog(this, "You must select an item to examine", "No item selected", 0);
158
159 return;
160 }
161
162 InventoryItem item = (InventoryItem)this.itemsModel.getElementAt(sel);
163
164 examineItem(item.getName(), (DBList)item.getElement().getValue());
165 }
166
167 private void examineAvailableItem()
168 throws DBException, IOException

Callers 1

actionPerformedMethod · 0.95

Calls 4

examineItemMethod · 0.95
getNameMethod · 0.95
getElementMethod · 0.95
getValueMethod · 0.45

Tested by

no test coverage detected