Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initial import of swtbot

  • Loading branch information...
commit 95e2917d01ed218c59e6c902b18d20603e587124 1 parent 74a5826
@ketan ketan authored
Showing with 30,261 additions and 0 deletions.
  1. +7 −0 examples/rcp/org.rcpmail.test/.classpath
  2. +28 −0 examples/rcp/org.rcpmail.test/.project
  3. +7 −0 examples/rcp/org.rcpmail.test/.settings/org.eclipse.jdt.core.prefs
  4. +13 −0 examples/rcp/org.rcpmail.test/META-INF/MANIFEST.MF
  5. +14 −0 examples/rcp/org.rcpmail.test/build.properties
  6. +28 −0 examples/rcp/org.rcpmail.test/src/org/rcpmail/AllTests.java
  7. +71 −0 examples/rcp/org.rcpmail.test/src/org/rcpmail/MessageCreateTest.java
  8. +34 −0 examples/rcp/org.rcpmail.test/src/org/rcpmail/MyFirstTest.java
  9. +25 −0 examples/rcp/org.rcpmail.test/src/org/rcpmail/MySecondTest.java
  10. +7 −0 examples/rcp/org.rcpmail/.classpath
  11. +28 −0 examples/rcp/org.rcpmail/.project
  12. +7 −0 examples/rcp/org.rcpmail/.settings/org.eclipse.jdt.core.prefs
  13. +10 −0 examples/rcp/org.rcpmail/META-INF/MANIFEST.MF
  14. +18 −0 examples/rcp/org.rcpmail/build.properties
  15. BIN  examples/rcp/org.rcpmail/icons/mail.ico
  16. BIN  examples/rcp/org.rcpmail/icons/sample.gif
  17. BIN  examples/rcp/org.rcpmail/icons/sample.icns
  18. BIN  examples/rcp/org.rcpmail/icons/sample2.gif
  19. BIN  examples/rcp/org.rcpmail/icons/sample3.gif
  20. +97 −0 examples/rcp/org.rcpmail/plugin.xml
  21. BIN  examples/rcp/org.rcpmail/product_lg.gif
  22. BIN  examples/rcp/org.rcpmail/splash.bmp
  23. +71 −0 examples/rcp/org.rcpmail/src/org/rcpmail/Activator.java
  24. +55 −0 examples/rcp/org.rcpmail/src/org/rcpmail/Application.java
  25. +101 −0 examples/rcp/org.rcpmail/src/org/rcpmail/ApplicationActionBarAdvisor.java
  26. +33 −0 examples/rcp/org.rcpmail/src/org/rcpmail/ApplicationWorkbenchAdvisor.java
  27. +36 −0 examples/rcp/org.rcpmail/src/org/rcpmail/ApplicationWorkbenchWindowAdvisor.java
  28. +25 −0 examples/rcp/org.rcpmail/src/org/rcpmail/ICommandIds.java
  29. +35 −0 examples/rcp/org.rcpmail/src/org/rcpmail/MessagePopupAction.java
  30. +161 −0 examples/rcp/org.rcpmail/src/org/rcpmail/NavigationView.java
  31. +46 −0 examples/rcp/org.rcpmail/src/org/rcpmail/OpenViewAction.java
  32. +30 −0 examples/rcp/org.rcpmail/src/org/rcpmail/Perspective.java
  33. +87 −0 examples/rcp/org.rcpmail/src/org/rcpmail/View.java
  34. +7 −0 org.eclipse.swt.examples/.classpath
  35. +28 −0 org.eclipse.swt.examples/.project
  36. +85 −0 org.eclipse.swt.examples/.settings/org.eclipse.jdt.core.prefs
  37. +88 −0 org.eclipse.swt.examples/LICENCE_EPL-1.0
  38. +25 −0 org.eclipse.swt.examples/META-INF/MANIFEST.MF
  39. +2 −0  org.eclipse.swt.examples/build.local.properties
  40. +23 −0 org.eclipse.swt.examples/build.properties
  41. +69 −0 org.eclipse.swt.examples/src/examples_addressbook.properties
  42. +20 −0 org.eclipse.swt.examples/src/examples_browser.properties
  43. +253 −0 org.eclipse.swt.examples/src/examples_control.properties
  44. +69 −0 org.eclipse.swt.examples/src/examples_fileviewer.properties
  45. +164 −0 org.eclipse.swt.examples/src/examples_graphics.properties
  46. +11 −0 org.eclipse.swt.examples/src/examples_helloworld.properties
  47. +26 −0 org.eclipse.swt.examples/src/examples_hoverhelp.properties
  48. +114 −0 org.eclipse.swt.examples/src/examples_images.properties
  49. +17 −0 org.eclipse.swt.examples/src/examples_javaviewer.properties
  50. +51 −0 org.eclipse.swt.examples/src/examples_layout.properties
  51. +115 −0 org.eclipse.swt.examples/src/examples_paint.properties
  52. +22 −0 org.eclipse.swt.examples/src/examples_texteditor.properties
  53. +26 −0 org.eclipse.swt.examples/src/import.properties
  54. +139 −0 org.eclipse.swt.examples/src/org/eclipse/jface/snippets/viewers/Snippet009CellEditors.java
  55. +180 −0 org.eclipse.swt.examples/src/org/eclipse/jface/snippets/viewers/Snippet052DoubleClickCellEditor.java
  56. +913 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/addressbook/AddressBook.java
  57. +172 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/addressbook/DataEntryDialog.java
  58. +17 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/addressbook/FindListener.java
  59. +228 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/addressbook/SearchDialog.java
  60. +429 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/BrowserExample.java
  61. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/document.gif
  62. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse01.bmp
  63. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse02.bmp
  64. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse03.bmp
  65. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse04.bmp
  66. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse05.bmp
  67. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse06.bmp
  68. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse07.bmp
  69. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse08.bmp
  70. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse09.bmp
  71. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse10.bmp
  72. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse11.bmp
  73. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse12.bmp
  74. +455 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/clipboard/ClipboardExample.java
  75. +16 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/clipboard/MyType.java
  76. +115 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/clipboard/MyTypeTransfer.java
  77. +91 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/AlignableTab.java
  78. +251 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ButtonTab.java
  79. +123 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CComboTab.java
  80. +147 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CLabelTab.java
  81. +488 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CTabFolderTab.java
  82. +327 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CanvasTab.java
  83. +152 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ComboTab.java
  84. +226 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ControlExample.java
  85. +507 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java
  86. +54 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CustomControlExample.java
  87. +135 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/DateTimeTab.java
  88. +507 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/DialogTab.java
  89. +153 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ExpandBarTab.java
  90. +163 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/GroupTab.java
  91. +201 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/LabelTab.java
  92. +105 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/LinkTab.java
  93. +96 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ListTab.java
  94. +323 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/MenuTab.java
  95. +185 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ProgressBarTab.java
  96. +198 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/RangeTab.java
  97. +131 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/SashFormTab.java
  98. +246 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/SashTab.java
  99. +235 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ScaleTab.java
  100. +63 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ScrollableTab.java
  101. +310 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ShellTab.java
  102. +277 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/SliderTab.java
  103. +324 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/SpinnerTab.java
  104. +354 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/StyledTextTab.java
  105. +1,495 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java
  106. +178 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TabFolderTab.java
  107. +740 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TableTab.java
  108. +203 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TextTab.java
  109. +391 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ToolBarTab.java
  110. +264 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ToolTipTab.java
  111. +838 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TreeTab.java
  112. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/backgroundImage.png
  113. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/bold.bmp
  114. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/bold_mask.bmp
  115. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/closedFolder.gif
  116. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/italic.bmp
  117. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/italic_mask.bmp
  118. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/openFolder.gif
  119. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/parentBackgroundImage.png
  120. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/red.bmp
  121. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/red_mask.bmp
  122. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/strikeout.bmp
  123. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/strikeout_mask.bmp
  124. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/target.gif
  125. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/underline.bmp
  126. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/underline_mask.bmp
  127. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/yellow.bmp
  128. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/yellow_mask.bmp
  129. +1,387 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/dnd/DNDExample.java
  130. +95 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/dnd/ImageTransfer.java
  131. +1,881 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/FileViewer.java
  132. +139 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/IconCache.java
  133. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Copy.gif
  134. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Cut.gif
  135. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Delete.gif
  136. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Parent.gif
  137. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Paste.gif
  138. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Print.gif
  139. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Refresh.gif
  140. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Rename.gif
  141. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Search.gif
  142. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/generic_example.gif
  143. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/icon_ClosedDrive.gif
  144. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/icon_ClosedFolder.gif
  145. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/icon_File.gif
  146. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/icon_OpenDrive.gif
  147. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/icon_OpenFolder.gif
  148. +116 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/AdvancedGraphics.java
  149. +235 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/AlphaTab.java
  150. +163 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/AnimatedGraphicsTab.java
  151. +153 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/BallTab.java
  152. +45 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/BlackHoleTab.java
  153. +187 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/CardsTab.java
  154. +24 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/ColorListener.java
  155. +376 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/ColorMenu.java
  156. +266 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/CountDownTab.java
  157. +409 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/CurvesSWTTab.java
  158. +319 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/CurvesTab.java
  159. +178 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/CustomAlphaTab.java
  160. +216 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/CustomFontTab.java
  161. +153 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/FontBounceTab.java
  162. +295 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GradientDialog.java
  163. +225 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GradientTab.java
  164. +139 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicAntialiasTab.java
  165. +65 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsBackground.java
  166. +691 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsExample.java
  167. +72 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsTab.java
  168. +114 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/ImageFlipTab.java
  169. +165 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/ImageTransformTab.java
  170. +205 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/InterpolationTab.java
  171. +107 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/IntroTab.java
  172. +160 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/LineCapTab.java
  173. +152 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/LineJoinTab.java
  174. +180 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/LineStyleTab.java
  175. +37 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/LineTab.java
  176. +334 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/MazeTab.java
  177. +215 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/PathClippingAnimTab.java
  178. +268 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/PathClippingTab.java
  179. +197 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/PathTab.java
  180. +160 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/RGBTab.java
  181. +209 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/RegionClippingTab.java
  182. +203 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/ShapesTab.java
  183. +181 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/SpiralTab.java
  184. +72 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/StarPolyTab.java
  185. +206 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/TextAntialiasTab.java
  186. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/ace_club.jpg
  187. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/ace_diamond.jpg
  188. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/ace_hearts.jpg
  189. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/ace_spade.jpg
  190. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/alpha_img1.png
  191. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/alpha_img2.png
  192. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/back.gif
  193. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/cube.png
  194. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/db.gif
  195. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/font.gif
  196. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/help.gif
  197. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/home_nav.gif
  198. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/houses.png
  199. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/irmaos.jpg
  200. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/maze.bmp
  201. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/next.gif
  202. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/ovals.png
  203. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/pattern1.jpg
  204. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/pattern2.jpg
  205. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/pattern3.jpg
  206. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/pause.gif
  207. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/play.gif
  208. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/swap.gif
  209. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/swt.png
  210. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/task.gif
  211. +35 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/helloworld/HelloWorld1.java
  212. +44 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/helloworld/HelloWorld2.java
  213. +52 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/helloworld/HelloWorld3.java
  214. +45 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/helloworld/HelloWorld4.java
  215. +60 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/helloworld/HelloWorld5.java
  216. +379 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/hoverhelp/HoverHelp.java
  217. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/hoverhelp/information.gif
  218. BIN  org.eclipse.swt.examples/src/org/eclipse/swt/examples/hoverhelp/warning.gif
  219. +2,462 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/imageanalyzer/ImageAnalyzer.java
  220. +372 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/javaviewer/JavaLineStyler.java
  221. +203 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/javaviewer/JavaViewer.java
  222. +181 −0 org.eclipse.swt.examples/src/org/eclipse/swt/examples/layoutexample/FillLayoutTab.java
