diff --git a/ diy-layout-creator --username bancika@gmail.com/DIYLC/src/org/diylc/DIYLCStarter.java b/ diy-layout-creator --username bancika@gmail.com/DIYLC/src/org/diylc/DIYLCStarter.java index 5081b34d..6e1f695d 100644 --- a/ diy-layout-creator --username bancika@gmail.com/DIYLC/src/org/diylc/DIYLCStarter.java +++ b/ diy-layout-creator --username bancika@gmail.com/DIYLC/src/org/diylc/DIYLCStarter.java @@ -14,11 +14,15 @@ import org.diylc.presenter.Presenter; import com.diyfever.gui.miscutils.PropertyInjector; /** + * Main class that runs DIYLC. * * @author Branislav Stojkovic + * + * @see Presenter + * @see MainFrame */ public class DIYLCStarter { - + private static final Logger LOG = Logger.getLogger(Presenter.class); /** @@ -50,61 +54,7 @@ public class DIYLCStarter { } MainFrame mainFrame = new MainFrame(); - // Presenter p = new Presenter(mainFrame); - // - // p.installPlugin(new ToolBox()); - // p.installPlugin(new FileManager()); - // p.installPlugin(new ClipboardManager()); - // p.installPlugin(new StatusBar()); - // p.installPlugin(new CanvasPlugin()); - // - // Project project = new Project(); - // project.getComponents().add(new MockDIYComponent()); - // p.loadProject(project); - // panel.setPreferredSize(new Dimension(2000, 1500)); - // RulerScrollPane scrollPane = new RulerScrollPane(panel); - // JFrame f = new JFrame("Test"); - // f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - // f.add(scrollPane); - // f.setPreferredSize(new Dimension(800, 600)); - // f.pack(); - // f.setLocationRelativeTo(null); mainFrame.setLocationRelativeTo(null); mainFrame.setVisible(true); - - // List properties = ClassProcessor - // .extractProperties(MockComponent.class); - // MockComponent component = new MockComponent(); - // for (Property p : properties) { - // try { - // p.readFrom(component); - // } catch (IllegalArgumentException e) { - // // TODO Auto-generated catch block - // e.printStackTrace(); - // } catch (IllegalAccessException e) { - // // TODO Auto-generated catch block - // e.printStackTrace(); - // } catch (InvocationTargetException e) { - // // TODO Auto-generated catch block - // e.printStackTrace(); - // } - // } - // PropertyEditorDialog.showFor(null, properties); - // for (Property p : properties) { - // try { - // p.writeTo(component); - // } catch (IllegalArgumentException e) { - // // TODO Auto-generated catch block - // e.printStackTrace(); - // } catch (IllegalAccessException e) { - // // TODO Auto-generated catch block - // e.printStackTrace(); - // } catch (InvocationTargetException e) { - // // TODO Auto-generated catch block - // e.printStackTrace(); - // } - // System.out.println(p); - // } - // System.out.println(p.getComponentTypes()); } }