<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Do you mean in an Eclipse sense, like New -> Project... -> Java Project, or conceptually? Eclipse-wise, the way that's worked best for me is to have several Java plug-in projects that compose the RCP application, similar to how BibleDesktop is composed of projects bibledesktop, commons-swing, commons, etc. I'm not sure if that helps answer your question or not.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: DM Smith <dmsmith555@yahoo.com><br>To: J-Sword Developers Mailing List <jsword-devel@crosswire.org><br>Sent: Saturday, December 9, 2006 8:47:23 AM<br>Subject: Re: [jsword-devel] feather request: book downloading and index generating
api<br><br>One question, should it be a "java project" or a "java plugin project" ?<div><br><div><div>On Dec 9, 2006, at 8:41 AM, DM Smith wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I'll see about setting up a jsword-rcp Eclipse project and get the permissions wide open. We can use this to collaborate.<div><br><div><div>On Dec 9, 2006, at 1:44 AM, Zhaojun Li wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">My last post before I fall asleep :)<br><br>Let us do not worry code efficency or naming standard and such and such. At least we have a start point. We can always refactor and tune the apis later. <br><br>Right now, the most import thing is to get started. <br><br>God Bless!<br><br><div><span class="gmail_quote">On 12/9/06, <b class="gmail_sendername">P. R. B.</b> <<a rel="nofollow" target="_blank" href="mailto:dysbiote@yahoo.com">dysbiote@yahoo.com</a>> wrote:</span><blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi Zhaojun,<br> <br> I'll work on making the jsword plugin available this weekend. In general, I had two purposes when writing the plugin: to use RCP classes in place of JSword classes whenever I felt it was appropriate (e.g. preferring IProgressMonitor over JSword Job and RCP extension points over properties files), and expose only the essential packages to the clients. <br><br>Don't worry about me being burned out. =) Most of that had to do with trying to write the thing myself in a short period of time through long nights, and making the project self-serving / ego-driven rather than God-serving. That's my confession. I think there's a lot we can do with it together if we're patient. <br> <br>As to your
previous e-mail: Having multiple GUIs may be a good idea. One of the strengths of BibleDesktop is its smaller footprint and compatibility. The desktop application I wrote is focused on functionality / usability (e.g. listing the commentaries and dictionaries that reference a highlighted verse) at the cost of depending on the RCP framework and being fairly CPU intensive for some operations. There'd be less concern about applications having overlapping functionality or overlapping target audience if we keep the GUIs in separate niches, yet we'd still be pushing to keep the core flexible and simple. <br> <br> Be sure to keep all of this in your prayers. If we keep God at the center of this, I believe He'll lead us to something good. <br> <br> Good night, all.<br> -Phillip<br> <br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><span class="q">----- Original Message ----<br>From: Zhaojun Li <<a rel="nofollow" target="_blank"
href="mailto:lzj369@gmail.com"> lzj369@gmail.com</a>><br>To: J-Sword Developers Mailing List <<a rel="nofollow" target="_blank" href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a>><br> </span><div><span class="q" id="q_10f65ebae13e5486_2">Sent: Friday, December 8, 2006 11:51:59 PM<br>Subject: Re: [jsword-devel] feather request: book downloading and index generating api<br><br>Philip,<br><br>I don't konw OSGi good enough either. However, guys in the street tell me it is cool. <br><br>I think a standard ant build to create a plugin jar is good enough for now. With your effort, I think we are in a good position now. Since you are burned out, :) , I can take over your GUI and maintain mine too. After all, it is not very hard for this part. <br><br>Since you did the migration already, Could you share your changes? I mean overview, why and how.<br><br><div><span class="gmail_quote">On 12/9/06, <b class="gmail_sendername">P. R. B.</b> <<a
rel="nofollow" target="_blank" href="mailto:dysbiote@yahoo.com"> dysbiote@yahoo.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Another thing to consider is to put the JSword and Common code into a basic OSGi bundle / RCP plugin jar and have BibleDesktop run an OSGi framework implementation (something like Apache Felix). The Crosswire jars would stay independent of RCP, yet RCP developers could treat the jars as standard plugins. Some abstraction classes would still need to be made to the JSword/Common code for RCP'rs, to reduce the conflicts that Zhaojun and I ran into. <br><br>I don't know enough about OSGi to say what other pros and cons there are.<br><br>As for making BibleDesktop a standard GUI RCP:
Yes, you'd be dependent on SWT. <br><br>Any other thoughts? It seems like we've got some good ideas floating around. <br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><span>----- Original Message ----<br>From: David <<a rel="nofollow" target="_blank" href="mailto:lzj369@gmail.com"> lzj369@gmail.com</a>><br>To: J-Sword Developers Mailing List <<a rel="nofollow" target="_blank" href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org </a>><br> </span><span>Sent: Friday, December 8, 2006 10:50:14 PM<br>Subject: Re: [jsword-devel] feather request: book downloading and index generating api<br><br></span><span>The main advantage for RCP that it hides the low level details from business logic. A big plus is cross platform is piece of cake. We can click several times to make it run on almost every platform like linux, windows,mac ,ppc, you name it. It is native code call from java layer, thus very fast. <br>The biggest
challenge is the size.<br><br> The default size is like 9mb. <br><br>Another advantage is update: RCP has built-in update site support. It even supports anatomical update! even scheduled update! <br><br>Plus, it is de facto standard for JAVA IDE now. and IBM is behind it. <br><br>as far as BD gui, it is hard to tell because it depends. My experince tells me that it is very easy to mimic the current gui with two views. Installation view can be done , I have it done already, it can be shared. The other part is main gui: it should be a Form base with a broswer GUI or two. <br>The preference can be done by using RCP built-in preference api. It is very simple. I can share my code by providing a simple tutorial.<br><br>BTW, all code are open sourced. <br><br>I have different opinion about the classloader. Yes, jsword's class loader creates an issue for RCP. However, I do not think removing it is a good idea. We can add addition classes or addition methods to jword
(Jsword, and common) to solve this issue. Maybe is is time to create an standard eclipse plugin. I can offer help on this one. <br>Next week I will release all the code to a place so everyone can share and modify. The GUI like a clone of WEBSOWRD on <a rel="nofollow" target="_blank" href="http://crosswire.com"> crosswire.com</a><br><br>In Christ,<br><br></span>Zhaojun<br><div><span><span class="gmail_quote"> On 12/8/06, <b class="gmail_sendername">DM Smith</b> <<a rel="nofollow" target="_blank" href="mailto:dmsmith555@yahoo.com">dmsmith555@yahoo.com</a>> wrote:</span> </span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div><span>Zhaojun and Phillip,<div><br></div><div>I think there is enough interest that it would be good to meld all this into one effort.</div><div><br></div></span><div><span>Phillip, I'm sorry you have burned out. Perhaps if we had collaborated we could have
shared the load. <div><br></div><div>Please help me understand the advantages and disadvantages of going to RCP for JSword and Common. And what impact it would have on the BibleDesktop GUI. How portable is RCP? Will it run on all platforms that Java runs? Or is it limited like SWT? </div><div><br></div><div>I've done a bunch of reading, but have been focusing on adding behavior to what we have. So I have not really experimented too much.</div><div><br></div><div>In Him</div></span><div><span><span style="white-space: pre;">         </span>DM</span><div><span><div><span><div><br><div><div>On Dec 8, 2006, at 9:17 PM, P. R. B. wrote:</div><br><blockquote type="cite"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi gang,<br><br>I ran into the same problem with RCP. I ultimately turned the core JSword libraries (common and jsword -- the parts I was after) into an
RCP plug-in that could accommodate the RCP Job class and use plug-ins to extend the installer, filter, and driver (RCP needs to manage class loaders itself, so the class utilities and property files were removed). The key to changing the job code, for me, was to replace JSword-Job calls with IProgressMonitor calls, and making all calls run in the caller's thread. The IProgressMonitor interface serves essentially the same purpose and the JSword Job class, so the change was fairly straight-forward. <br><br>I have an example of the changes that I made at the bottom of this e-mail.<br><br> Off-topic: I hit project burn-out with this endeavor a few weeks back and the fate of the code is undecided (I take project burn-out pretty hard). The JSword plug-in is functional and the RCP application is 100% working. If anyone wants to play with it or is interested in helping me resurrect the thing back to life, please let me know. <br><br>Thanks,<br>-Phillip<br><br>--
<br><br>Example changes to convert JSword Job code to use IProgressMonitor (for non-RCP'rs, IProgressMonitor and IStatus are part of the Eclipse/RCP core API):<br><br>Installer interface: <br> IStatus install(IProgressMonitor monitor, Book book);<br><br>HttpSwordInstaller class:<br> public IStatus install(IProgressMonitor monitor, Book book){<br> // Is the book already installed? Then nothing to do. <br> if (Books.installed().getBook(book.getName()) != null)<br> {<br> monitor.beginTask(Msg.INSTALLING.toString(book.getName()), 1);<br> monitor.worked(1);<br> monitor.done();
<br> return Status.OK_STATUS;<br> }<br><br> final SwordBookMetaData sbmd = (SwordBookMetaData) book.getBookMetaData();<br> try<br> {<br> // the task has as many steps to perform as there are parts to the download <br> monitor.beginTask(Msg.INSTALLING.toString(book.getName()), (getSize(book) / 4096) + 1);<br> monitor.subTask(Msg.JOB_INIT.toString());<br> <br> URL temp = NetUtil.getTemporaryURL("swd", ZIP_SUFFIX); //$NON-NLS-1$ <br>
<br> // download the book. Each chunk downloaded contributes to the monitor's work.<br> download(monitor, directory + '/' + PACKAGE_DIR, sbmd.getInitials() + ZIP_SUFFIX, temp);<br> <br> // Once the unzipping is started, we need to continue<br> File dldir = SwordBookPath.getDownloadDir();<br> if (!monitor.isCanceled())<br> {<br> monitor.subTask (Msg.JOB_CONFIG.toString());<br>
IOUtil.unpackZip(NetUtil.getAsFile(temp), dldir);<br> SwordBookDriver.registerNewBook(sbmd, dldir);<br> }<br> <br> }<br> catch (Exception ex) <br> {<br> Reporter.informUser(this, ex);<br> return new Status(IStatus.ERROR, JswordActivator.PLUGIN_ID, 0, Msg.UNKNOWN_ERROR.toString(), ex);<br> }<br> finally<br> {<br> monitor.done();<br> }<br>
<br> return Status.OK_STATUS;<br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: David < <a rel="nofollow" target="_blank" href="mailto:lzj369@gmail.com">lzj369@gmail.com</a>><br>To: J-Sword Developers Mailing List <<a rel="nofollow" target="_blank" href="mailto:jsword-devel@crosswire.org"> jsword-devel@crosswire.org</a>><br>Sent: Friday, December 8, 2006 10:26:01 AM<br>Subject: Re: [jsword-devel] feather request: book downloading and index generating api<br><br>Hi, DM,<br>If you just want to migrate to SWT, I personally think it does not worth it. SWT just another set of API, like SWING. However, if you want to migrate to NETBEAN RCP or Eclipse RCP, I will applause your effort. (The application size will be increased by 6-9MB). For Eclipse RCP, the work is just create veiws and call jword api. <br><br>The work I am doing is based on
Eclipse RCP. Jsword is a base part of it. The plan is to build a p2p system that can enable blog , forum sharing, of course file sharing( JXTA.) next year. It will be a set of plugins. <br><br>Right now, I am rewriting the system to look like exactly what is on web sword interface. After all, people are familar with web interface. I , however did a websword plugin with tomcat embedded(yes, a server on user's desktop). It is cool. However, due to other considerations, I put it on hold. <br><br>Since you are interest, I will put the source code to Google code next week. I tried sourceforge, still does not get approved. An alternative is I put the code temporily into jwsord SVN, so you can look at it. Again, next week. :) <br><br><br><br><div><span class="gmail_quote">On 12/8/06, <b class="gmail_sendername">DM Smith</b> <<a rel="nofollow" target="_blank" href="mailto:dmsmith555@yahoo.com"> dmsmith555@yahoo.com</a>>
wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> We hope to migrate the UI to SWT. So I am very interested in your RCP <br>work. Is there a place where I can see what you have done. If possible,<br>I'd like to minimize your pain of re-integrating the JSword as it changes. <br><br>David wrote:<br>> Eclipse RCP platform has its own threading api. Use can choose the job <br>> run on backgroud or foreground. I maybe need to double check why the<br>> process failed. (I believe it is because of threading) <br>> For book installation, I added two mirror methods to do downloading<br> > and copying. It works fine. The only issue is the api and package<br>> keep changing and I have to compare every time there is a new release <br>> and merge the code.<br>><br>> For indexing, I have not made it to work correctly. I will study the <br>> code
next week. The basic idea is kick off a background job and call<br>> jsword api to generate index. No thread for indexing itself is needed. <br>><br>> For Web sword, the book installation is on server side. Never mind. <br>> It will not be used for end users. I put it on hold because I have<br>> several othe plugins need to be done soon.<br>><br> > Zhaojun<br>><br>> On 12/8/06, *DM Smith* <<a rel="nofollow" target="_blank" href="mailto:dmsmith555@yahoo.com"> dmsmith555@yahoo.com</a><br>> <mailto:<a rel="nofollow" target="_blank" href="mailto:dmsmith555@yahoo.com">dmsmith555@yahoo.com</a>>> wrote:<br>> <br> > David wrote: <br>> > Hi, DM and fellow developers,<br>> ><br>> > I am developing web sword(90% done, pure j2ee implementation, will<br>> > help web hosting) and sword on eclipse
RCP. Issues were raised up <br>> > when I try to integrate install book and generate indices. The code<br>> > now has job api build in and also has the reporter to<br>> communicate with<br>> > user UI.<br>> > <br>> > In order to accelerate the acceptance of jword library, the api for<br>> > downloading books and api for index processing need to seperated<br>> from<br>> > Job api.<br>> I'm not sure I understand the problem. <br>><br>> The index api (org.crosswire.jsword.index) is independent of the<br>> Job and<br>> Reporter apis. The Lucene implementation is
not.<br>> Likewise for the install api ( org.crosswire.jsword.index ) and the<br>> sword<br>> implementation.<br>><br>> Both the Job api and the Reporter api are listener based. If there<br>> is no<br>> listener for Job events or Reporter events, then those are not heard. <br>> Any listener of your choosing can be provided or not provided. It<br>> is up<br>> to you.<br>><br>> The purpose of the Job and Reporter apis is to provide asynchronous<br>> communication of a potentially background task thread. For <br>> example, you<br>> will notice in BibleDesktop that you can download and/or index<br>>
more than<br>> one Book at a time. Each download and index is on its own thread<br>> and it<br> > communicates back to BibleDesktop asynchronously of its progress<br>> or any<br>> problems that are encountered.<br>><br>> In a web environment asynchronous communication of long-lived<br> > threads on<br>> the server may prove to be a challenge, but it should be possible.<br>><br>><br>> _______________________________________________<br>> jsword-devel mailing list<br>> <a rel="nofollow" target="_blank" href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a> <mailto:<a rel="nofollow" target="_blank" href="mailto:jsword-devel@crosswire.org">
jsword-devel@crosswire.org</a>><br>> <a rel="nofollow" target="_blank" href="http://www.crosswire.org/mailman/listinfo/jsword-devel"> http://www.crosswire.org/mailman/listinfo/jsword-devel </a><br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br> > jsword-devel mailing list<br>> <a rel="nofollow" target="_blank" href="mailto:jsword-devel@crosswire.org"> jsword-devel@crosswire.org</a><br>> <a rel="nofollow" target="_blank" href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel </a><br>><br><br><br>_______________________________________________<br>jsword-devel mailing list<br><a rel="nofollow" target="_blank" href="mailto:jsword-devel@crosswire.org"> jsword-devel@crosswire.org</a><br><a rel="nofollow" target="_blank"
href="http://www.crosswire.org/mailman/listinfo/jsword-devel"> http://www.crosswire.org/mailman/listinfo/jsword-devel </a><br></blockquote></div><br> <div>_______________________________________________<br>jsword-devel mailing list<br><a rel="nofollow" target="_blank" href="mailto:jsword-devel@crosswire.org"> jsword-devel@crosswire.org</a><br><a rel="nofollow" target="_blank" href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel </a><br></div></div><br></div></div><br> <hr size="1">Check out <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta"> the all-new Yahoo! Mail beta</a> - Fire up a more powerful email and get things done faster.<div style="margin: 0px;">_______________________________________________</div><div style="margin: 0px;">jsword-devel mailing list </div><div style="margin: 0px;"><a rel="nofollow" target="_blank"
href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a></div><div style="margin: 0px;"> <a rel="nofollow" target="_blank" href="http://www.crosswire.org/mailman/listinfo/jsword-devel"> http://www.crosswire.org/mailman/listinfo/jsword-devel</a></div> </blockquote></div><br></div></span></div></span></div></div></div></div><div><span> <br>_______________________________________________<br>jsword-devel mailing list<br><a rel="nofollow" target="_blank" href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org </a><br><a rel="nofollow" target="_blank" href="http://www.crosswire.org/mailman/listinfo/jsword-devel"> http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br><br><br></span></div></blockquote></div><div><span><br> <div>_______________________________________________<br>jsword-devel mailing list<br><a rel="nofollow" target="_blank" href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org </a><br><a rel="nofollow"
target="_blank" href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br> </div></span></div> </div><span><br></span></div></div><span><br> <hr size="1">Access over 1 million songs - <a rel="nofollow" target="_blank" href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/"> Yahoo! Music Unlimited. </a></span></div><span> </span><br>_______________________________________________<br>jsword-devel mailing list<br><a rel="nofollow" target="_blank" href="mailto:jsword-devel@crosswire.org"> jsword-devel@crosswire.org</a> <br><a rel="nofollow" target="_blank" href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br><br> <br></blockquote> </div><br> <div>_______________________________________________<br>jsword-devel mailing list<br><a rel="nofollow" target="_blank"
href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org </a><br><a rel="nofollow" target="_blank" href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br></div></span></div> </div><span class="ad"><br></span></div></div><span class="ad"><br> <hr size="1">Any questions? Get answers on any topic at <a rel="nofollow" target="_blank" href="http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx"> Yahoo! Answers</a>. Try it now.</span></div><span class="ad"> </span><br>_______________________________________________<br>jsword-devel mailing list<br><a rel="nofollow" target="_blank" href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a> <br><a rel="nofollow" target="_blank" href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br><br><br></blockquote>
</div><br><div style="margin: 0px;">_______________________________________________</div><div style="margin: 0px;">jsword-devel mailing list</div><div style="margin: 0px;"><a rel="nofollow" target="_blank" href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a></div><div style="margin: 0px;"><a rel="nofollow" target="_blank" href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a></div> </blockquote></div><br></div><div style="margin: 0px;">_______________________________________________</div><div style="margin: 0px;">jsword-devel mailing list</div><div style="margin: 0px;"><a rel="nofollow" target="_blank" href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a></div><div style="margin: 0px;"><a rel="nofollow" target="_blank" href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a></div>
</blockquote></div><br></div><div>_______________________________________________<br>jsword-devel mailing list<br>jsword-devel@crosswire.org<br><a target="_blank" href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br></div></div><br></div></div><br>
<hr size=1>Everyone is raving about <a href="http://us.rd.yahoo.com/evt=45083/*http://advision.webevents.yahoo.com/mailbeta">the all-new Yahoo! Mail beta.</a></body></html>