SWT.html 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <!DOCTYPE html>
  2. <html dir="ltr">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  5. <title>Dev/SWT - XOWA</title>
  6. <link rel="shortcut icon" href="https://gnosygnu.github.io/xowa/xowa_logo.png" />
  7. <link rel="stylesheet" href="https://gnosygnu.github.io/xowa/xowa_common.css" type="text/css">
  8. </head>
  9. <body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
  10. <div id="mw-page-base" class="noprint"></div>
  11. <div id="mw-head-base" class="noprint"></div>
  12. <div id="content" class="mw-body">
  13. <h1 id="firstHeading" class="firstHeading"><span>Dev/SWT</span></h1>
  14. <div id="bodyContent" class="mw-body-content">
  15. <div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
  16. <div id="contentSub"></div>
  17. <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
  18. <p>
  19. SWT is a core GUI library in XOWA.
  20. </p>
  21. <div id="toc" class="toc">
  22. <div id="toctitle" class="toctitle">
  23. <h2>
  24. Contents
  25. </h2>
  26. </div>
  27. <ul>
  28. <li class="toclevel-1 tocsection-1">
  29. <a href="#Overview"><span class="tocnumber">1</span> <span class="toctext">Overview</span></a>
  30. </li>
  31. <li class="toclevel-1 tocsection-2">
  32. <a href="#SWT_is_not_used_in_HTTP_Server_or_Android"><span class="tocnumber">2</span> <span class="toctext">SWT is not used in HTTP Server or Android</span></a>
  33. </li>
  34. <li class="toclevel-1 tocsection-3">
  35. <a href="#Packaging_details"><span class="tocnumber">3</span> <span class="toctext">Packaging details</span></a>
  36. <ul>
  37. <li class="toclevel-2 tocsection-4">
  38. <a href="#Platform-specific_jar"><span class="tocnumber">3.1</span> <span class="toctext">Platform-specific jar</span></a>
  39. </li>
  40. <li class="toclevel-2 tocsection-5">
  41. <a href="#Annual_update"><span class="tocnumber">3.2</span> <span class="toctext">Annual update</span></a>
  42. </li>
  43. </ul>
  44. </li>
  45. <li class="toclevel-1 tocsection-6">
  46. <a href="#SWT_version"><span class="tocnumber">4</span> <span class="toctext">SWT version</span></a>
  47. </li>
  48. </ul>
  49. </div>
  50. <h2>
  51. <span class="mw-headline" id="Overview">Overview</span>
  52. </h2>
  53. <p>
  54. The <a href="https://www.eclipse.org/swt/" rel="nofollow" class="external text">SWT library</a> is an open-source GUI library, used by the open-source Java IDE <a href="https://www.eclipse.org/eclipse/" rel="nofollow" class="external text">Eclipse</a>.
  55. </p>
  56. <p>
  57. XOWA uses SWT in its GUI application across the 3 major operating systems: Windows, Linux, Mac OS X. This means that SWT handles everything visual: including buttons, text boxes, windows, and of course, the HTML browser.
  58. </p>
  59. <h2>
  60. <span class="mw-headline" id="SWT_is_not_used_in_HTTP_Server_or_Android">SWT is not used in HTTP Server or Android</span>
  61. </h2>
  62. <p>
  63. If you are running XOWA as an HTTP server or are using the Android version, then SWT is not used.
  64. </p>
  65. <h2>
  66. <span class="mw-headline" id="Packaging_details">Packaging details</span>
  67. </h2>
  68. <h3>
  69. <span class="mw-headline" id="Platform-specific_jar">Platform-specific jar</span>
  70. </h3>
  71. <p>
  72. SWT comes packaged in an operating system-specific jar called swt.jar. XOWA includes this at /xowa/operating_system_name/swt/swt.jar. For example, on Linux 64-bit, this file is at /xowa/linux_64/swt/swt.jar
  73. </p>
  74. <h3>
  75. <span class="mw-headline" id="Annual_update">Annual update</span>
  76. </h3>
  77. <p>
  78. SWT does a major update annually in coordination with the Eclipse release. Typically, this occurs in June. There are also development snapshots that are released during the course of the year.
  79. </p>
  80. <p>
  81. XOWA will always update SWT shortly after the major version release. Depending on changes, it may also update after development snapshots.
  82. </p>
  83. <h2>
  84. <span class="mw-headline" id="SWT_version">SWT version</span>
  85. </h2>
  86. <p>
  87. XOWA v0.0.0 through v2.6.4 had been using SWT 4.2.
  88. </p>
  89. <p>
  90. XOWA had been stalled in using SWT 4.3 and SWT 4.4 due to the following SWT bug: <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=429739" rel="nofollow" class="external free">https://bugs.eclipse.org/bugs/show_bug.cgi?id=429739</a> This bug was corrected in SWT 4.5.
  91. </p>
  92. <p>
  93. As of v2.6.5, XOWA now uses SWT 4.5. As a result the following 2 bugs were also fixed:
  94. </p>
  95. <ul>
  96. <li>
  97. Printing was not available. See: <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=376358" rel="nofollow" class="external free">https://bugs.eclipse.org/bugs/show_bug.cgi?id=376358</a>
  98. </li>
  99. <li>
  100. A very small minority of pages would not render the same as a browser. For example, <a href="https://en.wikisource.org/wiki/Lubbers_Don't_Live" rel="nofollow" class="external free">https://en.wikisource.org/wiki/Lubbers_Don't_Live</a>!
  101. </li>
  102. </ul>
  103. </div>
  104. </div>
  105. </div>
  106. <div id="mw-head" class="noprint">
  107. <div id="left-navigation">
  108. <div id="p-namespaces" class="vectorTabs">
  109. <h3>Namespaces</h3>
  110. <ul>
  111. <li id="ca-nstab-main" class="selected"><span><a id="ca-nstab-main-href" href="index.html">Page</a></span></li>
  112. </ul>
  113. </div>
  114. </div>
  115. </div>
  116. <div id='mw-panel' class='noprint'>
  117. <div id='p-logo'>
  118. <a style="background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href="http://xowa.org/" title="Visit the main page"></a>
  119. </div>
  120. <div class="portal" id='xowa-portal-home'>
  121. <h3>XOWA</h3>
  122. <div class="body">
  123. <ul>
  124. <li><a href="http://xowa.org/index.html" title='Visit the main page'>Main page</a></li>
  125. <li><a href="http://xowa.org/screenshots.html" title='See screenshots of XOWA'>Screenshots</a></li>
  126. <li><a href="https://www.youtube.com/watch?v=q0qbXYXEH6M" title="See a video of XOWA Desktop in action">Video</a></li>
  127. <li><a href="http://xowa.org/home/wiki/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
  128. <li><a href="http://xowa.org/home/wiki/Dashboard/Image_databases.html" title='Download offline wikis and image databases'>Download wikis</a></li>
  129. </ul>
  130. </div>
  131. </div>
  132. <div class="portal" id='xowa-portal-started'>
  133. <h3>Getting started</h3>
  134. <div class="body">
  135. <ul>
  136. <li><a href="http://xowa.org/home/wiki/App/Setup/System_requirements.html" title='Get XOWA&apos;s system requirements'>Requirements</a></li>
  137. <li><a href="http://xowa.org/home/wiki/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
  138. <li><a href="http://xowa.org/home/wiki/App/Import/Simple_Wikipedia.html" title='Learn how to set up Simple Wikipedia'>Simple Wikipedia</a></li>
  139. <li><a href="http://xowa.org/home/wiki/App/Import/English_Wikipedia.html" title='Learn how to set up English Wikipedia'>English Wikipedia</a></li>
  140. <li><a href="http://xowa.org/home/wiki/App/Import/Other_wikis.html" title='Learn how to set up other Wikipedias'>Other Wikipedias</a></li>
  141. </ul>
  142. </div>
  143. </div>
  144. <div class="portal" id='xowa-portal-android'>
  145. <h3>Android</h3>
  146. <div class="body">
  147. <ul>
  148. <li><a href="http://xowa.org/home/wiki/Android/Setup.html" title='Setup XOWA on your Android device'>Setup</a></li>
  149. <li><a href="https://www.youtube.com/watch?v=jsMTBxGweUw" title="See a video of XOWA Android in action">Video</a></li>
  150. </ul>
  151. </div>
  152. </div>
  153. <div class="portal" id='xowa-portal-help'>
  154. <h3>Help</h3>
  155. <div class="body">
  156. <ul>
  157. <li><a href="http://xowa.org/home/wiki/Help/About.html" title='Get more information about XOWA'>About</a></li>
  158. <li><a href="http://xowa.org/home/wiki/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
  159. <li><a href="http://xowa.org/home/wiki/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
  160. <li><a href="http://xowa.org/home/wiki/Help/Feedback.html" title='Questions? Comments? Leave feedback for XOWA'>Feedback</a></li>
  161. </ul>
  162. </div>
  163. </div>
  164. <div class="portal" id='xowa-portal-blog'>
  165. <h3>Blog</h3>
  166. <div class="body">
  167. <ul>
  168. <li><a href="http://xowa.org/home/wiki/Blog.html" title='Follow XOWA''s development process'>Current</a></li>
  169. </ul>
  170. </div>
  171. </div>
  172. <div class="portal" id='xowa-portal-links'>
  173. <h3>Links</h3>
  174. <div class="body">
  175. <ul>
  176. <li><a href="http://dumps.wikimedia.org/backup-index.html" title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
  177. <li><a href="https://archive.org/search.php?query=xowa" title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
  178. <li><a href="http://en.wikipedia.org" title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
  179. </ul>
  180. </div>
  181. </div>
  182. <div class="portal" id='xowa-portal-donate'>
  183. <h3>Donate</h3>
  184. <div class="body">
  185. <ul>
  186. <li><a href="https://archive.org/donate/index.php" title="Support archive.org!">archive.org</a></li><!-- listed first due to recent fire damages: http://blog.archive.org/2013/11/06/scanning-center-fire-please-help-rebuild/ -->
  187. <li><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title="Support Wikipedia!">Wikipedia</a></li>
  188. <li><a href="http://xowa.org/home/wiki/Help/Donate.html" title="Support XOWA!">XOWA</a></li>
  189. </ul>
  190. </div>
  191. </div>
  192. </div>
  193. </body>
  194. </html>