Option for exporting tg and pgraph with sharedlibrary
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / sharedontology / wizard / ExportPlan.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.modeling.ModelingUtils.LibraryInfo;
19 import org.simantics.project.IProject;
20
21 /**
22  * @author Tuukka Lehtonen
23  */
24 public class ExportPlan {
25
26
27         
28     // Input
29     ISessionContext sessionContext;
30     IProject        project;
31     Object          selection;
32     Deque<String>   recentLocations;
33
34     // Output
35     LibraryInfo     model;
36     File            exportLocation;
37
38     /**
39      * <code>true</code> if the model should be overwritten without a warning.
40      */
41     boolean         overwrite;
42     boolean         tgAndPgraph;
43
44     ExportPlan(ISessionContext sessionContext, Deque<String> recentLocations) {
45         this.sessionContext = sessionContext;
46         this.recentLocations = recentLocations;
47     }
48
49 }