X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=srcjar%2Fnet%2Fmiginfocom%2Flayout%2FBoundSize.java;h=e41c27d7c64633fb04c59b4fa7263915f36544fa;hb=96355c16c55303f63cf1d60a605cc21bb90850b4;hp=531235f039834416e126bccb71ed6c6f602b59a7;hpb=ddb9ac172b63736d8821caf74e85fbc3d61c02ba;p=jalview.git diff --git a/srcjar/net/miginfocom/layout/BoundSize.java b/srcjar/net/miginfocom/layout/BoundSize.java index 531235f..e41c27d 100644 --- a/srcjar/net/miginfocom/layout/BoundSize.java +++ b/srcjar/net/miginfocom/layout/BoundSize.java @@ -245,24 +245,24 @@ public class BoundSize implements Serializable } static { - if(LayoutUtil.HAS_BEANS){ - LayoutUtil.setDelegate(BoundSize.class, new PersistenceDelegate() { - @Override - protected Expression instantiate(Object oldInstance, Encoder out) - { - BoundSize bs = (BoundSize) oldInstance; - if (Grid.TEST_GAPS) { - return new Expression(oldInstance, BoundSize.class, "new", new Object[] { - bs.getMin(), bs.getPreferred(), bs.getMax(), bs.getGapPush(), bs.getConstraintString() - }); - } else { - return new Expression(oldInstance, BoundSize.class, "new", new Object[] { - bs.getMin(), bs.getPreferred(), bs.getMax(), bs.getConstraintString() - }); - } - } - }); - } +// if(LayoutUtil.HAS_BEANS){ +// LayoutUtil.setDelegate(BoundSize.class, new PersistenceDelegate() { +// @Override +// protected Expression instantiate(Object oldInstance, Encoder out) +// { +// BoundSize bs = (BoundSize) oldInstance; +// if (Grid.TEST_GAPS) { +// return new Expression(oldInstance, BoundSize.class, "new", new Object[] { +// bs.getMin(), bs.getPreferred(), bs.getMax(), bs.getGapPush(), bs.getConstraintString() +// }); +// } else { +// return new Expression(oldInstance, BoundSize.class, "new", new Object[] { +// bs.getMin(), bs.getPreferred(), bs.getMax(), bs.getConstraintString() +// }); +// } +// } +// }); +// } } // ************************************************