<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br><br><br></div><div><br>On Mar 19, 2015, at 11:45 AM, Keith Babo &lt;<a href="mailto:kbabo@redhat.com">kbabo@redhat.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=utf-8"><div class=""><br class=""></div><div class="">Re:&nbsp;<a href="https://github.com/fusesource/fuseide/issues/151" class="">https://github.com/fusesource/fuseide/issues/151</a></div><div class=""><br class=""></div><div class="">I’m thinking it would be a good idea to break our wizard up into a number of pages.</div><div class=""><br class=""></div><div class="">Page 1:</div><div class=""><ul class="MailOutline"><li class="">Provides the following inputs:</li><ul class=""><li class="">camel context path</li><li class="">transformation file name&nbsp;</li><li class="">transformation id</li><li class="">source and target type (no path to definitions though)</li></ul><li class="">Finish enabled (next disabled) if transformation is Java to Java</li><li class="">Layout tweaked to present source type and target type dropdowns in the same row</li><ul class=""><li class="">.e.g. &nbsp; [Source Type] &nbsp;—&gt; &nbsp; [Target Type]</li></ul><li class="">Add “Other” as an option to the types</li></ul></div><div class=""><br class=""></div><div class="">Page 2:</div><div class=""><ul class="MailOutline"><li class="">This page configures the source type. &nbsp;If source type is Java, this page is skipped.</li><li class="">Two options on this page (mutually exclusive):</li><ul class=""><li class="">If the type is XML, XSD, JSON, or JSON Schema, provide browser for file as we do today</li><li class="">If the type is “Other”, the user needs to provide two pieces of data:</li><ul class=""><li class="">select from a drop-down of existing data format definitions (this can be queried from the config builder)</li><li class="">specify the source class used for the mapping</li></ul></ul><li class="">If target type != Java, then Next is enabled and Finish is disabled. &nbsp;If target type == Java, reverse that.</li></ul><div class=""><br class=""></div></div><div class=""><div class="">Page 3:</div><div class=""><ul class="MailOutline"><li class="">This page configures the target type.&nbsp;</li><li class="">Two options on this page (mutually exclusive):</li><ul class=""><li class="">If the type is XML, XSD, JSON, or JSON Schema, provide browser for file as we do today</li><li class="">If the type is “Other”, the user needs to provide two pieces of data:</li><ul class=""><li class="">select from a drop-down of existing data format definitions (this can be queried from the config builder)</li><li class="">specify the target class used for the mapping</li></ul></ul><li class="">Finish is enabled once the target configuration is specified.</li></ul></div></div></div></blockquote><div><br></div>I'm probably missing something, but if the user doesn't select the path for Java types, what do we show in the editor in the model viewers?<div><br><blockquote type="cite"><div><div class=""><div class=""><div class=""><br class=""></div><div class="">Another idea I’ve been playing around with is removing support for changing the source and target types in the editor and instead allowing the user to select the target type in the wizard. &nbsp;Since changing a source or target type invalidates all mappings anyway, I don’t think this is much of an inconvenience. &nbsp;It also makes life simpler as we won’t need to change the Camel config from within the mapper editor any longer to update source/target types. &nbsp;If we went ahead with this plan, then my comments above about skipping the source/target pages in the wizard would no longer apply. &nbsp;Instead, we would have a page where the user had a type browser where they selected the source and target type on each page.</div></div></div></div></blockquote><div><br></div>So if the user changes their mind about source and/or target, they just delete the existing transformation.xml before restarting the wizard?</div><div><br><blockquote type="cite"><div><div class=""><div class=""><div class=""><br class=""></div><div class="">Hopefully, this all makes sense. &nbsp;If no, let me know. :-)</div><div class=""><br class=""></div><div class="">regards,</div><div class="">keith</div><div class=""><br class=""></div></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>jbosstools-fuse-dev mailing list</span><br><span><a href="mailto:jbosstools-fuse-dev@lists.jboss.org">jbosstools-fuse-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/jbosstools-fuse-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-fuse-dev</a></span><br></div></blockquote></div></body></html>