mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
cleanup
This commit is contained in:
+4
-54
@@ -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());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user