]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/ImportPlan.java
Merge "Support dependency embedding in generic model export/import"
[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     boolean         includeDependencies;
35
36     public ImportPlan(ISessionContext sessionContext, Deque<String> recentLocations) {
37         this.sessionContext = sessionContext;
38         this.recentLocations = recentLocations;
39     }
40     
41     public ISessionContext getSessionContext(){
42         return sessionContext;
43     }
44     
45     public void setProject(IProject project){
46         this.project = project;
47     }
48     
49     public IProject getProject(){
50         return project;
51     }
52
53     public void setSelection(Object selection){
54         this.selection = selection;
55     }
56     
57     public Object getSelection(){
58         return selection;
59     }
60
61     public Deque<String> getRecentLocations(){
62         return recentLocations;
63     }
64     
65     public File getImportLocation(){
66         return importLocation;
67     }
68
69     public void setImportLocation(File importLocation){
70         this.importLocation = importLocation;
71     }
72 }