Search in sources :

Example 1 with EventModel

use of alma.acs.eventbrowser.model.EventModel 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();
}
Also used : EventModel(alma.acs.eventbrowser.model.EventModel) Shell(org.eclipse.swt.widgets.Shell) StructuredEventCreator(alma.acs.nc.StructuredEventCreator) FillLayout(org.eclipse.swt.layout.FillLayout) AcsJException(alma.acs.exceptions.AcsJException) Display(org.eclipse.swt.widgets.Display)

Aggregations

EventModel (alma.acs.eventbrowser.model.EventModel)1 AcsJException (alma.acs.exceptions.AcsJException)1 StructuredEventCreator (alma.acs.nc.StructuredEventCreator)1 FillLayout (org.eclipse.swt.layout.FillLayout)1 Display (org.eclipse.swt.widgets.Display)1 Shell (org.eclipse.swt.widgets.Shell)1