MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / menuAction

Method menuAction

src/main/java/VCard/VCardView.java:211–231  ·  view source on GitHub ↗
(MenuCommand c, VirtualList d)

Source from the content-addressed store, hash-verified

209
210//#ifdef CLIPBOARD
211 public void menuAction(MenuCommand c, VirtualList d) {
212
213 String value = null;
214
215 if (getFocusedObject() instanceof MultiLine) {
216 value = ((MultiLine) getFocusedObject()).toString();
217 }
218 if (value != null) {
219 if (value.length() != 0) {
220
221 if (c == cmdCopy) {
222 ClipBoardIO.getInstance().setClipBoard(value);
223 }
224 if (c == cmdCopyPlus) {
225 ClipBoardIO.getInstance().append(value);
226 }
227 }
228 }
229
230 super.menuAction(c, d);
231 }
232
233//#endif
234}

Callers

nothing calls this directly

Calls 6

getInstanceMethod · 0.95
getFocusedObjectMethod · 0.80
appendMethod · 0.80
menuActionMethod · 0.65
toStringMethod · 0.45
setClipBoardMethod · 0.45

Tested by

no test coverage detected