MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / pasteData

Method pasteData

src/main/java/Archive/ArchiveList.java:175–192  ·  view source on GitHub ↗
(int field)

Source from the content-addressed store, hash-verified

173 }
174
175 public void pasteData(int field) {
176 if (t==null) return;
177 Msg m=getMessage(cursor);
178 if (m==null) return;
179 String data;
180 switch (field) {
181 case 1:
182 data=m.subject;
183 break;
184 case 2:
185 data=m.from;
186 break;
187 default:
188 data=m.quoteString(true);
189 }
190 t.insert(data, caretPos);
191 destroyView();
192 }
193
194 public void destroyView() {
195 archive.close();

Callers 3

menuActionMethod · 0.95
keyGreenMethod · 0.95
doUserKeyActionMethod · 0.95

Calls 4

getMessageMethod · 0.95
quoteStringMethod · 0.95
destroyViewMethod · 0.95
insertMethod · 0.65

Tested by

no test coverage detected