diff --git a/ diy-layout-creator --username bancika@gmail.com/diylc-swing/DIYLCStarter.launch b/ diy-layout-creator --username bancika@gmail.com/diylc-swing/DIYLCStarter.launch
index 46aa4835..1e31e94a 100644
--- a/ diy-layout-creator --username bancika@gmail.com/diylc-swing/DIYLCStarter.launch
+++ b/ diy-layout-creator --username bancika@gmail.com/diylc-swing/DIYLCStarter.launch
@@ -10,6 +10,7 @@
+
diff --git a/ diy-layout-creator --username bancika@gmail.com/diylc-swing/src/org/diylc/DIYLCStarter.java b/ diy-layout-creator --username bancika@gmail.com/diylc-swing/src/org/diylc/DIYLCStarter.java
index cfae0f86..4d3c8cc9 100644
--- a/ diy-layout-creator --username bancika@gmail.com/diylc-swing/src/org/diylc/DIYLCStarter.java
+++ b/ diy-layout-creator --username bancika@gmail.com/diylc-swing/src/org/diylc/DIYLCStarter.java
@@ -39,11 +39,13 @@ public class DIYLCStarter {
LOG.error("Could not initialize log4j configuration", e);
}
- LOG.debug("Java version: " + System.getProperty("java.runtime.version") + " by "
- + System.getProperty("java.vm.vendor"));
- LOG.debug("OS: " + System.getProperty("os.name") + " " + System.getProperty("os.version"));
+ LOG.debug("Java version: " + System.getProperty("java.runtime.version")
+ + " by " + System.getProperty("java.vm.vendor"));
+ LOG.debug("OS: " + System.getProperty("os.name") + " "
+ + System.getProperty("os.version"));
- LOG.info("Starting DIYLC with working directory " + System.getProperty("user.dir"));
+ LOG.info("Starting DIYLC with working directory "
+ + System.getProperty("user.dir"));
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
@@ -54,13 +56,17 @@ public class DIYLCStarter {
MainFrame mainFrame = new MainFrame();
mainFrame.setLocationRelativeTo(null);
mainFrame.setVisible(true);
-
- boolean showTemplates = ConfigurationManager.getInstance().readBoolean(
- TemplateDialog.SHOW_TEMPLATES_KEY, true);
- if (showTemplates) {
- TemplateDialog templateDialog = new TemplateDialog(mainFrame, mainFrame.getPresenter());
- if (!templateDialog.getFiles().isEmpty()) {
- templateDialog.setVisible(true);
+ if (args.length > 0) {
+ mainFrame.getPresenter().loadProjectFromFile(args[0]);
+ } else {
+ boolean showTemplates = ConfigurationManager.getInstance()
+ .readBoolean(TemplateDialog.SHOW_TEMPLATES_KEY, true);
+ if (showTemplates) {
+ TemplateDialog templateDialog = new TemplateDialog(mainFrame,
+ mainFrame.getPresenter());
+ if (!templateDialog.getFiles().isEmpty()) {
+ templateDialog.setVisible(true);
+ }
}
}
diff --git a/ diy-layout-creator --username bancika@gmail.com/diylc-swing/update.xml b/ diy-layout-creator --username bancika@gmail.com/diylc-swing/update.xml
index 517dff86..dca231cb 100644
--- a/ diy-layout-creator --username bancika@gmail.com/diylc-swing/update.xml
+++ b/ diy-layout-creator --username bancika@gmail.com/diylc-swing/update.xml
@@ -606,6 +606,10 @@
NEW_FEATURE
Right click rotates component while laying out on the canvas
+
+ NEW_FEATURE
+ Added DIY file association for Windows (run associations.bat)
+
IMPROVEMENT
More usable "Bring to Forward" and "Send to Backward"