public void sendHighlightTypes() { // send highlightTypes to everybody try { Iterator i = highlights.getHighlightTypes().iterator(); while (i.hasNext()) { HighlightType type = (HighlightType) i.next(); if (EditorServer_Debug) System.out.println("EditorServer: sendHighlightTypes. " + String.valueOf(type.getId())); Message.HighlightTypeMsg msg = new Message.HighlightTypeMsg(-1, type.getId(), type.getName(), type.getColor()); textChannel.sendToOthers(client, new Data(msg)); } } catch (Exception e) { System.err.println("EditorServer: sendHighlightTypes: error sending msg"); if (EditorServer_Debug) e.printStackTrace(); } }