blob: fb55dabd6815b659fba510b54e3f256ba27ecdb3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/*****************************************************************************
* Copyright (c) 2013, 2015 CEA LIST, Christian W. Damus, 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:
* Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
* Christian W. Damus - bug 469188
*****************************************************************************/
package org.eclipse.papyrus.infra.ui.services;
import org.eclipse.papyrus.infra.ui.editor.IMultiDiagramEditor;
/**
* Listens to the Lifecycle of an {@link IMultiDiagramEditor}
*
* @author Camille Letavernier
*
*/
public interface EditorLifecycleEventListener {
/**
* The ServicesRegistry is successfully started
*
* @param editor
*/
public void postInit(IMultiDiagramEditor editor);
/**
* All the editors are constructed, but not yet displayed
*
* @param editor
*/
public default void preDisplay(IMultiDiagramEditor editor) {
// Pass
}
/**
* All the editors are displayed
*
* @param editor
*/
public void postDisplay(IMultiDiagramEditor editor);
/**
* The editor is about to be closed
*
* @param editor
*/
public void beforeClose(IMultiDiagramEditor editor);
}
|