1 21 22 package org.opensubsystems.core.application.swt; 23 24 import org.eclipse.swt.graphics.Image; 25 import org.eclipse.swt.widgets.Composite; 26 import org.opensubsystems.core.application.ExitModule; 27 28 36 public class SWTExitModule extends ExitModule 37 implements SWTThickClientModule 38 { 39 41 44 public Composite getClientArea() 45 { 46 return null; 47 } 48 49 52 public Image[] getToolbarImages( 53 SWTThickClientGui gui 54 ) 55 { 56 Image[] images = new Image[3]; 57 58 images[0] = gui.m_redImage; 60 images[1] = gui.m_grayImage; 61 images[2] = gui.m_greenImage; 62 63 return images; 64 } 65 66 68 71 protected void closeMainWindow() 72 { 73 if (!((SWTThickClientGui)(m_client.getGui())).getShell().isDisposed()) 74 { 75 ((SWTThickClientGui)(m_client.getGui())).getShell().close(); 76 } 77 } 78 } 79 | Popular Tags |