]> http://www.topcased.org/uuid http://www.eclipse.org/uml2/2.0.0/UML http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.eclipse.org/uml2/2.0.0/UML http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid edit public networking public model public public view im public InstantMessagincClient_Network_Dependency public http://www.topcased.org/uuid Dependency2 public InstantMessagingClient_edit_Dependency public Dependency1 public InstantMessagingClient_model_Dependency public Dependency3 public Dependency1 public ContactListEdit_InstantMessagingClient_Dependency public A_contactList_contact false false false public A_client_network false false false public A_conversationEdit_model false false false public http://www.topcased.org/uuid A_conversation_contact false false false public A_conversation_message false false false public A_client_viewFactory false false false public A_contactEdit_model false false false public A_conversationEdit_view false false false public A_listEdit_contactEdit false false false public A_network_recvContact false false false public A_ns_network false false false public A_contactListEdit_model false false false public A_client_contactList false false false public http://www.topcased.org/uuid A_client_conversation false false false public A_network_recvMsg false false false public A_contactListEdit_view false false false public A_<instantMessagingClient>_<contactListEdit> false false false public false false false -3374609151465534159L java public java new ContactList() public false false false public read return return true http://www.topcased.org/uuid false false false public read return return true dlg false false false in public read true create false false false in l public true create false false false in m public true false false false public read return return true create e false false false in public true create dlg false false false in public true create false false false public return return true create false false false public return return true c false false false in public read true http://www.topcased.org/uuid false false false in index public true update false false false public read return return true false false false in n public read true false false false in index public true update false false false public read return return true create false false false in public pwd true false false false public read return return true false false false forNw in public read true c false false false in public read true false false false public read return return true http://www.topcased.org/uuid false false false public read return return true create false false false in m public true c false false false in public true update false false false in public read s true create false false false in public true uid c create false false false in public true create false false false public return return true false false false in public read true userId create false false false public return return true create e false false false in public true http://www.topcased.org/uuid http://www.topcased.org/uuid false false false in n public true update create false false false public return return true c create false false false in public true c false false false in public read true create false false false public return return true enabled false false false in public true update c false false false in public true update false false false public read return return true create false false false public return return true false false false public read return return true http://www.topcased.org/uuid c create false false false in public true false false false public read return return true c false false false in public read true create false false false in msg public true c false false false in public read true create false false false in l public true false false false public read return return true c false false false in public read true c false false false in public true update false false false forNw in public read true http://www.topcased.org/uuid false false false in okClicked public read true false false false in okClicked public read true create false false false in public r true false false false in okClicked public read true create dlg false false false in public true create false false false in public r true c false false false in public true update false false false public read return return true false false false in public read s true create false false false in public t true http://www.topcased.org/uuid false false false in public read recipient true create false false false public return return true c false false false in public true update c false false false in public read true false false false public read return return true create false false false public return return true c false false false in public true update create false false false public return return true create false false false public return return true c false false false in public true update http://www.topcased.org/uuid c create false false false in public true false false false in public read recipient true false false false in public read true userId false false false in l public true update create e false false false in public true false false false in n public read true create false false false public return return true contactListEdit false false false false false false none public true client false false false false false false none public true conversationEdit false false false false false false none public true http://www.topcased.org/uuid contactEdit false false false false false false none public true conversation false false false false false false none public true false false false false false false none public status true client false false false false false false none public true false false false false false false public recvContact shared true composite conversation false false false false false false public true contact false false false false false false none public true false false false false false false model none public true false false false false false false public shared true view client composite false false false false false false public true http://www.topcased.org/uuid client false false false false false false none public true client false false false false false false none public true false false false false false false network none public true conversationEdit false false false false false false none public true false false false false false false model none public true content false false false false false false none public true false false false false false false none public sender true false false false false false false public shared true view false false false false false false none public recipient true false false false false false false none ns public true http://www.topcased.org/uuid false false false false false false model none public true contact false false false false false public shared true true false false false false false false message public shared true false false false false false false network none public true false false false false false false none password public true conversation false false false false false false none public true false false false false false false name none public true contactListEdit false false false false false false none public true false false false false false false listEdit none public true composite false false false false false network public true true http://www.topcased.org/uuid false false false false false false public recvMsg shared true composite contactEdit false false false false false public true true false false false false false false network none public true false false false false false false none public true userId false false false false false false none public true viewFactory composite contactList false false false false false false public true false false false false none private serialVersionUID true true true contactList false false false false false false none public true false false false false false false name none public true composite contactListEdit false false false false false false public true http://www.topcased.org/uuid false false false false public sequential toString false false false false onConversationSend public sequential addListener false false false false public sequential false false false false onConversationClose public sequential ContactListEdit false false false false public sequential addContact false false false false public sequential false false false false public send sequential false false false false onContactChange public sequential false false false false public sequential setTitle addNetwork false false false false public sequential http://www.topcased.org/uuid http://www.topcased.org/uuid false false false false public sequential toString false false false false login public sequential false false false false onRecvMsgChange public sequential false false false false init public sequential false false false false getUserName public sequential false false false public report sequential true false false false false onContactListAdd public sequential false false false false public sequential toFront false false false false public removeContact sequential false false false false onMessageChange public sequential http://www.topcased.org/uuid false false false false public report sequential false false false false getName public sequential false false false false getPassword public sequential false false false false public sequential stop false false false getDefault public sequential true false false false false logout public sequential false false false false getContactEditFor private sequential false false false false onContactListRemove public sequential false false false false getUid public sequential false false false false public send sequential http://www.topcased.org/uuid false false false false onContactListAction public sequential false false false false onNewContactDialogClose public sequential ContactEdit false false false false public sequential false false false false onContactListAction public sequential false false false false getNetwork public sequential false false false false public removeContact sequential false false false false onContactChange public sequential addContent false false false false public sequential false false false false getSender public sequential false false false false onStatusChange public sequential http://www.topcased.org/uuid addContact false false false false public sequential false false false false onContactListAdd public sequential false false false false public sequential setEnabled false false false false onConversationClose public sequential false false false false getIdentity public sequential addListener false false false false public sequential false false false false onConversationSend public sequential false false false false onNameChange public sequential false false false false onChange public sequential ConversationEdit false false false false public sequential http://www.topcased.org/uuid false false false false getSelectedContact public sequential addListener false false false false public sequential false false false false onNewContactDialogClose public sequential false false false false public sequential start false false false false onRecvContactChange public sequential false false false false getContent public sequential false false false false onContactListRemove public sequential discoverNetworks false false false public sequential true Conversation false false false public ContactEdit false false false public http://www.topcased.org/uuid ViewFactory false false public true Identity false false false public ConversationEdit false false false public Message false false false public NetworkSpecificData false false public true Contact false false false public ContactListEdit false false false public Network false false public true InstantMessagingClient false false false public ContactList false false false public http://www.topcased.org/uuid Implementation1 public Implementation2 public Implementation1 public ExceptionReporterImplementation public NewContactDialog false false public ConversationViewListener false false public ConversationView false false public ContactListView false false public ExceptionReporter false false public ContactListViewListener false false public http://www.topcased.org/uuid NewContactDialogListener false false public InstantMessengerModel public false false false false false 1 public 0 public 1 public http://www.topcased.org/uuid 1 public 1 public 1 public 1 public 1 public 1 public 1 public 1 public 1 public 0 public http://www.topcased.org/uuid 1 public 1 public 1 public 1 public 1 public 1 public 1 public 1 public 1 public 1 public http://www.topcased.org/uuid http://www.topcased.org/uuid 0 public 1 public 1 public 1 public 1 public 1 public 1 public 1 public 1 public 1 public http://www.topcased.org/uuid 0 public 1 public -1 public 1 public 1 public 1 public 1 public 1 public -1 public 1 public http://www.topcased.org/uuid 1 public 1 public 1 public 1 public 1 public 1 public 1 public -1 public 1 public 1 public http://www.topcased.org/uuid 1 public 1 public 1 public 1 public 1 public -1 public 1 public 1 public 1 public 1 public http://www.topcased.org/uuid 1 public 1 public 1 public 1 public 1 public ContactEditBehavior false false false false java public setModel(c); String[] options = {"im.view.swt.SWTViewFactory", "im.view.swing.SwingViewFactory", "im.view.awt.AWTViewFactory", "im.view.lcdui.LCDUIViewFactory"}; ViewFactory factory = null; for (int i = 0; i < options.length && factory == null; i++) { try { factory = (ViewFactory) Class.forName(options[i]).newInstance(); } catch (Exception e) { } } return factory; ViewFactory_getDefaultBehavior false false false false java public ContactEdit_onStatusChangeBehavior false false false false java onChange(); public InstantMessagingClient_initBehavior false false false false java public try { // ViewFactory setViewFactory(ViewFactory.getDefault()); // Network Network.discoverNetworks(); // Create and register edit/view setContactListEdit(new ContactListEdit(contactList)); } catch (Exception e) { e.printStackTrace(); } ContactListEditBehavior false false false false java public setModel(c); InstantMessagingClient client = InstantMessagingClient.getInstance(); setView(client.getViewFactory().createContactListView()); getView().addListener(this); http://www.topcased.org/uuid ContactListEdit_onNewContactDialogCloseBehavior false false false false if (okClicked) { im.model.Contact c; im.networking.Network n = im.InstantMessagingClient.getInstance() .getNetworkAt(dlg.getNetwork()); if (getModel().getIdentity(n) == null) { im.model.Identity id = new im.model.Identity(); id.setNetwork(n); id.setUserId(dlg.getUid()); id.setName(dlg.getName()); id.setPassword(dlg.getPassword()); c = id; getModel().addContact(c); id.getNetwork().login(id.getUserId(), id.getPassword()); } else { c = new im.model.Contact(); c.setNetwork(n); c.setUserId(dlg.getUid()); c.setName(dlg.getName()); getModel().addContact(c); c.getNetwork().addContact(c); } } getView().setEnabled(true); java public ContactList_getIdentityBehavior false false false false for (java.util.Enumeration cs = getContacts(); cs.hasMoreElements();) { Contact contact = (Contact) cs.nextElement(); if ((contact instanceof Identity) && (contact.getNetwork() == forNw)) { return (Identity) contact; } } return null; java public InstantMessagingClient_onRecvContactChangeBehavior false false false false for (java.util.Enumeration cs = getContactList().getContacts(); cs .hasMoreElements();) { Contact listed = (Contact) cs.nextElement(); if (listed.getUserId().equals(c.getUserId())) { if (c.getStatus() != null) { listed.setStatus(c.getStatus()); } if (c.getName() != null) { listed.setName(c.getName()); } return; } } getContactList().addContact(c); java public Message_sendBehavior false false false false if (getNetwork() != null) { getNetwork().send(this); } java public Network_discoverNetworksBehavior String[] options = {"im.networking.jabber.mejabber.MEJabber", "im.networking.jabber.defaultjabber.DefaultJabber", "im.networking.sms.SMS", "im.networking.local.Local"}; im.InstantMessagingClient client = im.InstantMessagingClient .getInstance(); for (int i = 0; i < options.length; i++) { try { client.addNetwork((Network) Class.forName(options[i]) .newInstance()); } catch (Exception e) { } } false false false false java public ConversationEdit_getSenderBehavior false false false false im.InstantMessagingClient c = im.InstantMessagingClient.getInstance(); return c.getContactList().getIdentity(recipient.getNetwork()); java public ContactListEdit_onContactListRemoveBehavior false false false false int index = getView().getSelectedContact(); if (index > -1) { im.model.Contact c = getModel().getContactAt(index); if (c instanceof im.model.Identity) { im.model.Identity id = (im.model.Identity) c; id.getNetwork().logout(); } else { c.getNetwork().removeContact(c); } getModel().removeContact(c); } java public InstantMessagingClient_stopBehavior false false false false for (java.util.Enumeration ns = getNetworks(); ns.hasMoreElements();) { Network n = (Network) ns.nextElement(); if (getContactList().getIdentity(n) != null) { n.logout(); } } java public Contact_toStringBehavior false false false false final StringBuffer fmt = new StringBuffer(); final String name = getName(); final String status = getStatus(); fmt.append(" "); fmt.append((name == null) ? getUserId() : name); if (getNetwork() != null) { fmt.append(" - "); fmt.append(getNetwork().getName()); } fmt.append(" ("); fmt.append((status == null) ? "offline" : status); fmt.append(")"); return fmt.toString(); java public ContactListEdit_getContactEditForBehavior false false false false for (java.util.Enumeration ces = getContactEdits(); ces .hasMoreElements();) { ContactEdit ce = (ContactEdit) ces.nextElement(); if (ce.getModel().equals(c)) { return ce; } } return null; java public http://www.topcased.org/uuid ContactListEdit_onContactListAddBehavior false false false false getView().setEnabled(false); im.InstantMessagingClient client = im.InstantMessagingClient .getInstance(); im.view.NewContactDialog dlg = client.getViewFactory() .createNewContactDialog(); for (java.util.Enumeration ns = client.getNetworks(); ns .hasMoreElements();) { dlg .addNetwork(((im.networking.Network) ns.nextElement()) .getName()); } dlg.addListener(this); java public ConversationEditBehavior false false false false java public setModel(c); im.InstantMessagingClient client = im.InstantMessagingClient .getInstance(); setView(client.getViewFactory().createConversationView()); getView().addListener(this); ConversationEdit_onConversationCloseBehavior false false false false im.InstantMessagingClient.getInstance().removeConversation(getModel()); java public ConversationEdit_onContactChangeBehavior false false false false if (c.getName() != null) { getView().setTitle(c.getName()); } else if (c.getUserId() != null) { getView().setTitle(c.getUserId()); } getView().toFront(); java public InstantMessagingClient_onRecvMsgChangeBehavior false false false false for (java.util.Enumeration cs = getConversations(); cs .hasMoreElements();) { Conversation c = (Conversation) cs.nextElement(); String contact = c.getContact().getUserId(); if (contact.equals(r.getSender())) { c.setMessage(r); return; } } Conversation conv = new Conversation(); new ConversationEdit(conv); addConversation(conv); for (java.util.Enumeration cs = getContactList().getContacts(); cs .hasMoreElements();) { Contact c = (Contact) cs.nextElement(); if (c.getUserId().equals(r.getSender())) { conv.setContact(c); break; } } if (conv.getContact() == null) { conv.setContact(new Contact()); conv.getContact().setUserId(r.getSender()); } conv.setMessage(r); java public InstantMessagingClient_reportBehaviour false false false false for (java.util.Enumeration ns = getNetworks(); ns.hasMoreElements();) { Object n = ns.nextElement(); if (n instanceof ExceptionReporter) { ((ExceptionReporter) n).report(e); return; } } System.err.println(e.getMessage()); e.printStackTrace(); java public InstantMessagingClient_startBehavior boolean hasID = false; for (java.util.Enumeration ns = getNetworks(); ns.hasMoreElements();) { Network n = (Network) ns.nextElement(); Identity id = getContactList().getIdentity(n); if (id != null) { n.login(id.getUserId(), id.getPassword()); hasID = true; } } if (!hasID) { getContactListEdit().onContactListAdd(); } false false false false java public ConversationEdit_onConversationSendBehavior false false false false java public try { im.model.Contact recipient = getModel().getContact(); if (recipient == null) { throw new NullPointerException( "No recipient available in ConversationEdit.onConversationSend()"); } im.model.Contact sender = getSender(recipient); if (sender == null) { throw new NullPointerException( "No sender available in ConversationEdit.onConversationSend()"); } im.model.Message msg = new im.model.Message(); msg.setNetwork(recipient.getNetwork()); msg.setSender(sender.getUserId()); msg.setRecipient(recipient.getUserId()); msg.setContent(getView().getContent()); msg.send(); getModel().setMessage(msg); } catch (Exception e) { im.InstantMessagingClient.getInstance().report(e); } ContactEdit_onNameChangeBehavior false false false false java onChange(); public ContactListEdit_onContactListActionBehavior false false false false int index = getView().getSelectedContact(); if (index > -1) { im.model.Contact c = getModel().getContactAt(index); im.InstantMessagingClient client = im.InstantMessagingClient .getInstance(); // reuse existing conversation, if any for (java.util.Enumeration cs = client.getConversations(); cs .hasMoreElements();) { im.model.Conversation conv = (im.model.Conversation) cs .nextElement(); im.model.Contact contact = conv.getContact(); if (contact.equals(c)) { conv.setContact(new im.model.Contact()); conv.setContact(c); return; } } // else new conversation im.model.Conversation conv = new im.model.Conversation(); new ConversationEdit(conv); client.addConversation(conv); conv.setContact(c); } java public http://www.topcased.org/uuid ConversationEdit_onMessageChangeBehavior false false false false if (m.getContent() instanceof String) { im.model.ContactList list = im.InstantMessagingClient.getInstance() .getContactList(); getView().addContent( list.getUserName(m.getSender()) + ": " + m.getContent()); } else { getView().addContent(m.getContent()); } getView().toFront(); java public ContactList_getUserNameBehavior false false false false for (java.util.Enumeration cs = getContacts(); cs.hasMoreElements();) { Contact contact = (Contact) cs.nextElement(); if (contact.getUserId().equals(userId)) { if (contact.getName() == null) { return contact.getUserId(); } else { return contact.getName(); } } } return userId; java public ContactEdit_onChangeBehavior false false false false int index = getListEdit().getIndexOfContactEdit(this); if (index > -1) { getListEdit().getView().removeContact(index); getListEdit().getView().addContact(getModel(), index); } java public Identity_toStringBehavior false false false false java public return "* " + super.toString().substring(2); ContactListEdit_onContactChangeBehavior false false false false int index = getModel().getIndexOfContact(c); if (index > -1) { ContactEdit edit = new ContactEdit(c); insertContactEdit(edit, index); getView().addContact(c, index); } else { ContactEdit edit = getContactEditFor(c); index = getIndexOfContactEdit(edit); getView().removeContact(index); removeContactEdit(edit); } java public http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.eclipse.org/uml2/2.0.0/UML http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.eclipse.org/uml2/2.0.0/UML http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.eclipse.org/uml2/2.0.0/UML http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid http://www.topcased.org/uuid