/******************************************************************************* * Copyright (c) 2012, 2013 Association for Decentralized Information Management in * Industry THTH ry. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * VTT Technical Research Centre of Finland - initial API and implementation *******************************************************************************/ package org.simantics.g3d.wizard; import java.io.File; import java.util.Deque; import org.simantics.db.common.NamedResource; public abstract class IExportModel { File exportLocation; NamedResource model; boolean overwrite; Deque recentLocations; Object selection; public void setModel(NamedResource model) { this.model = model; } public NamedResource getModel() { return model; } public void setOverwrite(boolean overwrite) { this.overwrite = overwrite; } public boolean isOverwrite() { return overwrite; } public void setExportLocation(File exportLocation) { this.exportLocation = exportLocation; } public File getExportLocation() { return exportLocation; } public abstract boolean usesFile(); public Deque getRecentLocations() { return recentLocations; } public void setRecentLocations(Deque recentLocations) { this.recentLocations = recentLocations; } public Object getSelection() { return selection; } public void setSelection(Object selection) { this.selection = selection; } }