]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d.csg/src/org/simantics/g3d/csg/wizard/CSGExportPage.java
White space clean-up
[simantics/3d.git] / org.simantics.g3d.csg / src / org / simantics / g3d / csg / wizard / CSGExportPage.java
index c9354d374c12a27b8571659ae2f20565d2be64b4..5e9dc85c48390aa17f2c4e01b5eb1a379842ad31 100644 (file)
@@ -1,3 +1,14 @@
+/*******************************************************************************\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
@@ -14,7 +25,7 @@ import org.simantics.layer0.Layer0;
 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
@@ -34,18 +45,14 @@ public class CSGExportPage extends ModelExportWizardPage<CSGExportModel> {
        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