+/*******************************************************************************\r
+ * Copyright (c) 2012, 2013 Association for Decentralized Information Management in\r
+ * Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
package org.simantics.g3d.csg.wizard;\r
\r
import java.util.ArrayList;\r
public class CSGExportPage extends ModelExportWizardPage<CSGExportModel> {\r
\r
\r
- \r
+ \r
public CSGExportPage(CSGExportModel model) {\r
super("Export CSG Model","Define Export Location",null,model);\r
}\r
protected List<NamedResource> getSupportedModels(ReadGraph graph, Resource project) throws DatabaseException {\r
List<NamedResource> models = new ArrayList<NamedResource>();\r
Layer0 L0 = Layer0.getInstance(graph);\r
- CSG csg = CSG.getInstance(graph);\r
- \r
- for (Resource r : graph.getObjects(project, L0.ConsistsOf)) {\r
- if (graph.isInstanceOf(r, csg.Model)) {\r
- models.add(new NamedResource((String)graph.getRelatedValue(r, L0.HasName), r));\r
- }\r
- }\r
- return models;\r
+ CSG csg = CSG.getInstance(graph);\r
+ \r
+ for (Resource r : graph.getObjects(project, L0.ConsistsOf)) {\r
+ if (graph.isInstanceOf(r, csg.Model)) {\r
+ models.add(new NamedResource((String)graph.getRelatedValue(r, L0.HasName), r));\r
+ }\r
+ }\r
+ return models;\r
}\r
- \r
-\r
- \r
-\r
\r
}\r