X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d.csg%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fcsg%2Fwizard%2FCSGExportPage.java;h=5e9dc85c48390aa17f2c4e01b5eb1a379842ad31;hb=refs%2Fchanges%2F28%2F3328%2F1;hp=8a3237dc13d2bf998972e292ec5d04e4b68283d7;hpb=f36217aeeb09c0c46f99886ee99772156ce9cfe6;p=simantics%2F3d.git diff --git a/org.simantics.g3d.csg/src/org/simantics/g3d/csg/wizard/CSGExportPage.java b/org.simantics.g3d.csg/src/org/simantics/g3d/csg/wizard/CSGExportPage.java index 8a3237dc..5e9dc85c 100644 --- a/org.simantics.g3d.csg/src/org/simantics/g3d/csg/wizard/CSGExportPage.java +++ b/org.simantics.g3d.csg/src/org/simantics/g3d/csg/wizard/CSGExportPage.java @@ -25,7 +25,7 @@ import org.simantics.layer0.Layer0; public class CSGExportPage extends ModelExportWizardPage { - + public CSGExportPage(CSGExportModel model) { super("Export CSG Model","Define Export Location",null,model); } @@ -45,18 +45,14 @@ public class CSGExportPage extends ModelExportWizardPage { protected List getSupportedModels(ReadGraph graph, Resource project) throws DatabaseException { List models = new ArrayList(); Layer0 L0 = Layer0.getInstance(graph); - CSG csg = CSG.getInstance(graph); - - for (Resource r : graph.getObjects(project, L0.ConsistsOf)) { - if (graph.isInstanceOf(r, csg.Model)) { - models.add(new NamedResource((String)graph.getRelatedValue(r, L0.HasName), r)); - } - } - return models; + CSG csg = CSG.getInstance(graph); + + for (Resource r : graph.getObjects(project, L0.ConsistsOf)) { + if (graph.isInstanceOf(r, csg.Model)) { + models.add(new NamedResource((String)graph.getRelatedValue(r, L0.HasName), r)); + } + } + return models; } - - - - }