]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.management/src/org/simantics/db/management/SessionContextChangedEvent.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.management / src / org / simantics / db / management / SessionContextChangedEvent.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2011 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.db.management;
13
14 /**
15  * @author Tuukka Lehtonen
16  */
17 public class SessionContextChangedEvent {
18     
19     private final ISessionContextProvider source;
20
21     private final Object                  handle;
22
23     private final ISessionContext         oldValue;
24
25     private final ISessionContext         newValue;
26
27     public SessionContextChangedEvent(ISessionContextProvider source, Object forHandle, ISessionContext oldValue, ISessionContext newValue) {
28         this.source = source;
29         this.handle = forHandle;
30         this.oldValue = oldValue;
31         this.newValue = newValue;
32     }
33     
34     public ISessionContextProvider getSource() {
35         return source;
36     }
37     
38     public Object getHandle() {
39         return handle;
40     }
41
42     public ISessionContext getOldValue() {
43         return oldValue;
44     }
45     
46     public ISessionContext getNewValue() {
47         return newValue;
48     }
49
50 }