Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b4975145830f6f85965a90aed3d932f3950fd2a1 (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
/**
 * 
 */
package org.eclipse.papyrus.infra.core.lifecycleevents;

import org.eclipse.papyrus.infra.core.editor.IMultiDiagramEditor;
import org.eclipse.papyrus.infra.core.services.ServicesRegistry;

/**
 * Event sent whith a Save or SaveAs.
 * 
 * @author cedric dumoulin
 * 
 */
public class DoSaveEvent {

	final protected ServicesRegistry serviceRegistry;

	final protected IMultiDiagramEditor multiDiagramEditor;

	/**
	 * Create an Event that is sent with a Save or SaveAs. The same event can be
	 * reused. Constructor.
	 * 
	 * @param serviceRegistry
	 * @param multiDiagramEditor
	 */
	public DoSaveEvent(ServicesRegistry serviceRegistry, IMultiDiagramEditor multiDiagramEditor) {
		this.serviceRegistry = serviceRegistry;
		this.multiDiagramEditor = multiDiagramEditor;
	}

	/**
	 * @return the serviceRegistry
	 */
	public ServicesRegistry getServiceRegistry() {
		return serviceRegistry;
	}

	/**
	 * @return the multiDiagramEditor
	 */
	public IMultiDiagramEditor getMultiDiagramEditor() {
		return multiDiagramEditor;
	}

}

Back to the top