@@ -55,7 +55,13 @@ public void start() throws Exception {
5555				"ClipboardTest" , // 
5656				"ClipboardCommands" , // 
5757				"ClipboardCommandsImpl" , // 
58- 				"ClipboardTest$LocalHostOnlySocketFactory"  // 
58+ 				"ClipboardTest$FileListSelection" , // 
59+ 				"ClipboardTest$HtmlSelection" , // 
60+ 				"ClipboardTest$ImageSelection" , // 
61+ 				"ClipboardTest$LocalHostOnlySocketFactory" , // 
62+ 				"ClipboardTest$MyTypeSelection" , // 
63+ 				"ClipboardTest$RtfSelection" , // 
64+ 				"ClipboardTest$UrlSelection"  // 
5965		).forEach ((f ) -> {
6066			// extract the files and put them in the temp directory 
6167			SwtTestUtil .copyFile ("/clipboard/"  + f  + ".class" ,
@@ -85,6 +91,7 @@ public void start() throws Exception {
8591			throw  new  RuntimeException ("Failed to get port" );
8692		});
8793		assertNotEquals (0 , port );
94+ 
8895		try  {
8996			Registry  reg  = LocateRegistry .getRegistry ("127.0.0.1" , port );
9097			long  stopTime  = System .currentTimeMillis () + 10000 ;
@@ -186,6 +193,11 @@ public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOEx
186193		}
187194	}
188195
196+ 	@ Override 
197+ 	public  void  setContents (String  string ) throws  RemoteException  {
198+ 		setContents (string , CLIPBOARD );
199+ 	}
200+ 
189201	@ Override 
190202	public  void  setContents (String  string , int  clipboardId ) throws  RemoteException  {
191203		remote .setContents (string , clipboardId );
@@ -196,6 +208,11 @@ public void setFocus() throws RemoteException {
196208		remote .setFocus ();
197209	}
198210
211+ 	@ Override 
212+ 	public  String  getStringContents () throws  RemoteException  {
213+ 		return  getStringContents (CLIPBOARD );
214+ 	}
215+ 
199216	@ Override 
200217	public  String  getStringContents (int  clipboardId ) throws  RemoteException  {
201218		return  remote .getStringContents (clipboardId );
@@ -207,7 +224,68 @@ public void waitUntilReady() throws RemoteException {
207224	}
208225
209226	@ Override 
210- 	public  void  waitForButtonPress ()   throws  RemoteException  {
227+ 	public  void  waitForButtonPress () throws  RemoteException  {
211228		remote .waitForButtonPress ();
212229	}
230+ 
231+ 	@ Override 
232+ 	public  void  setRtfContents (String  test ) throws  RemoteException  {
233+ 		remote .setRtfContents (test );
234+ 	}
235+ 
236+ 	@ Override 
237+ 	public  String  getRtfContents () throws  RemoteException  {
238+ 		return  remote .getRtfContents ();
239+ 	}
240+ 
241+ 	@ Override 
242+ 	public  void  setHtmlContents (String  test ) throws  RemoteException  {
243+ 		remote .setHtmlContents (test );
244+ 	}
245+ 
246+ 	@ Override 
247+ 	public  String  getHtmlContents () throws  RemoteException  {
248+ 		return  remote .getHtmlContents ();
249+ 	}
250+ 
251+ 	@ Override 
252+ 	public  void  setUrlContents (byte [] test ) throws  RemoteException  {
253+ 		remote .setUrlContents (test );
254+ 	}
255+ 
256+ 	@ Override 
257+ 	public  byte [] getUrlContents () throws  RemoteException  {
258+ 		return  remote .getUrlContents ();
259+ 	}
260+ 
261+ 	@ Override 
262+ 	public  void  setImageContents (byte [] imageContents ) throws  RemoteException  {
263+ 		remote .setImageContents (imageContents );
264+ 	}
265+ 
266+ 	@ Override 
267+ 	public  byte [] getImageContents () throws  RemoteException  {
268+ 		return  remote .getImageContents ();
269+ 	}
270+ 
271+ 	@ Override 
272+ 	public  void  setFileListContents (String [] fileList ) throws  RemoteException  {
273+ 		remote .setFileListContents (fileList );
274+ 	}
275+ 
276+ 	@ Override 
277+ 	public  String [] getFileListContents () throws  RemoteException  {
278+ 		return  remote .getFileListContents ();
279+ 	}
280+ 
281+ 	@ Override 
282+ 	public  void  setMyTypeContents (byte [] bytes ) throws  RemoteException  {
283+ 		remote .setMyTypeContents (bytes );
284+ 	}
285+ 
286+ 	@ Override 
287+ 	public  byte [] getMyTypeContents () throws  RemoteException  {
288+ 		return  remote .getMyTypeContents ();
289+ 	}
290+ 
213291}
0 commit comments