use of alma.acs.nc.StructuredEventCreator in project ACS by ACS-Community.
the class EventDetailTestHarness method main.
/**
* @param args
*/
public static void main(String[] args) {
EventModel em = null;
try {
em = EventModel.getInstance();
logger = em.getLogger();
} catch (Exception e) {
e.printStackTrace();
System.out.println("Couldn't create the Event Model.");
System.exit(1);
}
seCreator = new StructuredEventCreator(em.getContainerServices());
Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
new EventDetailTestHarness(shell);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
Aggregations