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

Method menuAction

src/main/java/Messages/MessageList.java:101–137  ·  view source on GitHub ↗
(MenuCommand c, VirtualList d)

Source from the content-addressed store, hash-verified

99 protected boolean smiles;
100
101 public void menuAction(MenuCommand c, VirtualList d) {
102 if (c == cmdBack) {
103 destroyView();
104 }
105
106 Object o = getFocusedObject();
107 if (o == null) {
108 return;
109 }
110 MessageItem mi = (MessageItem) o;
111 if (mi.msg == null || mi.msg.body == null) {
112 return;
113 }
114
115 if (c == cmdUrl) {
116 Vector urls = mi.getUrlList();
117 if (urls != null) {
118 new MessageUrl(urls);
119 }
120 }
121
122 if (c == cmdxmlSkin) {
123 if (mi.msg.body.indexOf("xmlSkin") > -1) {
124 ColorTheme.loadSkin(mi.msg.body, 2);
125 }
126 }
127
128//#ifdef CLIPBOARD
129 if (c == cmdCopy) {
130 ClipBoardIO.getInstance().set(mi.msg);
131 }
132
133 if (c == cmdCopyPlus) {
134 ClipBoardIO.getInstance().append(mi.msg);
135 }
136//#endif
137 }
138
139 public void commandState() {
140//#ifdef CLIPBOARD

Callers

nothing calls this directly

Calls 7

getUrlListMethod · 0.95
loadSkinMethod · 0.95
getInstanceMethod · 0.95
getFocusedObjectMethod · 0.80
appendMethod · 0.80
destroyViewMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected