Added an AttachedPartsHandler. This should automatically utilize future OR design...
authorrodinia814 <rodinia814@180e2498-e6e9-4542-8430-84ac67f01cd8>
Wed, 11 Jul 2012 19:49:32 +0000 (19:49 +0000)
committerrodinia814 <rodinia814@180e2498-e6e9-4542-8430-84ac67f01cd8>
Wed, 11 Jul 2012 19:49:32 +0000 (19:49 +0000)
fins to a Transition with no changes required to the Rocksim parsing logic.

git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@885 180e2498-e6e9-4542-8430-84ac67f01cd8

core/src/net/sf/openrocket/file/rocksim/importt/TransitionHandler.java

index 0cd180e951cc5e8042067d114cc4ff66ae24b9ee..f4b1720a119ab04f30adf7c910e23d61e05ea6e8 100644 (file)
@@ -48,6 +48,9 @@ class TransitionHandler extends BaseHandler<Transition> {
 
     @Override
     public ElementHandler openElement(String element, HashMap<String, String> attributes, WarningSet warnings) {
+        if (RocksimCommonConstants.ATTACHED_PARTS.equals(element)) {
+            return new AttachedPartsHandler(transition);
+        }
         return PlainTextHandler.INSTANCE;
     }