mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
Title Block added as one of factory building blocks
This commit is contained in:
@@ -178,22 +178,13 @@ public class BuildingBlockManager {
|
||||
if (System.getProperty("org.diylc.WriteStaticBlocks", "false").equalsIgnoreCase("true")) {
|
||||
Map<String, List<IDIYComponent<?>>> defaultBlockMap =
|
||||
new HashMap<String, List<IDIYComponent<?>>>();
|
||||
// unify default and user-variants
|
||||
for (Map.Entry<String, List<IDIYComponent<?>>> entry : blocks.entrySet()) {
|
||||
if (defaultBlockMap.containsKey(entry.getKey())) {
|
||||
defaultBlockMap.get(entry.getKey()).addAll(entry.getValue());
|
||||
} else {
|
||||
defaultBlockMap.put(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
defaultBlockMap.put(blockName, blockComponents);
|
||||
try {
|
||||
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(BLOCKS_FILE_NAME));
|
||||
XStream xStream = new XStream(new DomDriver());
|
||||
xStream.addPermission(AnyTypePermission.ANY);
|
||||
xStream.toXML(defaultBlockMap, out);
|
||||
out.close();
|
||||
// no more user variants
|
||||
configManager.writeValue(IBlockProcessor.BLOCKS_KEY, null);
|
||||
LOG.info("Saved default blocks");
|
||||
} catch (IOException e) {
|
||||
LOG.error("Could not save default blocks", e);
|
||||
|
||||
@@ -4246,6 +4246,10 @@
|
||||
<changeType>NEW_FEATURE</changeType>
|
||||
<description>Show component values in the project explorer</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>NEW_FEATURE</changeType>
|
||||
<description>Title Block added as one of factory building blocks</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>IMPROVEMENT</changeType>
|
||||
<description>Ability to use up/down arrow keys in the project explorer to select components</description>
|
||||
@@ -4268,7 +4272,7 @@
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>BUG_FIX</changeType>
|
||||
<description>DIL IC pin labels don't match between the rendered values and values in the netlist</description>
|
||||
<description>DIL IC pin labels incorrect in the netlist</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>BUG_FIX</changeType>
|
||||
|
||||
Reference in New Issue
Block a user