getClientResource().setParent(new ClientResourceImpl("License"));
ViewerCreatorMap map = getFactory().getViewerCreatorMap();
map.register(ProgressModel.class, new ProgressViewerCreator());
map.register(MailArrayModel.class, new MailArrayLayout(), false);
map.register(MainModel.class, new SwingViewerCreator(MainViewer.class));
map.register(MailModel.class, new SwingViewerCreator(MailViewer.class));
map.register(ImportArrayModel.class, new SwingViewerCreator(ImportArrayEditor.class));
// getFactory().getViewerCreatorMap().registerTreeComponentViewerCreator(MailModel.class, new DataModelTreeComponentCreator() {
// public DataModelTreeComponent createDataModelTreeComponent(DataModelTreeViewer treeViewer, DataModel model) {
// return new DataModelTreeComponent(treeViewer, model) {
//
// public JPanel getBodyPart() {
// setDisplayAsEditor(true);
// return super.getBodyPart();
// }
// };
// }
// }
// );
map.register(AttachmentModel.class, new SwingViewerCreator(AttachmentViewer.class));
map.register(AttachmentListModel.class, new SwingViewerCreator(AttachmentListViewer.class));
map.register(ReplaceStringsModel.class, new SwingViewerCreator(ReplaceStringsViewer.class));
map.register(MailListModel.class, new MailListLayout(), true);
map.register(ReplacePatternModel.class, new ReplacePatternLayout(), true);
map.register(LicenseModel.class, new SwingViewerCreator(LicenseViewer.class));
map.register(OrderLicenseModel.class, new SwingViewerCreator(OrderLicenseViewer.class));
}