Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

SWT Layer usage

jpeterka edited this page Aug 10, 2012 · 10 revisions

SWT Layer(draft, incubation)

SWT Layer provides API for SWT direct Widgets and Control manipulation partially based on SWTBot and other API.

Usage

just add org.jboss.reddeer.swt into your MANIFEST.MF

Basic client usage examples


// Object lookup
Shell shell = new WorkbenchShell();	
// Object state read
assertEquals("Eclipse",shell.getTitle());

// Object lookup
Button button = new PushButton("Ok");
// Object manipulation
button.click();

Exception handling


WidgetNotAvailableException - widget was not found or it's unavailable, usually thrown by widget constructor
WidgetLostException() - widget was available but it's lost, usually thrown by widget method
DuplicateWidgetException() - multiple objects fulfils matching criteria 

Clone this wiki locally