]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/ImportPlan.java
Merge "Default property editing restores assertions"
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / sharedontology / wizard / ImportPlan.java
1 /*******************************************************************************
2  * Copyright (c) 2012 Association for Decentralized Information Management in
3  * 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.modeling.ui.sharedontology.wizard;
13
14 import java.io.File;
15 import java.util.Deque;
16
17 import org.simantics.db.management.ISessionContext;
18 import org.simantics.project.IProject;
19
20 /**
21  * @author Tuukka Lehtonen
22  */
23 public class ImportPlan {
24
25     // Input
26     ISessionContext sessionContext;
27     IProject        project;
28     Object          selection;
29     Deque<String>   recentLocations;
30
31     // Output
32     File            importLocation;
33
34     public ImportPlan(ISessionContext sessionContext, Deque<String> recentLocations) {
35         this.sessionContext = sessionContext;
36         this.recentLocations = recentLocations;
37     }
38     
39     public ISessionContext getSessionContext(){
40         return sessionContext;
41     }
42     
43     public void setProject(IProject project){
44         this.project = project;
45     }
46     
47     public IProject getProject(){
48         return project;
49     }
50
51     public void setSelection(Object selection){
52         this.selection = selection;
53     }
54     
55     public Object getSelection(){
56         return selection;
57     }
58
59     public Deque<String> getRecentLocations(){
60         return recentLocations;
61     }
62     
63     public File getImportLocation(){
64         return importLocation;
65     }
66
67     public void setImportLocation(File importLocation){
68         this.importLocation = importLocation;
69     }
70 }