1 /*******************************************************************************
\r
2 * Copyright (c) 2012, 2013 Association for Decentralized Information Management in
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.g3d.wizard;
\r
14 import java.io.File;
\r
15 import java.util.Deque;
\r
17 import org.simantics.db.common.NamedResource;
\r
19 public abstract class IExportModel {
\r
21 File exportLocation;
\r
22 NamedResource model;
\r
25 Deque<String> recentLocations;
\r
29 public void setModel(NamedResource model) {
\r
33 public NamedResource getModel() {
\r
37 public void setOverwrite(boolean overwrite) {
\r
38 this.overwrite = overwrite;
\r
41 public boolean isOverwrite() {
\r
46 public void setExportLocation(File exportLocation) {
\r
47 this.exportLocation = exportLocation;
\r
50 public File getExportLocation() {
\r
51 return exportLocation;
\r
54 public abstract boolean usesFile();
\r
56 public Deque<String> getRecentLocations() {
\r
57 return recentLocations;
\r
60 public void setRecentLocations(Deque<String> recentLocations) {
\r
61 this.recentLocations = recentLocations;
\r
64 public Object getSelection() {
\r
68 public void setSelection(Object selection) {
\r
69 this.selection = selection;
\r