-
Notifications
You must be signed in to change notification settings - Fork 1
/
NewAndNoteworthy_0.8.2.html
136 lines (120 loc) · 4.68 KB
/
NewAndNoteworthy_0.8.2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ECF New and Noteworthy</title>
<link rel="stylesheet" href="http://www.eclipse.org/default_style.css" type="text/css">
</head>
<body bgcolor="#FFFFFF">
<table border=0 cellspacing=5 cellpadding=2 width="100%">
<tbody>
<tr>
<td width="69%" class="bannertext">
<font class="indextop style">eclipse communication framework</font>
<br><br>
<font class="indexsub">an eclipse technology subproject</font>
<br><br>
<font class="indextop style2">New and Noteworthy</font><br>0.8.2 Stable Release</font>
<br><br><br>
Return to <a href="downloads.php">ECF download page</a></br>
Return to <a href="comm_resources.php">ECF communication resources page</a>
<br><br>
<a href="NewAndNoteworthy_0.4.0.html">New and Noteworthy for 0.4.0</a><br>
<a href="NewAndNoteworthy_0.5.2.html">New and Noteworthy for 0.5.2</a><br>
<a href="NewAndNoteworthy_0.5.4.html">New and Noteworthy for 0.5.4</a><br>
<a href="NewAndNoteworthy_0.6.0.html">New and Noteworthy for 0.6.0</a><br>
<a href="NewAndNoteworthy_0.6.2.html">New and Noteworthy for 0.6.2</a><br>
<a href="NewAndNoteworthy_0.7.0.html">New and Noteworthy for 0.7.0</a><br>
<a href="NewAndNoteworthy_0.7.5.html">New and Noteworthy for 0.7.5</a><br>
<a href="NewAndNoteworthy_0.7.6.html">New and Noteworthy for 0.7.6</a><br>
<a href="NewAndNoteworthy_0.8.0.html">New and Noteworthy for 0.8.0</a><br>
<a href="NewAndNoteworthy_0.8.1.html">New and Noteworthy for 0.8.1</a>
</td>
<td width="31%">
<div align="center">
<img src="../images/Idea.jpg" width="120" height="86" hspace="50" align="middle">
</div>
</td>
</tr>
</tbody>
</table>
<table>
<TR> <!----------------------------------------------------->
<TD colSpan=2> <HR> </TD>
</TR>
<TR><TD colSpan=2><H2>New Features</H2></TD>
<TR>
<TD vAlign=top align=left width="30%">
<P align=left>
<B>Preference Page for Managing Automatic Logins</B>
</P>
</TD>
<TD vAlign=top width="70%">
<p><br></p>
<P>A preference page underneath the 'Team' category has been added to allow the removal of automatic logins. </p>
<p><img src="images/screens/autologinpref.png"></p>
<p></p>
</TD>
</TR>
<TR>
<TD vAlign=top align=left width="30%">
<P align=left>
<B>New Test Case for Zeroconf Discovery</B>
</P>
</TD>
<TD vAlign=top width="70%">
<p><br></p>
<P>There is a new test case in the <b>org.eclipse.ecf.test</b> plugin to test the Zeroconf-based discovery <b>DiscoveryTest</b></p>
<pre>
package org.eclipse.ecf.test;
import org.eclipse.ecf.core.ContainerFactory;
import org.eclipse.ecf.core.IContainer;
import org.eclipse.ecf.core.identity.ServiceID;
import org.eclipse.ecf.discovery.IDiscoveryContainer;
import org.eclipse.ecf.discovery.IServiceEvent;
import org.eclipse.ecf.discovery.IServiceListener;
import org.eclipse.ecf.discovery.IServiceTypeListener;
import junit.framework.TestCase;
public class DiscoveryTest extends TestCase {
static IContainer container = null;
static IDiscoveryContainer discoveryContainer = null;
public final void testDiscovery() throws Exception {
container = ContainerFactory.getDefault().createContainer(
"ecf.discovery.jmdns");
container.connect(null, null);
discoveryContainer = (IDiscoveryContainer) container
.getAdapter(IDiscoveryContainer.class);
discoveryContainer
.addServiceTypeListener(new CollabServiceTypeListener());
System.out.println("Discovery started. Waiting 20s for discovered services");
Thread.sleep(20000);
}
class CollabServiceTypeListener implements IServiceTypeListener {
public void serviceTypeAdded(IServiceEvent event) {
System.out.println("serviceTypeAdded(" + event + ")");
ServiceID svcID = event.getServiceInfo().getServiceID();
discoveryContainer.addServiceListener(svcID,
new CollabServiceListener());
discoveryContainer.registerServiceType(svcID);
}
}
class CollabServiceListener implements IServiceListener {
public void serviceAdded(IServiceEvent event) {
System.out.println("serviceAdded(" + event + ")");
discoveryContainer.requestServiceInfo(event.getServiceInfo()
.getServiceID(), 3000);
}
public void serviceRemoved(IServiceEvent event) {
System.out.println("serviceRemoved(" + event + ")");
}
public void serviceResolved(IServiceEvent event) {
System.out.println("serviceResolved(" + event + ")");
}
}
}
</pre>
</TD>
</TR>
</table>
</body>
</html>