javauis/eswt_qt/org.eclipse.swt/Eclipse_SWT_PI/common_j2se/org/eclipse/swt/internal/ExitNotificationWrapper.java
changeset 21 2a9601315dfc
child 48 e0d6e9bd3ca7
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*******************************************************************************
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved. This program and the accompanying materials 
       
     4  * are made available under the terms of the Eclipse Public License v1.0
       
     5  * which accompanies this distribution, and is available at
       
     6  * http://www.eclipse.org/legal/epl-v10.html
       
     7  * 
       
     8  * Contributors:
       
     9  *     Nokia Corporation - initial implementation 
       
    10  *******************************************************************************/
       
    11 package org.eclipse.swt.internal;
       
    12 import org.eclipse.swt.widgets.Display;
       
    13 
       
    14 
       
    15 public class ExitNotificationWrapper {	
       
    16 	
       
    17 	public static void notifyExit() {
       
    18 	    Display display = Display.getCurrent();
       
    19 	    if(display != null) {
       
    20 	        display.dispose();
       
    21 		}
       
    22  	}
       
    23 	
       
    24 }