Sorry, we could not display the entire diff because too many files (729) changed.
View
7 examples/rcp/org.rcpmail.test/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
View
28 examples/rcp/org.rcpmail.test/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.rcpmail.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
View
7 examples/rcp/org.rcpmail.test/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+#Wed Oct 08 11:18:38 IST 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
View
13 examples/rcp/org.rcpmail.test/META-INF/MANIFEST.MF
@@ -0,0 +1,13 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Test Plug-in (incubation)
+Bundle-SymbolicName: org.rcpmail.test
+Bundle-Version: 1.0.0
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.rcpmail,
+ org.eclipse.swtbot.eclipse.finder,
+ org.eclipse.swtbot.swt.finder,
+ org.junit,
+ org.hamcrest
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
View
14 examples/rcp/org.rcpmail.test/build.properties
@@ -0,0 +1,14 @@
+###############################################################################
+# Copyright (c) 2008 Ketan Padegaonkar and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Ketan Padegaonkar - initial API and implementation
+###############################################################################
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
View
28 examples/rcp/org.rcpmail.test/src/org/rcpmail/AllTests.java
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Test for org.rcpmail");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(MessageCreateTest.class);
+ suite.addTestSuite(MyFirstTest.class);
+ suite.addTestSuite(MySecondTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
View
71 examples/rcp/org.rcpmail.test/src/org/rcpmail/MessageCreateTest.java
@@ -0,0 +1,71 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.widgetOfType;
+
+import java.util.List;
+
+import org.eclipse.swt.widgets.Tree;
+import org.eclipse.swt.widgets.Widget;
+import org.eclipse.swtbot.eclipse.finder.SWTBotEclipseTestCase;
+import org.eclipse.swtbot.swt.finder.finders.ChildrenControlFinder;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
+import org.eclipse.swtbot.swt.finder.widgets.WidgetNotFoundException;
+import org.hamcrest.Matcher;
+
+public class MessageCreateTest extends SWTBotEclipseTestCase {
+
+ public void testCreatesAnotherMessageWindow() throws Exception {
+ assertEquals(2, viewCount());
+ bot.menu("File").menu("Open Another Message View").click();
+
+ assertEquals(3, viewCount());
+ }
+
+ public void testClosesAllMessageWindows() throws Exception {
+ bot.view("Message").close();
+ bot.view("Message").close();
+
+ assertEquals(1, viewCount());
+ }
+
+ public void testMyMailBoxContainsDrafts() throws Exception {
+ SWTBotTree mailbox = mailBox();
+ SWTBotTreeItem myMailBox = mailbox.expandNode("me@this.com");
+ assertTrue(myMailBox.getNodes().contains("Drafts"));
+ }
+
+ // oops this fails
+ public void testOtherMailBoxContainsDrafts() throws Exception {
+ SWTBotTree mailbox = mailBox();
+ SWTBotTreeItem otherMailBox = mailbox.expandNode("other@aol.com");
+ assertTrue(otherMailBox.getNodes().contains("Drafts"));
+ }
+
+ private SWTBotTree mailBox() throws WidgetNotFoundException {
+ Widget widget = bot.view("Mailboxes").widget;
+ // find the tree
+ ChildrenControlFinder finder = new ChildrenControlFinder(widget);
+ List findControls = finder.findControls(treeMatcher());
+ return new SWTBotTree((Tree) findControls.get(0));
+ }
+
+ private Matcher treeMatcher() {
+ return widgetOfType(Tree.class);
+ }
+
+ private int viewCount() throws WidgetNotFoundException {
+ return bot.views().size();
+ }
+
+}
View
34 examples/rcp/org.rcpmail.test/src/org/rcpmail/MyFirstTest.java
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+import org.eclipse.swtbot.eclipse.finder.SWTBotEclipseTestCase;
+
+
+public class MyFirstTest extends SWTBotEclipseTestCase {
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ }
+
+ public void testThisPasses() throws Exception {
+ pass();
+ }
+
+ public void testThisFails() throws Exception {
+ fail();
+ }
+
+}
View
25 examples/rcp/org.rcpmail.test/src/org/rcpmail/MySecondTest.java
@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swtbot.eclipse.finder.SWTBotEclipseTestCase;
+import org.eclipse.swtbot.swt.finder.utils.SWTUtils;
+
+public class MySecondTest extends SWTBotEclipseTestCase {
+
+ public void testThatSWTBotDoesNotRunOnTheUIThread() throws Exception {
+ assertNull(Display.getCurrent());
+ assertNotSame(Thread.currentThread(), SWTUtils.display().getThread());
+ }
+
+
+}
View
7 examples/rcp/org.rcpmail/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
View
28 examples/rcp/org.rcpmail/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.rcpmail</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
View
7 examples/rcp/org.rcpmail/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+#Thu Nov 20 22:48:28 IST 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
View
10 examples/rcp/org.rcpmail/META-INF/MANIFEST.MF
@@ -0,0 +1,10 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Rcpmail Plug-in (incubation)
+Bundle-SymbolicName: org.rcpmail; singleton:=true
+Bundle-Version: 1.0.0
+Bundle-Activator: org.rcpmail.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
View
18 examples/rcp/org.rcpmail/build.properties
@@ -0,0 +1,18 @@
+###############################################################################
+# Copyright (c) 2008 Ketan Padegaonkar and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Ketan Padegaonkar - initial API and implementation
+###############################################################################
+source.. = src/
+output.. = bin/
+bin.includes = plugin.xml,\
+ META-INF/,\
+ .,\
+ icons/,\
+ product_lg.gif,\
+ splash.bmp
View
BIN  examples/rcp/org.rcpmail/icons/mail.ico
Binary file not shown
View
BIN  examples/rcp/org.rcpmail/icons/sample.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  examples/rcp/org.rcpmail/icons/sample.icns
Binary file not shown
View
BIN  examples/rcp/org.rcpmail/icons/sample2.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  examples/rcp/org.rcpmail/icons/sample3.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
97 examples/rcp/org.rcpmail/plugin.xml
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+
+ <extension
+ id="application"
+ point="org.eclipse.core.runtime.applications">
+ <application>
+ <run
+ class="org.rcpmail.Application">
+ </run>
+ </application>
+ </extension>
+ <extension
+ point="org.eclipse.ui.perspectives">
+ <perspective
+ name="RCP Perspective"
+ class="org.rcpmail.Perspective"
+ id="org.rcpmail.perspective">
+ </perspective>
+ </extension>
+ <extension
+ point="org.eclipse.ui.views">
+ <view
+ name="Message"
+ allowMultiple="true"
+ icon="icons/sample2.gif"
+ class="org.rcpmail.View"
+ id="org.rcpmail.view">
+ </view>
+ <view
+ name="Mailboxes"
+ allowMultiple="true"
+ icon="icons/sample3.gif"
+ class="org.rcpmail.NavigationView"
+ id="org.rcpmail.navigationView">
+ </view>
+ </extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <category
+ name="Mail"
+ id="org.rcpmail.category">
+ </category>
+ <command
+ name="Open Mailbox"
+ description="Opens a mailbox"
+ categoryId="org.rcpmail.category"
+ id="org.rcpmail.open">
+ </command>
+ <command
+ name="Open Message Dialog"
+ description="Open a message dialog"
+ categoryId="org.rcpmail.category"
+ id="org.rcpmail.openMessage">
+ </command>
+ </extension>
+ <extension
+ point="org.eclipse.ui.bindings">
+ <key
+ commandId="org.rcpmail.open"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="CTRL+2">
+ </key>
+ <key
+ commandId="org.rcpmail.openMessage"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="CTRL+3">
+ </key>
+ <key
+ commandId="org.eclipse.ui.file.exit"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="CTRL+X">
+ </key>
+ </extension>
+ <extension
+ id="product"
+ point="org.eclipse.core.runtime.products">
+ <product
+ application="org.rcpmail.application"
+ name="RCP Product">
+ <property
+ name="aboutText"
+ value="RCP Mail template created by PDE">
+ </property>
+ <property
+ name="windowImages"
+ value="icons/sample2.gif">
+ </property>
+ <property
+ name="aboutImage"
+ value="product_lg.gif">
+ </property>
+ </product>
+ </extension>
+
+</plugin>
View
BIN  examples/rcp/org.rcpmail/product_lg.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  examples/rcp/org.rcpmail/splash.bmp
Binary file not shown
View
71 examples/rcp/org.rcpmail/src/org/rcpmail/Activator.java
@@ -0,0 +1,71 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.rcpmail";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+ /**
+ * Returns an image descriptor for the image file at the given
+ * plug-in relative path
+ *
+ * @param path the path
+ * @return the image descriptor
+ */
+ public static ImageDescriptor getImageDescriptor(String path) {
+ return imageDescriptorFromPlugin(PLUGIN_ID, path);
+ }
+}
View
55 examples/rcp/org.rcpmail/src/org/rcpmail/Application.java
@@ -0,0 +1,55 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+import org.eclipse.equinox.app.IApplication;
+import org.eclipse.equinox.app.IApplicationContext;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * This class controls all aspects of the application's execution
+ */
+public class Application implements IApplication {
+
+ /* (non-Javadoc)
+ * @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
+ */
+ public Object start(IApplicationContext context) {
+ Display display = PlatformUI.createDisplay();
+ try {
+ int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
+ if (returnCode == PlatformUI.RETURN_RESTART) {
+ return IApplication.EXIT_RESTART;
+ }
+ return IApplication.EXIT_OK;
+ } finally {
+ display.dispose();
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.equinox.app.IApplication#stop()
+ */
+ public void stop() {
+ final IWorkbench workbench = PlatformUI.getWorkbench();
+ if (workbench == null)
+ return;
+ final Display display = workbench.getDisplay();
+ display.syncExec(new Runnable() {
+ public void run() {
+ if (!display.isDisposed())
+ workbench.close();
+ }
+ });
+ }
+}
View
101 examples/rcp/org.rcpmail/src/org/rcpmail/ApplicationActionBarAdvisor.java
@@ -0,0 +1,101 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.GroupMarker;
+import org.eclipse.jface.action.ICoolBarManager;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.IToolBarManager;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.action.Separator;
+import org.eclipse.jface.action.ToolBarContributionItem;
+import org.eclipse.jface.action.ToolBarManager;
+import org.eclipse.swt.SWT;
+import org.eclipse.ui.IWorkbenchActionConstants;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.actions.ActionFactory;
+import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;
+import org.eclipse.ui.application.ActionBarAdvisor;
+import org.eclipse.ui.application.IActionBarConfigurer;
+
+/**
+ * An action bar advisor is responsible for creating, adding, and disposing of the
+ * actions added to a workbench window. Each window will be populated with
+ * new actions.
+ */
+public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
+
+ // Actions - important to allocate these only in makeActions, and then use them
+ // in the fill methods. This ensures that the actions aren't recreated
+ // when fillActionBars is called with FILL_PROXY.
+ private IWorkbenchAction exitAction;
+ private IWorkbenchAction aboutAction;
+ private IWorkbenchAction newWindowAction;
+ private OpenViewAction openViewAction;
+ private Action messagePopupAction;
+
+
+ public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {
+ super(configurer);
+ }
+
+ protected void makeActions(final IWorkbenchWindow window) {
+ // Creates the actions and registers them.
+ // Registering is needed to ensure that key bindings work.
+ // The corresponding commands keybindings are defined in the plugin.xml file.
+ // Registering also provides automatic disposal of the actions when
+ // the window is closed.
+
+ exitAction = ActionFactory.QUIT.create(window);
+ register(exitAction);
+
+ aboutAction = ActionFactory.ABOUT.create(window);
+ register(aboutAction);
+
+ newWindowAction = ActionFactory.OPEN_NEW_WINDOW.create(window);
+ register(newWindowAction);
+
+ openViewAction = new OpenViewAction(window, "Open Another Message View", View.ID);
+ register(openViewAction);
+
+ messagePopupAction = new MessagePopupAction("Open Message", window);
+ register(messagePopupAction);
+ }
+
+ protected void fillMenuBar(IMenuManager menuBar) {
+ MenuManager fileMenu = new MenuManager("&File", IWorkbenchActionConstants.M_FILE);
+ MenuManager helpMenu = new MenuManager("&Help", IWorkbenchActionConstants.M_HELP);
+
+ menuBar.add(fileMenu);
+ // Add a group marker indicating where action set menus will appear.
+ menuBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
+ menuBar.add(helpMenu);
+
+ // File
+ fileMenu.add(newWindowAction);
+ fileMenu.add(new Separator());
+ fileMenu.add(messagePopupAction);
+ fileMenu.add(openViewAction);
+ fileMenu.add(new Separator());
+ fileMenu.add(exitAction);
+
+ // Help
+ helpMenu.add(aboutAction);
+ }
+
+ protected void fillCoolBar(ICoolBarManager coolBar) {
+ IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.RIGHT);
+ coolBar.add(new ToolBarContributionItem(toolbar, "main"));
+ toolbar.add(openViewAction);
+ toolbar.add(messagePopupAction);
+ }
+}
View
33 examples/rcp/org.rcpmail/src/org/rcpmail/ApplicationWorkbenchAdvisor.java
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+import org.eclipse.ui.application.WorkbenchAdvisor;
+import org.eclipse.ui.application.WorkbenchWindowAdvisor;
+
+/**
+ * This workbench advisor creates the window advisor, and specifies
+ * the perspective id for the initial window.
+ */
+public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
+
+ private static final String PERSPECTIVE_ID = "org.rcpmail.perspective";
+
+ public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
+ return new ApplicationWorkbenchWindowAdvisor(configurer);
+ }
+
+ public String getInitialWindowPerspectiveId() {
+ return PERSPECTIVE_ID;
+ }
+
+}
View
36 examples/rcp/org.rcpmail/src/org/rcpmail/ApplicationWorkbenchWindowAdvisor.java
@@ -0,0 +1,36 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.ui.application.ActionBarAdvisor;
+import org.eclipse.ui.application.IActionBarConfigurer;
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+import org.eclipse.ui.application.WorkbenchWindowAdvisor;
+
+public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
+
+ public ApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
+ super(configurer);
+ }
+
+ public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) {
+ return new ApplicationActionBarAdvisor(configurer);
+ }
+
+ public void preWindowOpen() {
+ IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
+ configurer.setInitialSize(new Point(600, 400));
+ configurer.setShowCoolBar(true);
+ configurer.setShowStatusLine(false);
+ }
+
+}
View
25 examples/rcp/org.rcpmail/src/org/rcpmail/ICommandIds.java
@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+/**
+ * Interface defining the application's command IDs.
+ * Key bindings can be defined for specific commands.
+ * To associate an action with a command, use IAction.setActionDefinitionId(commandId).
+ *
+ * @see org.eclipse.jface.action.IAction#setActionDefinitionId(String)
+ */
+public interface ICommandIds {
+
+ public static final String CMD_OPEN = "org.rcpmail.open";
+ public static final String CMD_OPEN_MESSAGE = "org.rcpmail.openMessage";
+
+}
View
35 examples/rcp/org.rcpmail/src/org/rcpmail/MessagePopupAction.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.ui.IWorkbenchWindow;
+
+
+public class MessagePopupAction extends Action {
+
+ private final IWorkbenchWindow window;
+
+ MessagePopupAction(String text, IWorkbenchWindow window) {
+ super(text);
+ this.window = window;
+ // The id is used to refer to the action in a menu or toolbar
+ setId(ICommandIds.CMD_OPEN_MESSAGE);
+ // Associate the action with a pre-defined command, to allow key bindings.
+ setActionDefinitionId(ICommandIds.CMD_OPEN_MESSAGE);
+ setImageDescriptor(org.rcpmail.Activator.getImageDescriptor("/icons/sample3.gif"));
+ }
+
+ public void run() {
+ MessageDialog.openInformation(window.getShell(), "Open", "Open Message Dialog!");
+ }
+}
View
161 examples/rcp/org.rcpmail/src/org/rcpmail/NavigationView.java
@@ -0,0 +1,161 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+import java.util.ArrayList;
+
+import org.eclipse.jface.viewers.IStructuredContentProvider;
+import org.eclipse.jface.viewers.ITreeContentProvider;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.ISharedImages;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.ViewPart;
+
+public class NavigationView extends ViewPart {
+ public static final String ID = "org.rcpmail.navigationView";
+ private TreeViewer viewer;
+
+ class TreeObject {
+ private String name;
+ private TreeParent parent;
+
+ public TreeObject(String name) {
+ this.name = name;
+ }
+ public String getName() {
+ return name;
+ }
+ public void setParent(TreeParent parent) {
+ this.parent = parent;
+ }
+ public TreeParent getParent() {
+ return parent;
+ }
+ public String toString() {
+ return getName();
+ }
+ }
+
+ class TreeParent extends TreeObject {
+ private ArrayList children;
+ public TreeParent(String name) {
+ super(name);
+ children = new ArrayList();
+ }
+ public void addChild(TreeObject child) {
+ children.add(child);
+ child.setParent(this);
+ }
+ public void removeChild(TreeObject child) {
+ children.remove(child);
+ child.setParent(null);
+ }
+ public TreeObject[] getChildren() {
+ return (TreeObject[]) children.toArray(new TreeObject[children.size()]);
+ }
+ public boolean hasChildren() {
+ return children.size()>0;
+ }
+ }
+
+ class ViewContentProvider implements IStructuredContentProvider,
+ ITreeContentProvider {
+
+ public void inputChanged(Viewer v, Object oldInput, Object newInput) {
+ }
+
+ public void dispose() {
+ }
+
+ public Object[] getElements(Object parent) {
+ return getChildren(parent);
+ }
+
+ public Object getParent(Object child) {
+ if (child instanceof TreeObject) {
+ return ((TreeObject)child).getParent();
+ }
+ return null;
+ }
+
+ public Object[] getChildren(Object parent) {
+ if (parent instanceof TreeParent) {
+ return ((TreeParent)parent).getChildren();
+ }
+ return new Object[0];
+ }
+
+ public boolean hasChildren(Object parent) {
+ if (parent instanceof TreeParent)
+ return ((TreeParent)parent).hasChildren();
+ return false;
+ }
+ }
+
+ class ViewLabelProvider extends LabelProvider {
+
+ public String getText(Object obj) {
+ return obj.toString();
+ }
+ public Image getImage(Object obj) {
+ String imageKey = ISharedImages.IMG_OBJ_ELEMENT;
+ if (obj instanceof TreeParent)
+ imageKey = ISharedImages.IMG_OBJ_FOLDER;
+ return PlatformUI.getWorkbench().getSharedImages().getImage(imageKey);
+ }
+ }
+
+ /**
+ * We will set up a dummy model to initialize tree heararchy. In real
+ * code, you will connect to a real model and expose its hierarchy.
+ */
+ private TreeObject createDummyModel() {
+ TreeObject to1 = new TreeObject("Inbox");
+ TreeObject to2 = new TreeObject("Drafts");
+ TreeObject to3 = new TreeObject("Sent");
+ TreeParent p1 = new TreeParent("me@this.com");
+ p1.addChild(to1);
+ p1.addChild(to2);
+ p1.addChild(to3);
+
+ TreeObject to4 = new TreeObject("Inbox");
+ TreeParent p2 = new TreeParent("other@aol.com");
+ p2.addChild(to4);
+
+ TreeParent root = new TreeParent("");
+ root.addChild(p1);
+ root.addChild(p2);
+ return root;
+ }
+
+ /**
+ * This is a callback that will allow us to create the viewer and initialize
+ * it.
+ */
+ public void createPartControl(Composite parent) {
+ viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
+ viewer.setContentProvider(new ViewContentProvider());
+ viewer.setLabelProvider(new ViewLabelProvider());
+ viewer.setInput(createDummyModel());
+ }
+
+ /**
+ * Passing the focus request to the viewer's control.
+ */
+ public void setFocus() {
+ viewer.getControl().setFocus();
+ }
+}
View
46 examples/rcp/org.rcpmail/src/org/rcpmail/OpenViewAction.java
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.PartInitException;
+
+
+public class OpenViewAction extends Action {
+
+ private final IWorkbenchWindow window;
+ private int instanceNum = 0;
+ private final String viewId;
+
+ public OpenViewAction(IWorkbenchWindow window, String label, String viewId) {
+ this.window = window;
+ this.viewId = viewId;
+ setText(label);
+ // The id is used to refer to the action in a menu or toolbar
+ setId(ICommandIds.CMD_OPEN);
+ // Associate the action with a pre-defined command, to allow key bindings.
+ setActionDefinitionId(ICommandIds.CMD_OPEN);
+ setImageDescriptor(org.rcpmail.Activator.getImageDescriptor("/icons/sample2.gif"));
+ }
+
+ public void run() {
+ if(window != null) {
+ try {
+ window.getActivePage().showView(viewId, Integer.toString(instanceNum++), IWorkbenchPage.VIEW_ACTIVATE);
+ } catch (PartInitException e) {
+ MessageDialog.openError(window.getShell(), "Error", "Error opening view:" + e.getMessage());
+ }
+ }
+ }
+}
View
30 examples/rcp/org.rcpmail/src/org/rcpmail/Perspective.java
@@ -0,0 +1,30 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+import org.eclipse.ui.IFolderLayout;
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IPerspectiveFactory;
+
+public class Perspective implements IPerspectiveFactory {
+
+ public void createInitialLayout(IPageLayout layout) {
+ String editorArea = layout.getEditorArea();
+ layout.setEditorAreaVisible(false);
+
+ layout.addStandaloneView(NavigationView.ID, false, IPageLayout.LEFT, 0.25f, editorArea);
+ IFolderLayout folder = layout.createFolder("messages", IPageLayout.TOP, 0.5f, editorArea);
+ folder.addPlaceholder(View.ID + ":*");
+ folder.addView(View.ID);
+
+ layout.getViewLayout(NavigationView.ID).setCloseable(false);
+ }
+}
View
87 examples/rcp/org.rcpmail/src/org/rcpmail/View.java
@@ -0,0 +1,87 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Ketan Padegaonkar and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ketan Padegaonkar - initial API and implementation
+ *******************************************************************************/
+package org.rcpmail;
+
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.resource.JFaceResources;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Link;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.part.ViewPart;
+
+public class View extends ViewPart {
+
+ public static final String ID = "org.rcpmail.view";
+
+ public void createPartControl(Composite parent) {
+ Composite top = new Composite(parent, SWT.NONE);
+ GridLayout layout = new GridLayout();
+ layout.marginHeight = 0;
+ layout.marginWidth = 0;
+ top.setLayout(layout);
+ // top banner
+ Composite banner = new Composite(top, SWT.NONE);
+ banner.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL, GridData.VERTICAL_ALIGN_BEGINNING, true, false));
+ layout = new GridLayout();
+ layout.marginHeight = 5;
+ layout.marginWidth = 10;
+ layout.numColumns = 2;
+ banner.setLayout(layout);
+
+ // setup bold font
+ Font boldFont = JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT);
+
+ Label l = new Label(banner, SWT.WRAP);
+ l.setText("Subject:");
+ l.setFont(boldFont);
+ l = new Label(banner, SWT.WRAP);
+ l.setText("This is a message about the cool Eclipse RCP!");
+
+ l = new Label(banner, SWT.WRAP);
+ l.setText("From:");
+ l.setFont(boldFont);
+
+ final Link link = new Link(banner, SWT.NONE);
+ link.setText("<a>nicole@mail.org</a>");
+ link.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ MessageDialog.openInformation(getSite().getShell(), "Not Implemented", "Imagine the address book or a new message being created now.");
+ }
+ });
+
+ l = new Label(banner, SWT.WRAP);
+ l.setText("Date:");
+ l.setFont(boldFont);
+ l = new Label(banner, SWT.WRAP);
+ l.setText("10:34 am");
+ // message contents
+ Text text = new Text(top, SWT.MULTI | SWT.WRAP);
+ text.setText("This RCP Application was generated from the PDE Plug-in Project wizard. This sample shows how to:\n"+
+ "- add a top-level menu and toolbar with actions\n"+
+ "- add keybindings to actions\n" +
+ "- create views that can't be closed and\n"+
+ " multiple instances of the same view\n"+
+ "- perspectives with placeholders for new views\n"+
+ "- use the default about dialog\n"+
+ "- create a product definition\n");
+ text.setLayoutData(new GridData(GridData.FILL_BOTH));
+ }
+
+ public void setFocus() {
+ }
+}
View
7 org.eclipse.swt.examples/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
View
28 org.eclipse.swt.examples/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.swt.examples</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
View
85 org.eclipse.swt.examples/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,85 @@
+#Thu Nov 20 22:52:54 IST 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.doc.comment.support=disabled
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=ignore
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.comparingIdentical=ignore
+org.eclipse.jdt.core.compiler.problem.deprecation=ignore
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore
+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=ignore
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=ignore
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=ignore
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=protected
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=ignore
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=protected
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=all_standard_tags
+org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=protected
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=ignore
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
+org.eclipse.jdt.core.compiler.problem.nullReference=ignore
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=ignore
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=ignore
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=ignore
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=disabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=ignore
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=ignore
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=error
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=ignore
+org.eclipse.jdt.core.compiler.problem.unusedLabel=ignore
+org.eclipse.jdt.core.compiler.problem.unusedLocal=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=ignore
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=ignore
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=ignore
+org.eclipse.jdt.core.compiler.source=1.5
View
88 org.eclipse.swt.examples/LICENCE_EPL-1.0
@@ -0,0 +1,88 @@
+Eclipse Public License - v 1.0
+
+THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
+
+1. DEFINITIONS
+
+"Contribution" means:
+
+a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
+b) in the case of each subsequent Contributor:
+
+i) changes to the Program, and
+
+ii) additions to the Program;
+
+where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
+
+"Contributor" means any person or entity that distributes the Program.
+
+"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
+
+"Program" means the Contributions distributed in accordance with this Agreement.
+
+"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
+
+2. GRANT OF RIGHTS
+
+a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
+
+b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
+
+c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
+
+d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
+
+3. REQUIREMENTS
+
+A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
+
+a) it complies with the terms and conditions of this Agreement; and
+
+b) its license agreement:
+
+i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
+
+ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
+
+iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
+
+iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
+
+When the Program is made available in source code form:
+
+a) it must be made available under this Agreement; and
+
+b) a copy of this Agreement must be included with each copy of the Program.
+
+Contributors may not remove or alter any copyright notices contained within the Program.
+
+Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
+
+4. COMMERCIAL DISTRIBUTION
+
+Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
+
+For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
+
+5. NO WARRANTY
+
+EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
+
+6. DISCLAIMER OF LIABILITY
+
+EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+7. GENERAL
+
+If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
+
+If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
+
+All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
+
+Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
+
+This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
+
+
View
25 org.eclipse.swt.examples/META-INF/MANIFEST.MF
@@ -0,0 +1,25 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Eclipse SWT Example plugin (based on Eclipse's SWT Examples) (incubation)
+Bundle-SymbolicName: org.eclipse.swt.examples;singleton:=true
+Bundle-Version: 2.0.0.qualifier
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime
+Bundle-ActivationPolicy: lazy
+Bundle-ClassPath: .
+Export-Package: org.eclipse.swt.examples.addressbook,
+ org.eclipse.swt.examples.browserexample,
+ org.eclipse.swt.examples.clipboard,
+ org.eclipse.swt.examples.controlexample,
+ org.eclipse.swt.examples.dnd,
+ org.eclipse.swt.examples.fileviewer,
+ org.eclipse.swt.examples.graphics,
+ org.eclipse.swt.examples.helloworld,
+ org.eclipse.swt.examples.hoverhelp,
+ org.eclipse.swt.examples.imageanalyzer,
+ org.eclipse.swt.examples.javaviewer,
+ org.eclipse.swt.examples.layoutexample,
+ org.eclipse.swt.examples.paint,
+ org.eclipse.swt.examples.texteditor
+Bundle-Vendor: Eclipse.org, http://eclipse.org/
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
View
2  org.eclipse.swt.examples/build.local.properties
@@ -0,0 +1,2 @@
+project.name = org.eclipse.swt.examples
+target.jar = ${project.name}.jar
View
23 org.eclipse.swt.examples/build.properties
@@ -0,0 +1,23 @@
+###############################################################################
+# Copyright (c) 2008 Ketan Padegaonkar and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Ketan Padegaonkar - initial API and implementation
+###############################################################################
+
+source.. = src/
+bin.includes = META-INF/,\
+ LICENCE_EPL-1.0,\
+ .,\
+ src/
+src.includes = .classpath,\
+ .project,\
+ LICENCE_EPL-1.0,\
+ META-INF/,\
+ build.local.properties,\
+ build.properties,\
+ src/
View
69 org.eclipse.swt.examples/src/examples_addressbook.properties
@@ -0,0 +1,69 @@
+###############################################################################
+# Copyright (c) 2000, 2003 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+Last_name = Last Name
+First_name = First Name
+Business_phone = Business Phone
+Home_phone = Home Phone
+Email = Email
+Fax = Fax
+Close_save = The address book contents have changed.\nDo you want to save the changes?
+New_title = Untitled
+Column = Column:
+Book_extension = .adr
+Book_filter_name = Address Books
+All_filter_name = All Files
+File = File
+Does_not_exist = does not exist.
+File_not_found = File not found:
+IO_error_read = IO error reading text file:
+IO_error_write = IO error writing text file:
+IO_error_close = IO error closing text file:
+Title_bar = Address Book -
+Save_as_title = Save As
+Query_overwrite = already exists.\nDo you want to replace it?
+File_menu_title = &File
+New_contact = &New Contact...\tCtrl+N
+Edit_contact = &Edit Contact...\tCtrl+E
+New_address_book = New Address &Book\tCtrl+B
+Open_address_book = &Open Address Book...\tCtrl+O
+Save_address_book = &Save Address Book\tCtrl+S
+Save_book_as = Save &Address Book As...\tCtrl+A
+Exit = E&xit
+Edit_menu_title = &Edit
+Edit = &Edit...\tCtrl+E
+Copy = &Copy\tCtrl+C
+Paste = &Paste\tCtrl+V
+Delete = De&lete\tDel
+Sort = &Sort
+Search_menu_title = &Search
+Find = &Find...\tCtrl+F
+Find_next = Find &Next...\tF3
+Pop_up_new = &New...
+Pop_up_edit = &Edit...
+Pop_up_copy = &Copy
+Pop_up_paste = &Paste
+Pop_up_delete = &Delete
+Pop_up_find = &Find...
+Help_menu_title = &Help
+About = &About Address Book...
+About_1 = About
+About_2 = \nversion 1.0
+OK = OK
+Cancel = Cancel
+Search_dialog_title = Find
+Dialog_find_what = Fi&nd what:
+Dialog_match_case = Match &case
+Dialog_match_word = Match &whole word
+Dialog_direction = Direction
+Dialog_dir_up = &Up
+Dialog_dir_down = &Down
+Dialog_find = &Find
+Cannot_find = Cannot find
View
20 org.eclipse.swt.examples/src/examples_browser.properties
@@ -0,0 +1,20 @@
+###############################################################################
+# Copyright (c) 2000, 2003 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+error.CouldNotLoadResources = Unable to load resources
+window.title = SWT Browser
+
+Back = Back
+BrowserNotCreated = Error - The Browser widget could not be instantiated. Please check the Browser widget is supported on this platform. Supported platforms and software requirements for the Browser widget are listed on the SWT FAQ web page.
+Forward = Forward
+Stop = Stop
+Refresh = Refresh
+Go = Go
+Startup = http://www.eclipse.org
View
253 org.eclipse.swt.examples/src/examples_control.properties
@@ -0,0 +1,253 @@
+###############################################################################
+# Copyright (c) 2000, 2007 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+error.CouldNotLoadResources = Unable to load resources
+window.title = SWT Controls
+custom.window.title = SWT Custom Controls
+
+Text_Buttons = Text Buttons
+Size = Size
+Alignment = Alignment
+Left = Left
+Right = Right
+Up = Up
+Down = Down
+Center = Center
+One = One
+Two = Two
+Three = Three
+Image_Buttons = Image Buttons
+Image_Text_Buttons = Image and Text Buttons
+Control_Example = Control Example
+Parameters = Parameters
+Other = Other
+Enabled = Enabled
+Visible = Visible
+BackgroundColor = Background Color
+BackgroundImage = Background Image
+PopupMenu = Popup Menu
+Preferred = Preferred
+Styles = Styles
+Menu_Styles = Menu Styles
+MenuItem_Styles = MenuItem Styles
+Background_Mode = Background Mode on Parent
+Listeners = Listeners
+Select_Listeners = Select Listeners
+Listen = Listen
+Clear = Clear
+Set_Get = Set/Get API
+Parameter_Info = {0} e.g. {1}
+Info_int = 4
+Info_intA = 0,1,2
+Info_long = 4
+Info_longA = 0,1,2
+Info_char = c
+Info_charA = a,b,c
+Info_boolean = true
+Info_booleanA = true,true,false
+Info_String = hello
+Info_StringA = hello,there
+Info_Point = 0,0
+Info_TabItem = Tab 0
+Info_TabItemA = Tab 0,Tab 2
+Info_TableItem = Index:2
+Info_TableItemA = Index:2,Index:4
+Info_TreeItem = Node 1
+Info_TreeItemA = Node 1,Node 3
+Select_All = Select All
+Deselect_All = Deselect All
+OK = OK
+FillDamage = Fill Damaged Area With Color
+Title_Text = Title Text
+Text_Labels = Text Labels
+Image_Labels = Image Labels
+Custom_Labels = Custom Labels
+Custom_Combo = Custom Combo
+One_Two_Three = One Two Three
+Text_ToolBar = Text ToolBar
+Image_ToolBar = Image ToolBar
+ImageText_ToolBar = Image and Text ToolBar
+Maximum = Maximum
+Minimum = Minimum
+Selection = Selection
+Increment = Increment
+Page_Increment = Page Increment
+Thumb = Thumb
+Digits = Digits
+Tree_With_Images = Tree With Images
+Dialog_Type = Dialog Type
+Create_Dialog = Create Dialog
+Button_Styles = Button Styles
+Icon_Styles = Icon Styles
+Modal_Styles = Modal Styles
+File_Dialog_Styles = File Dialog Styles
+Item_Styles = Item Styles
+Dialog_Result = Dialog Result
+ColorDialog = ColorDialog
+DirectoryDialog = DirectoryDialog
+FileDialog = FileDialog
+FontDialog = FontDialog
+PrintDialog = PrintDialog
+MessageBox = MessageBox
+Multi_line = A multi line text widget.
+Example_string = The quick brown fox jumps over the lazy dog.
+Header_Visible = Header Visible
+Sort_Indicator = Sort Indicator
+Header_Images = Header Images
+Sub_Images = Sub Images
+Lines_Visible = Lines Visible
+Moveable_Columns = Moveable Columns
+Resizable_Columns = Resizable Columns
+Multiple_Columns = Multiple Columns
+Locked = Locked
+Combo_child = Combo Child
+Node_1 = Node 1
+Node_2 = Node 2
+Node_3 = Node 3
+Node_4 = Node 4
+Node_1_1 = Node 1.1
+Node_2_1 = Node 2.1
+Node_3_1 = Node 3.1
+Node_2_2 = Node 2.2
+Node_2_2_1 = Node 2.2.1
+Parent = Parent
+No_Parent = No Parent
+Decoration_Styles = Decoration Styles
+Create_Shell = Create Shell
+Close_All_Shells = Close All Shells
+Push = Push
+Radio = Radio
+Check = Check
+Cascade = Cascade
+Drop_Down = Drop Down
+Images_failed = Warning: Failed to load images
+readme_txt = readme.txt
+Index = Index:
+Title = Title:
+Close = Close
+Result = Result: {0}
+FilterName_0 = Text Files
+FilterName_1 = Batch Files
+FilterName_2 = Doc Files
+FilterName_3 = All Files
+TableTitle_0 = Name
+TableTitle_1 = Type
+TableTitle_2 = Size
+TableTitle_3 = Modified
+TableLine0_0 = <empty>
+TableLine0_1 = classes
+TableLine0_2 = 0
+TableLine0_3 = today
+TableLine1_0 = <empty>
+TableLine1_1 = databases
+TableLine1_2 = 2556
+TableLine1_3 = tomorrow
+TableLine2_0 = <empty>
+TableLine2_1 = images
+TableLine2_2 = 91571
+TableLine2_3 = yesterday
+ListData0_0 = Line 1
+ListData0_1 = Line 2
+ListData0_2 = Line 3
+ListData0_3 = Line 4
+ListData0_4 = Line 5
+ListData0_5 = Line 6
+ListData0_6 = Line 7
+ListData0_7 = Line 8
+ListData0_8 = Longest Line In List
+ListData1_0 = Apples
+ListData1_1 = Oranges
+ListData1_2 = Bananas
+ListData1_3 = Grapefruit
+ListData1_4 = Peaches
+ListData1_5 = Kiwi
+ListData1_6 = Apricots
+ListData1_7 = Strawberries
+ListData1_8 = The Longest String
+DropDownData_0 = Apples
+DropDownData_1 = Oranges
+DropDownData_2 =
+DropDownData_3 = Grapefruit
+DropDownData_4 = Peaches
+DropDownData_5 = Kiwi
+DropDownData_6 =
+DropDownData_7 = Strawberries
+DropDownData_8 = The Longest String
+Colors = Colors and Font
+Change = &Change...
+Defaults = &Defaults
+Foreground_Color = Foreground Color
+Background_Color = Background Color
+Font = Font
+Item_Foreground_Color = Item 0 Foreground Color
+Item_Background_Color = Item 0 Background Color
+Item_Font = Item 0 Font
+Cell_Foreground_Color = Item 0 Col 1 Foreground Color
+Cell_Background_Color = Item 0 Col 1 Background Color
+Cell_Font = Item 0 Col 1 Font
+Wrap_Text = Jack and Jill went up the hill to fetch a pail of water, \
+ Jack fell down and broke his crown and Jill came tumbling after!
+Foreground_Style = Foreground
+Background_Style = Background
+StyledText_Styles = Text Styles
+StyledText_Style_Instructions = Select text, then style.
+Bold = Bold
+Italic = Italic
+Underline = Underline
+Strikeout = Strikeout
+Fill_X = Horizontal Fill
+Fill_Y = Vertical Fill
+Pack_Columns = Pack Columns
+TabItem1_0 = Tab 0
+TabItem1_1 = Tab 1
+TabItem1_2 = Tab 2
+TabItem_content = TabItem Content
+CTabItem1_0 = CTabItem 0
+CTabItem1_1 = CTabItem 1
+CTabItem1_2 = CTabItem 2 has a long name
+CItem_Colors = CTabItem Colors
+CTabItem_content = CTabItem Content
+Set_Simple_Tabs = Simple Tabs
+Set_Single_Tabs = Single Tab
+Set_Min_Visible = Minimize
+Set_Max_Visible = Maximize
+Set_Unselected_Close_Visible = Close on Unselected Tabs
+Set_Unselected_Image_Visible = Image on Unselected Tabs
+Selection_Foreground_Color = Selection Foreground Color
+Selection_Background_Color = Selection Background Color
+Set_Image = Set Image
+TableTree_column = Column
+MenuItem_Cut = Cu&t Ctrl+X
+MenuItem_Copy = &Copy Ctrl+C
+MenuItem_Paste = &Paste Ctrl+V
+MenuItem_SelectAll = Select &All Ctrl+A
+Orientation = Orientation
+Default = Default (Inherit)
+Images = Images
+Accelerators = Accelerators
+Mnemonics = Mnemonics
+SubMenu = Sub-Menu
+SubSubMenu = Sub-Sub-Menu
+1Radio = Radio1
+2Radio = Radio2
+1RadioWithMnemonic = Radio&1
+2RadioWithMnemonic = Radio&2
+PushWithMnemonic = &Push
+RadioWithMnemonic = &Radio
+CheckWithMnemonic = &Check
+CascadeWithMnemonic = C&ascade
+PopupMenuHere = Popup Menu Here
+LinkText=Visit the <A HREF=\"www.eclipse.org\">Eclipse.org</A> project and the <A HREF=\"www.eclipse.org\\swt">SWT</A> homepage.
+Tooltip = Tooltip: {0}
+Item1_Text = What is your favorite button?
+Item2_Text = What is your favorite icon?
+ToolTip_Title = Foxes vs. Dogs
+No_Icon = No Icon
+Show_In_Tray = Show In Tray
View
69 org.eclipse.swt.examples/src/examples_fileviewer.properties
@@ -0,0 +1,69 @@
+###############################################################################
+# Copyright (c) 2000, 2007 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+Title = SWT FileViewer - {0}
+
+menu.File.text = &File
+menu.File.Close.text = &Close
+menu.File.SimulateOnly.text = Simulate File Operations
+menu.Help.text = &Help
+menu.Help.About.text = &About
+
+tool.Cut.tiptext = Cut
+tool.Copy.tiptext = Copy
+tool.Delete.tiptext = Delete
+tool.Parent.tiptext = Parent
+tool.Paste.tiptext = Paste
+tool.Print.tiptext = Print
+tool.Refresh.tiptext = Refresh
+tool.Rename.tiptext = Rename
+tool.Search.tiptext = Search
+
+details.AllFolders.text = All Folders
+details.ContentsOf.text = Contents of ''{0}''
+details.FileSize.text = {0} bytes
+details.DirNumberOfObjects.text = {0} object(s)
+details.NumberOfSelectedFiles.text = {0} object(s) selected
+
+table.Name.title = Name
+table.Size.title = Size
+table.Type.title = Type
+table.Modified.title = Modified
+
+filetype.Unknown = {0} File
+filetype.None = File
+filetype.Folder = Folder
+filesize.KB = {0} kb
+
+dialog.About.title = About SWT FileViewer
+dialog.About.description = SWT FileViewer\n\nVersion: 0.9\n\nRunning on: {0}
+
+dialog.NotImplemented.title = Not Implemented
+dialog.ActionNotImplemented.description = Sorry! The action you selected has not been implemented.
+
+dialog.FailedCopy.title = Copy Files Error
+dialog.FailedCopy.description = An error occurred while trying to copy "{0}" to "{1}".
+
+dialog.FailedDelete.title = Delete Files Error
+dialog.FailedDelete.description = An error occurred while trying to delete "{0}".
+
+progressDialog.cancelButton.text = Cancel
+progressDialog.Copy.title = Copy Files
+progressDialog.Copy.description = Copying files.
+progressDialog.Copy.operation = Copying... {0}
+progressDialog.Move.title = Move Files
+progressDialog.Move.description = Moving files.
+progressDialog.Delete.operation = Deleting... {0}
+
+simulate.CopyFromTo.text = Simulated copy from "{0}" to "{1}".
+simulate.DirectoriesCreated.text = Simulated directories created for "{0}".
+simulate.Delete.text = Simulated delete of "{0}".
+
+error.FailedLaunch.message = Could not launch "{0}"
View
164 org.eclipse.swt.examples/src/examples_graphics.properties
@@ -0,0 +1,164 @@
+###############################################################################
+# Copyright (c) 2005, 2007 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+AdvancedGraphics=Advanced Graphics
+SWTGraphics=SWT Graphics
+Warning=Warning
+LibNotFound=Advanced graphics library not found. Some examples will not display.
+Settings=Settings
+Play=Play
+Pause=Pause
+Background=Background
+DoubleBuffer=Double Buffer
+White=White
+Black=Black
+Red=Red
+Green=Green
+Blue=Blue
+Cyan=Cyan
+Yellow=Yellow
+CustomColor=Custom Color
+CustomPattern=Custom Pattern
+Pattern1=Pink Losange
+Pattern2=Purple Checkers
+Pattern3=Blue Pentagon
+Animation=Animation
+StarPolygon=Star Polygon
+Line=Line
+BlackHole=Black Hole
+FillRule=Fill Rule:
+Polygons=Polygons
+Introduction=Introduction
+SWT=SWT
+Bounce=Bounce
+Font=Font
+Misc=Misc
+Countdown=Countdown
+LineWidth=Line Width
+Antialiasing=Antialiasing
+LineCap=Line Cap
+Spiral=Spiral
+Petals=Petals
+Gradient=Gradient
+GradImage=Gradient Image
+SwapColors=Swap Colors
+Curves=Curves
+Cubic=Cubic
+Quadratic=Quadratic
+Lines=Lines
+Flat=Flat
+Square=Square
+Round=Round
+LineStyles=Line Styles
+GradientDlgMsg=Please select two colors:
+GradientDlgButton1=Color 1
+GradientDlgButton2=Color 2
+GradientTabItem1=Color 1
+GradientTabItem2=Color 2
+Alpha=Alpha
+CustomFont=Custom Font
+Regular=Regular
+Italic=Italic
+Bold=Bold
+BoldItalic=Bold Italic
+FontFace=Face
+FontStyle=Style
+FontSize=Size
+Color=Color
+Clipping=Clipping
+PathClipping=Path Clipping
+Circles=Circles
+Rectangle=Rectangle
+Oval=Oval
+Word=Word
+Star=Star
+Triangles=Triangles
+Default=Default
+RegionClipping=Region Clipping
+Region1=Region 1
+Region2=Region 2
+Add=Add
+Sub=Subtract
+Inter=Intersect
+Interpolation=Interpolation
+Image=Image
+OriginalImg=Original Image
+House=House
+Question=Question
+Task=Task
+Cube=Cube
+Ovals=Ovals
+None=None
+Low=Low
+Default=Default
+High=High
+Transform=Transform
+Cards=Cards
+Solid=Solid
+Dash=Dash
+Dot=Dot
+DashDot=Dash Dot
+DashDotDot=Dash Dot Dot
+LineJoin=Line Join
+bevel=BEVEL
+miter=MITER
+round=ROUND
+Ball=Ball
+CustomAlpha=Custom Alpha
+Maze=Maze
+rgb=RGB
+Graphics=Graphics
+Flip=Flip
+Rotate=Rotate
+xscale=X-Scale
+yscale=Y-Scale
+Invert=Invert
+Path=Path
+PathOper=Path Operations
+DrawPath=Draw Path
+FillPath=Fill Path
+ClosePath=Close Path
+FillColor=Fill Color
+Text=Text
+Shapes=Shapes
+Next=Next
+Back=Back
+AnimPathClipping=Animated Path Clipping
+##### ------------------ Tab Descriptions ------------------ #####
+AlphaDescription=This tab demonstrates alpha blending. It draws various shapes and images as alpha values change.
+BallDescription=This tab uses alpha blending to simulate \"ghosting\" of a ball in movement.
+BlackHoleDescription=This is a miscellaneous demonstration that makes use of the fillOval() operation to simulate a black hole.
+CardsDescription=This tab demonstrates various transformations, such as scaling, rotation, and translation.
+CountdownDescription=This miscellaneous tab presents a count down from 5 to 1, then displays SWT.
+CurvesSWTDescription=This tab presents cubic and quadratic curves that can be drawn. As a demonstration, cubic and quadratic curves are used to spell out \"SWT\". The user may reposition the cubic and quadratic handles.
+CurvesDescription=This tab presents cubic and quadratic curves that can be drawn. The user may reposition the cubic and quadratic handles
+CustomAlphaDescription=This tab demonstrates the use of alpha blending. It allows a user to specify a custom alpha value.
+CustomFontDescription=This tab demonstrates various text fonts. It allows the user to specify font parameters such as face, style and size.
+FontBounceDescription=This tab is an animated graphic. It presents the word SWT in different fonts as it bounces around the screen.
+GradientImageDescription=This tab is an animated graphic. It presents the word SWT in different fonts as it bounces around the screen.
+AntialiasingGraphicsDesc=This tab demonstrates antialiasing for graphics. Antialiasing is used for smoothing jagged edges in graphics. This tab allows the user to see the effects of different antialiasing values.
+FlipDescription=This tab demonstrates how an image can be flipped in various fashions.
+TransformImgDescription=This tab demonstrates transformations, such as scaling, rotation, and invert. It allows the user to specify values for scaling and rotation.
+ImageInterpolationDesc=This tab shows the effects of applying various interpolation algorithms to images that have been stretched or shrunk.
+IntroductionDescription=This is the introduction tab. This demonstration makes use of a path clipping.
+LineCapDescription=This tab demonstrates various line caps applicable to a line.
+LineJoinDescription=This tab demonstrates various line joins. It allows a user to choose from bevel, miter and round.
+LineStylesDescription=This tab demonstrates line styles applicable to a line. It shows the use of the setLineStyle() method.
+LineDescription=This tab draws two lines.
+MazeDescription=This is a miscellaneous demonstration. Three objects move through the maze, each following a different path. Only one of the three follows the correct path.
+AnimPathClippingDesc=This tab demonstrates the use of path clipping. A clipping is the area onto which a drawing is made visible. The default clipping is the entire canvas (all the space in the right panel). However, one can set the clipping to be something different. In this tab, the clipping is the set of triangles, rectangles and the circle. When the blue rectangle is drawn, only the portions of the blue rectangle appearing in the clipping are visible.