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

Method cmdAdd

src/main/java/Client/Roster.java:1962–1979  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1960 }
1961
1962 public void cmdAdd() {
1963 if (isLoggedIn()) {
1964 Object o = getFocusedObject();
1965 Contact cn = null;
1966 if (o instanceof Contact) {
1967 cn = (Contact) o;
1968 if (cn.getGroupType() != Groups.TYPE_NOT_IN_LIST && cn.getGroupType() != Groups.TYPE_SEARCH_RESULT) {
1969 cn = null;
1970 }
1971 }
1972//#ifndef WMUC
1973 if (o instanceof MucContact) {
1974 cn = (Contact) o;
1975 }
1976//#endif
1977 new ContactEdit(cn);
1978 }
1979 }
1980
1981//#ifndef WMUC
1982 public void reEnterRoom(Group group) {

Callers 1

menuActionMethod · 0.95

Calls 3

isLoggedInMethod · 0.95
getGroupTypeMethod · 0.95
getFocusedObjectMethod · 0.80

Tested by

no test coverage detected