package Examples.Z_Tools_And_Others;
public class Tools {
public static void popConnectedRendezvous(RendezVousService TheRendezVous, String Name) {
Enumeration<ID> TheList = TheRendezVous.getConnectedRendezVous();
int Count = 0;
while (TheList.hasMoreElements()) {
Count = Count + 1;
PopInformationMessage(Name, "Connected to rendezvous:\n\n"
+ TheList.nextElement().toString());
}
if (Count==0) {
PopInformationMessage(Name, "No rendezvous connected to this rendezvous!");
}
}
TheList isnt working .The method getConnectedRendezVous is removed in 2.7 . The one that is replacing it is returning a List .That creates more errors later . Should i change the code so that it works for a List ?I thought i could use a listIterator to replace .nextElement() Same problem exists with popConnectedPeers(RendezVousService TheRendezVous, String Name) of same class.
Also line 166 in
package Examples.K_Service;
public class _710_Astrology_Service_Example implements Service, Runnable
Result.setCompat(StdPeerGroup.STD_COMPAT);
STD_COMPAT is removed . I replaced it with this :
ModuleImplAdvertisement ad =StdPeerGroup.getDefaultModuleImplAdvertisement();
Result.setCompat(ad.getCompat());
No idea if its good or not..code compiles tho :P