This commit is contained in:
bancika
2011-01-08 18:31:36 +00:00
parent 4dd470f185
commit 43d931a1e6
@@ -14,8 +14,12 @@ import org.diylc.presenter.Presenter;
import com.diyfever.gui.miscutils.PropertyInjector; import com.diyfever.gui.miscutils.PropertyInjector;
/** /**
* Main class that runs DIYLC.
* *
* @author Branislav Stojkovic * @author Branislav Stojkovic
*
* @see Presenter
* @see MainFrame
*/ */
public class DIYLCStarter { public class DIYLCStarter {
@@ -50,61 +54,7 @@ public class DIYLCStarter {
} }
MainFrame mainFrame = new MainFrame(); 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.setLocationRelativeTo(null);
mainFrame.setVisible(true); mainFrame.setVisible(true);
// List<Property> 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());
} }
} }