setUpperCasebold(vs.isUpperCasebold());
setWrapAlignment(vs.getWrapAlignment());
setWrappedWidth(vs.getWrappedWidth());
+ setSecondaryStructureSources(vs.getSecondaryStructureSources());
// ViewStyle.configureFrom(this, viewStyle);
}
&& getThresholdTextColour() == vs.getThresholdTextColour()
&& isUpperCasebold() == vs.isUpperCasebold()
&& getWrapAlignment() == vs.getWrapAlignment()
- && getWrappedWidth() == vs.getWrappedWidth());
+ && getWrappedWidth() == vs.getWrappedWidth()
+ && getSecondaryStructureSources() == vs.getSecondaryStructureSources());
/*
* and compare non-primitive types; syntax below will match null with null
* values
import jalview.gui.JvOptionPane;
import java.awt.Color;
+import java.awt.Container;
import java.lang.reflect.Field;
+import java.util.ArrayList;
+import java.util.List;
import java.util.Random;
import org.testng.AssertJUnit;
field.set(vs,
Color.RED.equals(field.get(vs)) ? Color.BLACK : Color.RED);
}
+ else if (type.equals(java.util.List.class))
+ {
+ List<?> list = (List<?>) field.get(vs);
+ List<Object> mutableList = new ArrayList<>(list);
+ mutableList.add("All");
+ field.set(vs, mutableList);
+ }
else
{
AssertJUnit.fail("Unhandled field type (add to test): "