1 /*******************************************************************************
2  * Copyright (c) 2011 Wind River Systems and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     Wind River Systems - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.debug.internal.ui.viewers.model.provisional;
15 
16 import org.eclipse.debug.internal.ui.viewers.provisional.AbstractModelProxy;
17 import org.eclipse.jface.viewers.Viewer;
18 
19 /**
20  * Extension to the model proxy interface which allows the proxy to be initialized
21  * on the viewer's Display thread
22  *
23  * @noimplement Clients are not intended to implement this interface directly. Instead, clients
24  * creating and firing model deltas should create instances of {@link AbstractModelProxy}.
25  * @since 3.8
26  */
27 public interface IModelProxy2 extends IModelProxy {
28 
29 	/**
30 	 * Initialize model proxy with given tree model viewer.  This method is
31 	 * called on the viewer's Display thread and is guaranteed to be called
32 	 * before the dispose() method is called on the same proxy.  The default
33 	 * implementation of this method calls {@link #init(IPresentationContext)}
34 	 * and {@link #installed(Viewer)} asynchornously and not in the Display
35 	 * thread.
36 	 * <p>
37 	 * This method is called by the asynchronous viewer framework and should
38 	 * not be called by clients.
39 	 * </p>
40 	 * @param viewer Viewer that is installing this model proxy.
41 	 *
42 	 */
initialize(ITreeModelViewer viewer)43 	void initialize(ITreeModelViewer viewer);
44 
45 }
46