Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: c9ecf928728a091b16ec004407f750cb9c5947c4 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                
                                                       






                                                                        
                                                                                 


                       
   





















                                                                                 


             
                                              
 
           

                                                                               

                       
                                                                        

 
/*******************************************************************************
 * Copyright (c) 2006, 2008 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

package org.eclipse.ui;

/**
 * Listener for events fired by implementers of {@link ISaveablesSource}.
 * 
 * <p>
 * This service can be acquired from a part's service locator:
 * 
 * <pre>
 * ISaveablesLifecycleListener listener = (ISaveablesLifecycleListener) getSite()
 * 		.getService(ISaveablesLifecycleListener.class);
 * </pre>
 * 
 * or, in the case of implementers of {@link ISaveablesSource} that are not a
 * part, from the workbench:
 * 
 * <pre>
 * ISaveablesLifecycleListener listener = (ISaveablesLifecycleListener) workbench
 * 		.getService(ISaveablesLifecycleListener.class);
 * </pre>
 * 
 * <ul>
 * <li>This service is available globally.</li>
 * </ul>
 * </p>
 * 
 * @since 3.2
 */
public interface ISaveablesLifecycleListener {

	/**
	 * Handle the given event. This method must be called on the UI thread.
	 * 
	 * @param event
	 */
	public void handleLifecycleEvent(SaveablesLifecycleEvent event);

}

Back to the top