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

Method menuAction

src/main/java/Info/InfoWindow.java:121–142  ·  view source on GitHub ↗
(MenuCommand command, VirtualList displayable)

Source from the content-addressed store, hash-verified

119 }
120
121 public void menuAction(MenuCommand command, VirtualList displayable) {
122//#ifdef CLIPBOARD
123 if (command == cmdCopy) {
124 try {
125 String str = ((MultiLine) getFocusedObject()).toString();
126 if (str == null)
127 str = "";
128 ClipBoardIO.getInstance().setClipBoard(str);
129 } catch (Exception e) {}
130 }
131
132 if (command == cmdCopyPlus) {
133 try {
134 String str = ((MultiLine) getFocusedObject()).toString();
135 if (str == null)
136 str = "";
137 ClipBoardIO.getInstance().append(str);
138 } catch (Exception e) {}
139 }
140//#endif
141 super.menuAction(command, displayable);
142 }
143
144 public void cmdOk() {
145 destroyView();

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