JAL-3789 Use j2s.config.altfileproperty in .j2s for alternative temporary build/jalvi...
[jalview.git] / srcjar / net / miginfocom / layout / UnitValue.java
index 70d8f72..dc9df9c 100644 (file)
@@ -648,24 +648,24 @@ public final class UnitValue implements Serializable
                PlatformDefaults.setDefaultVerticalUnit(unit);
        }
 
-       static {
-        if(LayoutUtil.HAS_BEANS){
-            LayoutUtil.setDelegate(UnitValue.class, new PersistenceDelegate() {
-                @Override
-                protected Expression instantiate(Object oldInstance, Encoder out)
-                {
-                    UnitValue uv = (UnitValue) oldInstance;
-                    String cs = uv.getConstraintString();
-                    if (cs == null)
-                        throw new IllegalStateException("Design time must be on to use XML persistence. See LayoutUtil.");
-
-                    return new Expression(oldInstance, ConstraintParser.class, "parseUnitValueOrAlign", new Object[] {
-                            uv.getConstraintString(), (uv.isHorizontal() ? Boolean.TRUE : Boolean.FALSE), null
-                    });
-                }
-            });
-        }
-       }
+//     static {
+//        if(LayoutUtil.HAS_BEANS){
+//            LayoutUtil.setDelegate(UnitValue.class, new PersistenceDelegate() {
+//                @Override
+//                protected Expression instantiate(Object oldInstance, Encoder out)
+//                {
+//                    UnitValue uv = (UnitValue) oldInstance;
+//                    String cs = uv.getConstraintString();
+//                    if (cs == null)
+//                        throw new IllegalStateException("Design time must be on to use XML persistence. See LayoutUtil.");
+//
+//                    return new Expression(oldInstance, ConstraintParser.class, "parseUnitValueOrAlign", new Object[] {
+//                            uv.getConstraintString(), (uv.isHorizontal() ? Boolean.TRUE : Boolean.FALSE), null
+//                    });
+//                }
+//            });
+//        }
+//     }
 
        // ************************************************
        // Persistence Delegate and Serializable combined.