Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

AWS Toolkit for Eclipse 2.2

  • Loading branch information...
commit 7641a135dbb0571e40aff32f81e11dbf34366431 1 parent 759bc51
Jason Fulghum fulghum authored
Showing with 12,082 additions and 687 deletions.
  1. +11 −0 com.amazonaws.eclipse.android.releng/.project
  2. +68 −0 com.amazonaws.eclipse.android.releng/build.properties
  3. +82 −0 com.amazonaws.eclipse.android.releng/build.xml
  4. +25 −0 com.amazonaws.eclipse.android.releng/examples/build.properties.example.fedora_linux
  5. +27 −0 com.amazonaws.eclipse.android.releng/examples/build.properties.example.hudson_on_build.eclipse.org
  6. +25 −0 com.amazonaws.eclipse.android.releng/examples/build.properties.example.macosx10.5
  7. +34 −0 com.amazonaws.eclipse.android.releng/examples/build.properties.example.winxp
  8. +94 −0 com.amazonaws.eclipse.android.releng/examples/build.properties.more.options
  9. +149 −0 com.amazonaws.eclipse.android.releng/examples/buildExtra.xml
  10. +22 −0 com.amazonaws.eclipse.android.releng/examples/com.amazonaws.eclipse.datatools.releng-build.xml.launch
  11. +47 −0 com.amazonaws.eclipse.android.releng/lib/LICENSE.txt
  12. BIN  com.amazonaws.eclipse.android.releng/lib/ant-contrib.jar
  13. +6 −0 com.amazonaws.eclipse.android.releng/maps/aws-java-sdk.map
  14. +17 −0 com.amazonaws.eclipse.android.sdk.feature/.project
  15. +1 −0  com.amazonaws.eclipse.android.sdk.feature/build.properties
  16. +59 −23 com.amazonaws.eclipse.sdk/LICENSE.txt → com.amazonaws.eclipse.android.sdk.feature/feature.xml
  17. +9 −0 com.amazonaws.eclipse.android.sdk/.classpath
  18. +28 −28 {com.amazonaws.eclipse.sdk → com.amazonaws.eclipse.android.sdk}/.project
  19. +8 −0 com.amazonaws.eclipse.android.sdk/.settings/org.eclipse.jdt.core.prefs
  20. +24 −0 com.amazonaws.eclipse.android.sdk/META-INF/MANIFEST.MF
  21. +8 −0 com.amazonaws.eclipse.android.sdk/build.properties
  22. BIN  com.amazonaws.eclipse.android.sdk/icons/aws-box.gif
  23. BIN  com.amazonaws.eclipse.android.sdk/lib/sdklib.jar
  24. BIN  com.amazonaws.eclipse.android.sdk/lib/sdkuilib.jar
  25. +51 −0 com.amazonaws.eclipse.android.sdk/plugin.xml
  26. +180 −0 com.amazonaws.eclipse.android.sdk/resources/S3_Uploader/README.html
  27. +83 −0 com.amazonaws.eclipse.android.sdk/resources/S3_Uploader/build.xml
  28. +36 −0 com.amazonaws.eclipse.android.sdk/resources/S3_Uploader/res/layout/main.xml
  29. +13 −0 com.amazonaws.eclipse.android.sdk/resources/S3_Uploader/res/values/strings.xml
  30. +39 −0 com.amazonaws.eclipse.android.sdk/resources/S3_Uploader/src/Constants.java
  31. +265 −0 com.amazonaws.eclipse.android.sdk/resources/S3_Uploader/src/S3UploaderActivity.java
  32. +15 −0 com.amazonaws.eclipse.android.sdk/resources/proguard-project.txt
  33. +67 −0 com.amazonaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/AndroidSDKPlugin.java
  34. +122 −0 com.amazonaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/AndroidSdkInstall.java
  35. +67 −0 com.amazonaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/AndroidSdkManager.java
  36. +157 −0 ...onaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/classpath/AndroidSdkClasspathContainer.java
  37. +109 −0 ...se.android.sdk/src/com/amazonaws/eclipse/android/sdk/classpath/AndroidSdkClasspathContainerInitializer.java
  38. +53 −0 ...zonaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/classpath/AwsAndroidSdkClasspathUtils.java
  39. +165 −0 com.amazonaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/newproject/AndroidManifestFile.java
  40. +300 −0 ...mazonaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/newproject/AndroidProjectWizardPage.java
  41. +58 −0 ...zonaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/newproject/NewAndroidProjectDataModel.java
  42. +194 −0 ...amazonaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/newproject/NewAndroidProjectWizard.java
  43. +33 −0 ...azonaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/preferences/AndroidSDKPreferencePage.java
  44. +27 −0 com.amazonaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/preferences/PreferenceConstants.java
  45. +23 −0 com.amazonaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/preferences/PreferenceInitializer.java
  46. +17 −0 com.amazonaws.eclipse.cloudformation.feature/.project
  47. +1 −0  com.amazonaws.eclipse.cloudformation.feature/build.properties
  48. +223 −0 com.amazonaws.eclipse.cloudformation.feature/feature.xml
  49. +2 −1  {com.amazonaws.eclipse.sdk → com.amazonaws.eclipse.cloudformation}/.classpath
  50. +28 −0 com.amazonaws.eclipse.cloudformation/.project
  51. +25 −0 com.amazonaws.eclipse.cloudformation/META-INF/MANIFEST.MF
  52. +6 −0 com.amazonaws.eclipse.cloudformation/build.properties
  53. BIN  com.amazonaws.eclipse.cloudformation/icons/aws-box.gif
  54. BIN  com.amazonaws.eclipse.cloudformation/icons/stack.png
  55. +88 −0 com.amazonaws.eclipse.cloudformation/plugin.xml
  56. +59 −0 com.amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/CloudFormationPlugin.java
  57. +63 −0 com.amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/TemplateArrayNode.java
  58. +31 −0 com.amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/TemplateFieldNode.java
  59. +80 −0 com.amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/TemplateNode.java
  60. +55 −0 ...amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/TemplateObjectNode.java
  61. +34 −0 com.amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/TemplateValueNode.java
  62. +107 −0 ...se.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/editor/AbstractCompletionProposal.java
  63. +56 −0 ....eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/editor/CFCompletionProposal.java
  64. +146 −0 ...azonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/editor/DocumentUtils.java
  65. +191 −0 ...ipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/editor/TemplateAutoEditStrategy.java
  66. +389 −0 ...loudformation/src/com/amazonaws/eclipse/cloudformation/templates/editor/TemplateContentAssistProcessor.java
  67. +254 −0 ...se.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/editor/TemplateContentOutlinePage.java
  68. +163 −0 ...zonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/editor/TemplateEditor.java
  69. +214 −0 ...e.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/editor/TemplateReconcilingStrategy.java
  70. +146 −0 ...onaws.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/editor/TemplateScanner.java
  71. +180 −0 ...dformation/src/com/amazonaws/eclipse/cloudformation/templates/editor/TemplateSourceViewerConfiguration.java
  72. +43 −0 ...aws.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/schema/IntrinsicFunction.java
  73. +43 −0 ...onaws.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/schema/PseudoParameter.java
  74. +54 −0 com.amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/schema/Schema.java
  75. +114 −0 ...zonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/schema/SchemaProperty.java
  76. +78 −0 com.amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/schema/Section.java
  77. +181 −0 ...s.eclipse.cloudformation/src/com/amazonaws/eclipse/cloudformation/templates/schema/TemplateSchemaRules.java
  78. +93 −0 ...eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/CloudFormationContentProvider.java
  79. +237 −0 ....cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/CloudFormationExplorerActionProvider.java
  80. +35 −0 ...s.eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/CloudFormationLabelProvider.java
  81. +27 −0 com.amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/CreateStackAction.java
  82. +43 −0 ...mazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/FormatTemplateAction.java
  83. +33 −0 com.amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/JsonFormatter.java
  84. +59 −0 ...azonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/OpenStackEditorAction.java
  85. +300 −0 com.amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/StackEditor.java
  86. +46 −0 com.amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/StackEditorInput.java
  87. +196 −0 com.amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/StackEventsTable.java
  88. +147 −0 com.amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/StackOutputsTable.java
  89. +139 −0 ...mazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/StackParametersTable.java
  90. +221 −0 ...amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/StackResourcesTable.java
  91. +48 −0 ...mazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/TemplateEditorAction.java
  92. +25 −0 com.amazonaws.eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/UpdateStackAction.java
  93. +209 −0 ...naws.eclipse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/wizard/CreateStackWizard.java
  94. +176 −0 ...pse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/wizard/CreateStackWizardDataModel.java
  95. +756 −0 ...pse.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/wizard/CreateStackWizardFirstPage.java
  96. +395 −0 ...se.cloudformation/src/com/amazonaws/eclipse/explorer/cloudformation/wizard/CreateStackWizardSecondPage.java
  97. +1 −1  com.amazonaws.eclipse.core.feature/feature.xml
  98. +1 −1  com.amazonaws.eclipse.core.tests/src/com/amazonaws/eclipse/core/preferences/PreferenceInitializerTest.java
  99. +3 −2 com.amazonaws.eclipse.core/.classpath
  100. +12 −0 com.amazonaws.eclipse.core/.settings/org.eclipse.jdt.core.prefs
  101. +35 −5 com.amazonaws.eclipse.core/META-INF/MANIFEST.MF
  102. +5 −3 com.amazonaws.eclipse.core/build.properties
  103. +50 −29 com.amazonaws.eclipse.core/etc/regions.xml
  104. BIN  com.amazonaws.eclipse.core/icons/distribution-streaming.gif
  105. BIN  com.amazonaws.eclipse.core/icons/distribution.gif
  106. BIN  com.amazonaws.eclipse.core/icons/export.gif
  107. BIN  com.amazonaws.eclipse.core/icons/green-circle.png
  108. BIN  com.amazonaws.eclipse.core/icons/grey-circle.png
  109. BIN  com.amazonaws.eclipse.core/icons/group.png
  110. BIN  com.amazonaws.eclipse.core/icons/iam.png
  111. BIN  com.amazonaws.eclipse.core/icons/key.png
  112. BIN  com.amazonaws.eclipse.core/icons/red-circle.png
  113. BIN  com.amazonaws.eclipse.core/icons/role.png
  114. BIN  com.amazonaws.eclipse.core/icons/user.png
  115. BIN  com.amazonaws.eclipse.core/lib/aws-java-sdk-1.2.1.jar
  116. BIN  com.amazonaws.eclipse.core/lib/aws-java-sdk-1.4.0.jar
  117. BIN  com.amazonaws.eclipse.core/lib/jackson-core-asl-1.4.3.jar
  118. BIN  com.amazonaws.eclipse.core/lib/jackson-core-asl-1.8.7.jar
  119. BIN  com.amazonaws.eclipse.core/lib/jackson-mapper-asl-1.8.7.jar
  120. +56 −0 com.amazonaws.eclipse.core/plugin.xml
  121. +100 −12 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/AWSClientFactory.java
  122. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/AccountInfo.java
  123. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/AccountInfoChangeListener.java
  124. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/AccountInfoMonitor.java
  125. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/AwsClientUtils.java
  126. +48 −30 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/AwsToolkitCore.java
  127. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/AwsUrls.java
  128. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/BrowserUtils.java
  129. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/PluginPreferenceStoreAccountInfo.java
  130. +1 −1  ...azonaws.eclipse.core/src/com/amazonaws/eclipse/core/preferences/AccountPreferenceChangeRefreshListener.java
  131. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/preferences/PreferenceChangeRefreshListener.java
  132. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/preferences/PreferenceConstants.java
  133. +88 −88 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/preferences/PreferenceInitializer.java
  134. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/regions/DefaultRegionChangeRefreshListener.java
  135. +62 −6 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/regions/Region.java
  136. +10 −6 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/regions/RegionMetadataParser.java
  137. +274 −29 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/regions/RegionUtils.java
  138. +16 −13 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/regions/ServiceAbbreviations.java
  139. +2 −2 ...itor → com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui}/AbstractTableContentProvider.java
  140. +2 −2 ...editor → com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui}/AbstractTableLabelProvider.java
  141. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/AccountSelectionComposite.java
  142. +59 −34 ...beanstalk/server → com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core}/ui/CancelableThread.java
  143. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/DisplayAwsOverviewEditorCmdHandler.java
  144. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/IRefreshable.java
  145. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/ManagementPerspectiveFactory.java
  146. +38 −27 .../ui/editor → com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui}/MultiValueEditorDialog.java
  147. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/PreferenceLinkListener.java
  148. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/Startup.java
  149. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/WebLinkListener.java
  150. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/menu/OpenPreferencesHandler.java
  151. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/menu/OpenWebConsoleHandler.java
  152. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/overview/FormsOverviewComposite.java
  153. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/overview/GettingStartedSection.java
  154. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/overview/GradientBoxComposite.java
  155. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/overview/HeaderComposite.java
  156. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/overview/HyperlinkHandler.java
  157. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/overview/LayoutUtils.java
  158. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/overview/OverviewEditor.java
  159. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/overview/OverviewResources.java
  160. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/overview/OverviewSection.java
  161. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/overview/Toolkit.java
  162. +8 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/preferences/AwsAccountPreferencePage.java
  163. +1 −4 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/preferences/AwsToolkitPreferencePage.java
  164. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/preferences/ObfuscatingStringFieldEditor.java
  165. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/preferences/RegionsPreferencePage.java
  166. +2 −2 ...lk/server/ui → com.amazonaws.eclipse.core/src/com/amazonaws/eclipse}/databinding/BooleanValidator.java
  167. +7 −3 ...talk/server/ui → com.amazonaws.eclipse.core/src/com/amazonaws/eclipse}/databinding/ChainValidator.java
  168. +2 −2 ...r/ui → com.amazonaws.eclipse.core/src/com/amazonaws/eclipse}/databinding/DecorationChangeListener.java
  169. +3 −3 ...k/server/ui → com.amazonaws.eclipse.core/src/com/amazonaws/eclipse}/databinding/NotEmptyValidator.java
  170. +2 −2 .../server/ui → com.amazonaws.eclipse.core/src/com/amazonaws/eclipse}/databinding/NotInListValidator.java
  171. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/AWSResourcesRootElement.java
  172. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/AbstractAwsResourceEditorInput.java
  173. +24 −13 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/AbstractContentProvider.java
  174. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/ContentProviderRegistry.java
  175. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/DragAdapterAssistant.java
  176. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/ExplorerNode.java
  177. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/ExplorerNodeLabelProvider.java
  178. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/Loading.java
  179. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/RefreshRunnable.java
  180. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/ResourcesView.java
  181. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/S3FileSystemDropAction.java
  182. +14 −26 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/actions/ConfigurationActionProvider.java
  183. +294 −0 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/cloudfront/AbstractDistributionEditor.java
  184. +65 −0 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/cloudfront/AbstractOpenAwsEditorAction.java
  185. +166 −0 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/cloudfront/CloudFrontActions.java
  186. +125 −0 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/cloudfront/CloudFrontContentProvider.java
  187. +37 −0 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/cloudfront/CloudFrontLabelProvider.java
  188. +66 −0 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/cloudfront/DistributionDecorator.java
  189. +112 −0 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/cloudfront/DistributionEditor.java
  190. +51 −0 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/cloudfront/DistributionEditorInput.java
  191. +36 −0 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/cloudfront/OpenDistributionEditorAction.java
  192. +36 −0 ...onaws.eclipse.core/src/com/amazonaws/eclipse/explorer/cloudfront/OpenStreamingDistributionEditorAction.java
  193. +106 −0 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/cloudfront/ResourceEditorDataLoaderThread.java
  194. +104 −0 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/cloudfront/StreamingDistributionEditor.java
  195. +50 −0 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/cloudfront/StreamingDistributionEditorInput.java
  196. +4 −3 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/BucketEditor.java
  197. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/BucketEditorInput.java
  198. +3 −6 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/OpenBucketEditorAction.java
  199. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/S3ContentProvider.java
  200. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/S3LabelProvider.java
  201. +29 −9 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/S3ObjectSummaryTable.java
  202. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/S3RootElement.java
  203. +3 −3 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/acls/EditBucketPermissionsDialog.java
  204. +4 −3 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/acls/EditObjectPermissionsDialog.java
  205. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/acls/EditPermissionsDialog.java
  206. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/acls/GranteeComparator.java
  207. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/actions/CreateBucketAction.java
  208. +19 −4 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/actions/CreateBucketWizard.java
  209. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/actions/CreateBucketWizardPage.java
  210. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/actions/DeleteBucketAction.java
  211. +3 −3 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/actions/DeleteObjectAction.java
  212. +3 −5 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/actions/EditObjectPermissionsAction.java
  213. +179 −0 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/actions/GeneratePresignedUrlAction.java
  214. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/actions/S3ActionProvider.java
  215. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/dnd/DownloadDropAssistant.java
  216. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/dnd/KeySelectionDialog.java
  217. +2 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/dnd/S3ObjectSummaryDropAction.java
  218. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/dnd/UploadDropAssistant.java
  219. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/dnd/UploadFileJob.java
  220. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/s3/util/ObjectUtils.java
  221. +77 −0 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sns/CreateTopicDialog.java
  222. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sns/NewSubscriptionAction.java
  223. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sns/OpenTopicEditorAction.java
  224. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sns/PublishMessageAction.java
  225. +1 −57 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sns/SNSActionProvider.java
  226. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sns/SNSContentProvider.java
  227. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sns/SNSLabelProvider.java
  228. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sns/TopicEditor.java
  229. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sns/TopicEditorInput.java
  230. +76 −5 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sqs/AddMessageAction.java
  231. +2 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sqs/OpenQueueEditorAction.java
  232. +7 −4 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sqs/QueueAttributes.java
  233. +14 −2 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sqs/QueueEditor.java
  234. +2 −4 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sqs/QueueEditorInput.java
  235. +38 −4 com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sqs/SQSActionProvider.java
  236. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sqs/SQSContentProvider.java
  237. +1 −1  com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/explorer/sqs/SQSLabelProvider.java
  238. +1 −1  ...nablement.simpledb.editor.test/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/AllTests.java
  239. +1 −1  ...ment.simpledb.editor.test/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/ColumnForMock.java
  240. +1 −1  ...blement.simpledb.editor.test/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/EditorTest.java
  241. +1 −1  ...impledb.editor.test/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/SDBDataAccessorTest.java
  242. +1 −1  ...ement.simpledb.editor.test/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/TableForMock.java
  243. +1 −1  ...enablement.simpledb.editor.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/Activator.java
  244. +1 −1  ....enablement.simpledb.editor.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/Messages.java
  245. +1 −1  ...lement.simpledb.editor.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/SDBTextEditor.java
  246. +1 −1  ...simpledb.editor.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/SimpleDBDataAccessor.java
  247. +1 −1  ...mpledb.editor.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/SimpleDBIDDataAccessor.java
  248. +1 −1  ...edb.editor.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/wizard/SDBTableDataWizard.java
  249. +1 −1  ...editor.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/wizard/SDBTableDataWizardPage.java
  250. +1 −1  ...b.editor.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/wizard/SDBTableIdDataWizard.java
  251. +1 −1  ...itor.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/wizard/SDBTableIdDataWizardPage.java
  252. +1 −1  ...blement.simpledb.editor.ui/src/org/eclipse/datatools/sqltools/data/internal/ui/editor/ITableDataEditor.java
  253. +1 −1  ...se.datatools.enablement.simpledb.test/src/com/amazonaws/eclipse/datatools/enablement/simpledb/AllTests.java
  254. +1 −1  ...impledb.test/src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/driver/JdbcStatementTest.java
  255. +1 −1  ...ls.enablement.simpledb.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/ui/Messages.java
  256. +1 −1  ...impledb.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/ui/SimpleDBOverviewSection.java
  257. +1 −1  ...zonaws/eclipse/datatools/enablement/simpledb/internal/ui/connection/NewSimpleDBConnectionProfileWizard.java
  258. +1 −1  ...mazonaws/eclipse/datatools/enablement/simpledb/internal/ui/connection/SimpleDBProfileDetailsWizardPage.java
  259. +1 −1  ...com/amazonaws/eclipse/datatools/enablement/simpledb/internal/ui/connection/SimpleDBProfilePropertyPage.java
  260. +1 −1  ...onaws/eclipse/datatools/enablement/simpledb/internal/ui/connection/drivers/SimpleDBDriverUIContributor.java
  261. +1 −1  .../eclipse/datatools/enablement/simpledb/internal/ui/connection/drivers/SimpleDBOtherDriverUIContributor.java
  262. +1 −1  .../amazonaws/eclipse/datatools/enablement/simpledb/internal/ui/explorer/SimpleDBContentProviderExtension.java
  263. +1 −1  ...om/amazonaws/eclipse/datatools/enablement/simpledb/internal/ui/explorer/SimpleDBLabelProviderExtension.java
  264. +1 −1  .../src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/ui/menu/NewSimpleDBConnectionHandler.java
  265. +1 −1  ...b.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/ui/menu/OpenSyntaxHelpUrlHandler.java
  266. +1 −1  ...nt.simpledb.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/ui/menu/OpenUrlHandler.java
  267. +1 −1  ...lement.simpledb.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/ui/editor/DomainEditorInput.java
  268. +36 −0 ...b.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/ui/editor/MultiValueAttributeEditorDialog.java
  269. +1 −1  ...nt.simpledb.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/ui/editor/OpenQueryEditorAction.java
  270. +111 −16 ...s.enablement.simpledb.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/ui/editor/QueryEditor.java
  271. +2 −2 ....enablement.simpledb.ui/src/com/amazonaws/eclipse/datatools/enablement/simpledb/ui/editor/SimpleDBItem.java
  272. +15 −1 ...datatools.enablement.simpledb.ui/src/com/amazonaws/eclipse/explorer/simpledb/OpenDataTableEditorAction.java
  273. +2 −2 ...se.datatools.enablement.simpledb.ui/src/com/amazonaws/eclipse/explorer/simpledb/OpenSQLScrapbookAction.java
  274. +2 −2 ...ls.enablement.simpledb.ui/src/com/amazonaws/eclipse/explorer/simpledb/SimpleDBConnectionProfileManager.java
  275. +1 −1  ...e.datatools.enablement.simpledb.ui/src/com/amazonaws/eclipse/explorer/simpledb/SimpleDBContentProvider.java
  276. +1 −1  ...pse.datatools.enablement.simpledb.ui/src/com/amazonaws/eclipse/explorer/simpledb/SimpleDBExplorerNodes.java
  277. +1 −1  ...pse.datatools.enablement.simpledb.ui/src/com/amazonaws/eclipse/explorer/simpledb/SimpleDBLabelProvider.java
  278. +70 −3 ...ols.enablement.simpledb.ui/src/com/amazonaws/eclipse/explorer/simpledb/SimpleDBNavigatorActionProvider.java
  279. +1 −1  ...lipse.datatools.enablement.simpledb.ui/src/com/amazonaws/eclipse/explorer/simpledb/SimpleDBRootElement.java
  280. +8 −7 com.amazonaws.eclipse.datatools.enablement.simpledb/.classpath
  281. +1 −1  ...clipse.datatools.enablement.simpledb/src/com/amazonaws/eclipse/datatools/enablement/simpledb/Activator.java
  282. +1 −1  ...src/com/amazonaws/eclipse/datatools/enablement/simpledb/connection/ISimpleDBConnectionProfileConstants.java
  283. +1 −1  ...nt.simpledb/src/com/amazonaws/eclipse/datatools/enablement/simpledb/connection/SimpleDBConnectionUtils.java
  284. +1 −1  ...ools.enablement.simpledb/src/com/amazonaws/eclipse/datatools/enablement/simpledb/driver/JdbcConnection.java
  285. +1 −1  ...atatools.enablement.simpledb/src/com/amazonaws/eclipse/datatools/enablement/simpledb/driver/JdbcDriver.java
  286. +1 −1  ...ls.enablement.simpledb/src/com/amazonaws/eclipse/datatools/enablement/simpledb/driver/SimpleDBItemName.java
  287. +1 −1  ...impledb/src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/connection/SimpleDBConnection.java
  288. +1 −1  .../src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/connection/SimpleDBConnectionFactory.java
  289. +1 −1  ...src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/connection/SimpleDBDatabaseRecognizer.java
  290. +1 −1  .../amazonaws/eclipse/datatools/enablement/simpledb/internal/connection/SimpleDBPropertiesPersistenceHook.java
  291. +1 −1  ....simpledb/src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/driver/JdbcDatabaseMetaData.java
  292. +1 −1  ...simpledb/src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/driver/JdbcPreparedStatement.java
  293. +1 −1  ...blement.simpledb/src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/driver/JdbcResultSet.java
  294. +1 −1  ...blement.simpledb/src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/driver/JdbcStatement.java
  295. +1 −1  ...mpledb/src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/driver/ListAttributesStatement.java
  296. +1 −1  ....simpledb/src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/driver/ListDomainsStatement.java
  297. +1 −1  ...b/src/com/amazonaws/eclipse/datatools/enablement/simpledb/internal/driver/SimpleDBDriverValuesProvider.java
  298. +1 −1  ...ipse.datatools.sqltools.db.simpledb/src/com/amazonaws/eclipse/datatools/sqltools/db/simpledb/Activator.java
  299. +1 −1  ...lipse.datatools.sqltools.db.simpledb/src/com/amazonaws/eclipse/datatools/sqltools/db/simpledb/Messages.java
  300. +1 −1  ...ls.sqltools.db.simpledb/src/com/amazonaws/eclipse/datatools/sqltools/db/simpledb/SimpleDBConfiguration.java
Sorry, we could not display the entire diff because too many files (591) changed.
11 com.amazonaws.eclipse.android.releng/.project
View
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>com.amazonaws.eclipse.android.releng</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
68 com.amazonaws.eclipse.android.releng/build.properties
View
@@ -0,0 +1,68 @@
+## BEGIN PROJECT BUILD PROPERTIES ##
+
+# This is the master build.properties file for all of the
+# AWS Toolkit for Eclipse code.
+#
+# See also org.eclipse.dash.common.releng/build.properties for more
+# overrideable defaults, or the examles subdir.
+
+# To permit automatic downloads of non-EPL compatible code,
+# set this to property to "I accept"
+thirdPartyDownloadLicenseAcceptance="I accept"
+
+projectid=com.amazonaws.eclipse.android.sdk
+zipPrefix=aws-toolkit-androidsdk
+incubation=
+version=1.0.0
+buildType=N
+
+mainFeatureToBuildID=com.amazonaws.eclipse.android.sdk.feature
+
+# Java home must be set according to the platform on which you're
+# compiling.
+JAVA50_HOME=${JAVA_HOME}
+JAVA14_HOME=${JAVA_HOME}
+
+
+# The localSourceCheckoutDir property allows you to override
+# the source pulled from your repository and instead run the
+# build using only local source. Just point localSourceCheckoutDir
+# to the root of a workspace where you have *all* of the plugins
+# and features checked out. Note that you can't just selectively
+# override one of the plugins/features and pull the rest from your
+# repository.
+#
+# TODO: The only tricky part is that our EC2 feature doesn't have the
+# ".feature" suffix in the feature ID like the tools look for,
+# so we need to symlink it to:
+# features/com.amazonaws.eclipse.ec2
+# in your local workspace in order for the build scripts to
+# correctly pick it up.
+
+# dependencyURLs controls what extra dependencies are required for
+# our Eclipse plugin build. If these aren't found locally, they
+# will be downloaded and cached.
+#
+#dependencyURLs=
+
+
+# We also need to tell the build scripts where to find the Eclipse distribution
+# to use during the build (to launch Eclipse in headless mode to run the build as
+# well as pick up prebuilt plugins to satisfy our dependencies). Right now we're
+# pulling from CloudFront because it's fast, but obviously this could come from
+# anywhere. The platform distribution shouldn't make a huge difference but might
+# need to be changed for different platforms.
+#
+eclipse.SDK.url=http://d2u376ub0heus3.cloudfront.net/galileo/eclipse-SDK-3.5-macosx-cocoa.tar.gz
+eclipse.SDK.file=eclipse-SDK-3.5-macosx-cocoa.tar.gz
+
+
+# for win xp
+skipPack=true
+
+#what steps should we do? default: build.steps=buildUpdate,buildZips,buildTests,generateDigests,test,publish,cleanup
+build.steps=buildUpdate,buildZips,generateDigests,publish,cleanup
+
+compilerArg=-encoding ISO-8859-1
+
+## END PROJECT BUILD PROPERTIES ##
82 com.amazonaws.eclipse.android.releng/build.xml
View
@@ -0,0 +1,82 @@
+<project default="run">
+ <target name="run">
+ <!--
+ 1. You must check out the following projects to your workspace:
+
+ org.eclipse.releng.basebuilder
+ org.eclipse.dash.common.releng
+ org.eclipse.myproject.releng
+
+ 2. You must provide Ant-Contrib in one of four places:
+
+ org.eclipse.dash.common.releng/lib/ant-contrib.jar
+ org.eclipse.myproject.releng/lib/ant-contrib.jar
+ ${thirdPartyJarsDir}/ant-contrib.jar (path can be customized below)
+ /usr/share/java/ant-contrib.jar (may require a symlink)
+
+ You can install Ant-Contrib 1.0b2 via RPM, or download it here:
+
+ http://downloads.sourceforge.net/ant-contrib/ant-contrib-1.0b2-bin.zip
+
+ 3. If your project's sources are in SVN, you must unpack this zip into the basebuilder project's plugins/ folder:
+
+ http://downloads.sourceforge.net/svn-pde-build/org.eclipse.pde.build.svn-1.0.1RC2.zip
+
+ 4. To run automated JUnit tests headlessly, you will require Xvfb or Xvnc; without this,
+ UI tests will be launched into your current OS session (ie., on view port :0) and you may
+ inadvertently interact with them. (Non-UI tests can be run without fear of accidental
+ interaction and do not have this requirement.)
+
+ 5. You must also ensure that the path specified for Java, and the version of Eclipse stated in build.properties
+ are correct for your machine. Edit these properties to suit your needs. Note that JAVA*_HOME variables are for
+ convenience, set in common.releng/server.properties. You can override them in your build.properties, or define
+ different defaults in server.properties, if you intend to run more than one build on this server.
+
+ dependencyURLs=http://download.eclipse.org/eclipse/downloads/drops/S-3.5M5-200902021535/eclipse-SDK-3.5M5-linux-gtk.tar.gz
+ JAVA_HOME=${JAVA14_HOME}
+ -->
+
+ <!-- load properties and set timestamp for the build -->
+ <property file="build.properties" />
+ <tstamp>
+ <format property="buildTimestamp" pattern="yyyyMMddHHmm" />
+ </tstamp>
+
+ <!-- We want our version qualifiers to be substituted with v<timestamp>
+ but for some reason, that only seems to work when we build from
+ local source. Explicitly setting the qualifier to v<timestamp>
+ ensures that our qualifiers will use the right form whether we're
+ fetching external source, or building from local source. -->
+ <property name="forceContextQualifier" value="v${buildTimestamp}" />
+
+ <!--
+ to build from HEAD, uncomment these lines
+ <property name="forceContextQualifier" value="v${buildTimestamp}" />
+ <property name="fetchTag" value="HEAD" />
+ -->
+
+ <!-- calculate workspaceDir as parent of this folder, the project's .releng folder (relengBuilderDir) -->
+ <property name="relengBuilderDir" value="${basedir}" />
+ <dirname file="${relengBuilderDir}" property="workspaceDir" />
+ <property name="localSourceCheckoutDir" value="${workspaceDir}" />
+
+
+ <!--
+ can build in /tmp, eg., in /tmp/build, or in workspace, eg.,
+ ${relengBuilderDir}/build
+ -->
+ <property name="writableBuildRoot" value="${workspaceDir}/../generated-eclipse" />
+
+ <!--
+ can be simple path, eg.,
+ ${writableBuildRoot}/${buildType}${buildTimestamp} or longer, eg.,
+ ${writableBuildRoot}/${topprojectName}/${projectName}/downloads/drops/${version}/${buildType}${buildTimestamp} or
+ ${writableBuildRoot}/${topprojectName}/${projectName}/${subprojectName}/downloads/drops/${version}/${buildType}${buildTimestamp}
+ -->
+ <property name="buildDir" value="${writableBuildRoot}/buildArtifacts" />
+
+ <!-- invoke a new Eclipse process and launch the build from the common.releng folder -->
+ <property name="relengCommonBuilderDir" value="${workspaceDir}/org.eclipse.dash.common.releng" />
+ <ant antfile="${relengCommonBuilderDir}/buildAll.xml" target="runEclipse" dir="${relengCommonBuilderDir}" />
+ </target>
+</project>
25 com.amazonaws.eclipse.android.releng/examples/build.properties.example.fedora_linux
View
@@ -0,0 +1,25 @@
+## BEGIN PROJECT BUILD PROPERTIES ##
+
+#thirdPartyDownloadLicenseAcceptance="I accept"
+
+projectid=tools.gef
+zipPrefix=GEF
+incubation=
+version=3.5.0
+buildType=N
+mainFeatureToBuildID=org.eclipse.gef.all
+testFeatureToBuildID=org.eclipse.gef.test
+
+build.steps=buildUpdate,buildZips,buildTests,generateDigests,test,publish,cleanup
+
+localSourceCheckoutDir=/home/nboldt/eclipse/workspace-eclipse/org.eclipse.gef.tree
+localSourceCheckoutDirExcludes=**/archive/**
+
+dependencyURLs=http://download.eclipse.org/eclipse/downloads/drops/S-3.5M7-200904302300/eclipse-SDK-3.5M7-linux-gtk.tar.gz
+
+compilerArg=-enableJavadoc -encoding ISO-8859-1
+
+JAVA_HOME=/usr/lib/jvm/java
+JAVA50_HOME=/usr/lib/jvm/java
+
+## END PROJECT BUILD PROPERTIES ##
27 com.amazonaws.eclipse.android.releng/examples/build.properties.example.hudson_on_build.eclipse.org
View
@@ -0,0 +1,27 @@
+## BEGIN PROJECT BUILD PROPERTIES ##
+
+# default settings for all this project's builds, for this branch; see also o.e.d.common.releng/build.properties for more overrideable defaults
+
+# To permit automatic downloads of non-EPL compatible code, set this to property to "I accept"
+#thirdPartyDownloadLicenseAcceptance="I accept"
+
+# MUST BE SET #
+projectid=tools.gef
+zipPrefix=GEF
+incubation=
+version=3.5.0
+buildType=N
+mainFeatureToBuildID=org.eclipse.gef.all
+testFeatureToBuildID=org.eclipse.gef.test
+
+# MUST BE SET #
+JAVA_HOME=/opt/public/common/ibm-java2-ppc-50
+JAVA50_HOME=/opt/public/common/ibm-java2-ppc-50
+dependencyURLs=http://download.eclipse.org/eclipse/downloads/drops/S-3.5M6-200903130100/eclipse-SDK-3.5M6-linux-gtk-ppc.tar.gz
+
+#what steps should we do? default: build.steps=buildUpdate,buildZips,buildTests,generateDigests,test,publish,cleanup
+build.steps=buildUpdate,buildZips,buildTests,generateDigests,test,publish,cleanup
+
+compilerArg=-enableJavadoc -encoding ISO-8859-1
+
+## END PROJECT BUILD PROPERTIES ##
25 com.amazonaws.eclipse.android.releng/examples/build.properties.example.macosx10.5
View
@@ -0,0 +1,25 @@
+## BEGIN PROJECT BUILD PROPERTIES ##
+
+thirdPartyDownloadLicenseAcceptance="I accept"
+
+projectid=tools.gef
+zipPrefix=GEF
+incubation=
+version=3.5.0
+buildType=N
+mainFeatureToBuildID=org.eclipse.gef.all
+testFeatureToBuildID=org.eclipse.gef.test
+
+build.steps=buildZips,buildTests,buildUpdate,generateDigests,publish,cleanup
+
+localSourceCheckoutDir=/Users/nickboldt/workspace/org.eclipse.gef.tree
+localSourceCheckoutDirExcludes=**/archive/**
+
+dependencyURLs=http://download.eclipse.org/eclipse/downloads/drops/S-3.5M7-200904302300/eclipse-SDK-3.5M7-macosx-carbon.tar.gz
+
+compilerArg=-enableJavadoc -encoding ISO-8859-1
+
+JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
+JAVA50_HOME=/System/Library/Frameworks/JavaVM.framework/Home
+
+## END PROJECT BUILD PROPERTIES ##
34 com.amazonaws.eclipse.android.releng/examples/build.properties.example.winxp
View
@@ -0,0 +1,34 @@
+## BEGIN PROJECT BUILD PROPERTIES ##
+
+thirdPartyDownloadLicenseAcceptance="I accept"
+
+projectid=tools.gef
+zipPrefix=GEF
+incubation=
+version=3.5.0
+buildType=N
+mainFeatureToBuildID=org.eclipse.gef.all
+testFeatureToBuildID=org.eclipse.gef.test
+
+build.steps=buildZips,buildTests,buildUpdate,generateDigests,publish,cleanup
+
+localSourceCheckoutDir=C:/workspace/org.eclipse.gef.tree
+localSourceCheckoutDirExcludes=**/archive/**
+
+# use this to omit pack200 step (does not yet work on Windows - https://bugs.eclipse.org/bugs/show_bug.cgi?id=268405)
+skipPack=true
+
+dependencyURLs=http://download.eclipse.org/eclipse/downloads/drops/S-3.5M7-200904302300/eclipse-SDK-3.5M7-win32.zip
+
+compilerArg=-enableJavadoc -encoding ISO-8859-1
+
+JAVA_HOME=C:/Progra~1/Java/jdk1.6.0_11
+JAVA50_HOME=C:/Progra~1/Java/jdk1.6.0_11
+
+# For windows, must be explicit about paths using correct slashes (/); dirs with spaces should be avoided
+relengBuilderDir=C:/workspace/org.eclipse.gef.releng
+relengBaseBuilderDir=C:/workspace/org.eclipse.releng.basebuilder
+relengCommonBuilderDir=C:/workspace/org.eclipse.dash.common.releng
+writableBuildRoot=X:/tmp/build
+
+## END PROJECT BUILD PROPERTIES ##
94 com.amazonaws.eclipse.android.releng/examples/build.properties.more.options
View
@@ -0,0 +1,94 @@
+## BEGIN PROJECT BUILD PROPERTIES ##
+
+# default settings for all this project's builds, for this branch; see also o.e.d.common.releng/build.properties for more overrideable defaults
+
+# To permit automatic downloads of non-EPL compatible code, set this to property to "I accept"
+#thirdPartyDownloadLicenseAcceptance="I accept"
+
+projectid=tools.gef
+zipPrefix=GEF
+incubation=
+version=3.5.0
+buildType=N
+mainFeatureToBuildID=org.eclipse.gef.all
+testFeatureToBuildID=org.eclipse.gef.test
+
+#what steps should we do? default: build.steps=buildZips,buildTests,generateDigests,test,publish,cleanup
+build.steps=buildZips,buildTests,buildUpdate,generateDigests,test,publish,cleanup
+
+#If building from local sources, use this variable and set correct path
+#localSourceCheckoutDir=C:/workspace/org.eclipse.gef.tree
+#localSourceCheckoutDir=/Users/nickboldt/workspace/org.eclipse.gef.tree
+#localSourceCheckoutDir=/home/nboldt/eclipse/workspace/org.eclipse.gef.tree
+
+# use this to omit pack200 step (does not yet work on Windows - https://bugs.eclipse.org/bugs/show_bug.cgi?id=268405)
+#skipPack=true
+
+#dependencyURLs=http://download.eclipse.org/eclipse/downloads/drops/S-3.5M6-200903130100/eclipse-SDK-3.5M6-win32.zip
+#dependencyURLs=http://download.eclipse.org/eclipse/downloads/drops/S-3.5M6-200903130100/eclipse-SDK-3.5M6-macosx-carbon.tar.gz
+#dependencyURLs=http://download.eclipse.org/eclipse/downloads/drops/S-3.5M6-200903130100/eclipse-SDK-3.5M6-linux-gtk.tar.gz
+#dependencyURLs=http://download.eclipse.org/eclipse/downloads/drops/S-3.5M6-200903130100/eclipse-SDK-3.5M6-linux-gtk-x86_64.tar.gz
+dependencyURLs=http://download.eclipse.org/eclipse/downloads/drops/S-3.5M6-200903130100/eclipse-SDK-3.5M6-linux-gtk-ppc.tar.gz
+
+compilerArg=-enableJavadoc -encoding ISO-8859-1
+
+# Build with which JDK? see o.e.d.commonbuilder.releng/server.properties for defined paths if not explicitly set here (eg., to build on another server)
+# If only building in Eclipse, may want to set JAVA_HOME=${java.home} (use Eclipse's default JVM as defined in Ant)
+#
+# If building via commandline or in Hudson on build.eclipse.org
+#JAVA_HOME=/opt/public/common/ibm-java2-142
+#JAVA14_HOME=/opt/public/common/ibm-java2-142
+
+JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
+JAVA50_HOME=/usr/lib/jvm/java-1.5.0-sun
+
+# If building on Fedora linux
+#JAVA_HOME=/usr/lib/jvm/java
+#JAVA14_HOME=/usr/lib/jvm/java
+
+# If building on Mac OS X 10.5
+#JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
+#JAVA14_HOME=/System/Library/Frameworks/JavaVM.framework/Home
+
+# If building on Windows
+#JAVA_HOME=C:/Progra~1/Java/jdk1.6.0_11
+#JAVA14_HOME=C:/Progra~1/Java/jdk1.6.0_11
+
+# For windows, must be explicit about paths using correct slashes (/); dirs with spaces should be avoided
+#relengBuilderDir=C:/workspace/org.eclipse.gef.releng
+#relengBaseBuilderDir=C:/workspace/org.eclipse.releng.basebuilder
+#relengCommonBuilderDir=C:/workspace/org.eclipse.dash.common.releng
+#writableBuildRoot=X:/tmp/build
+
+#################################################################################################################
+
+#TODO: [269290] make javadokken work.
+#javadocEnabled=true
+#JAVADOC14_HOME=/opt/public/common/ibm-java2-ppc-50/bin
+
+# TODO: are these still required/used?
+#projRelengRoot=:pserver:anonymous@dev.eclipse.org:/cvsroot/tools
+projRelengRoot=:pserver:anonymous@dev.eclipse.org:/cvsroot/technology
+projRelengPath=org.eclipse.dash/athena/org.eclipse.dash.commonbuilder/org.eclipse.dtp.releng
+basebuilderBranch=R35_RC4
+
+# TODO: not used yet
+# define regex patterns to use when automatically selecting zips from a directory or list file
+#dependencyRegexFilter=R3_4_maintenance:M200.*/eclipse-SDK-|R-.*200.*/eclipse-SDK-
+
+# TODO: not used yet
+# could be file://, http://, cvs path, or relative path?
+#mapLocation=maps/
+
+# TODO: implement use of packager.map for defining deps?
+# TODO: could be relative, absolute (local), or http/ftp paths to archives when defining dependencyURLs above
+
+# Note: bootclasspath vars are defined in o.e.d.commonbuilder.releng/server.properties
+# if using a Sun VM, may need
+# bootclasspath=${java.home}/lib/*.jar
+# for IBM VM, may need
+# bootclasspath=${java.home}/jre/lib/*.jar
+# on Mac OS X 10.5, may need
+# bootclasspath=${java.home}/../Classes/*.jar
+
+## END PROJECT BUILD PROPERTIES ##
149 com.amazonaws.eclipse.android.releng/examples/buildExtra.xml
View
@@ -0,0 +1,149 @@
+<project default="run" name="Project's .releng buildExtra.xml">
+
+ <target name="init">
+ </target>
+
+ <target name="run">
+ <!-- TODO: write code that's hooked into o.e.d.commonbuilder.releng's build.xml to do extra configs (eg., for inserting 3rd party libs into plugins)
+ -->
+ </target>
+
+ <target name="extraPackaging">
+ <!-- USE PDE PACKAGER TO ASSEMBLE THESE ZIPS -->
+
+ <!-- create ALL zip from ${allZip} -->
+ <zip destfile="${buildDirectory}/${buildLabel}/GEF-ALL-${buildAlias}.zip" update="true">
+ <zipfileset src="${buildDirectory}/${buildLabel}/${allZip}" dirmode="775" filemode="664" />
+ </zip>
+
+ <!-- build GEF SDK: Draw2D + GEF SDKs, no examples -->
+ <zip destfile="${buildDirectory}/${buildLabel}/GEF-SDK-${buildAlias}.zip" update="true">
+ <zipfileset src="${buildDirectory}/${buildLabel}/${allZip}"
+ dirmode="775"
+ filemode="664"
+ excludes="**/org.eclipse.*.all*, **/org.eclipse.*.all*/**, **/org.eclipse.*.examples*, **/org.eclipse.*.examples*/**"
+ >
+ <include name="**/org.eclipse.draw2d*" />
+ <include name="**/org.eclipse.draw2d*/**" />
+ <include name="**/org.eclipse.draw2d*/**/**" />
+ <include name="**/org.eclipse.gef*" />
+ <include name="**/org.eclipse.gef*/**" />
+ <include name="**/org.eclipse.gef*/**/**" />
+ </zipfileset>
+ <zipfileset src="${buildDirectory}/${buildLabel}/${allZip}" dirmode="775" filemode="664">
+ <include name="**/org.eclipse.gef.examples.ui.pde*" />
+ </zipfileset>
+ <zipfileset src="${buildDirectory}/${buildLabel}/${allZip}"
+ dirmode="775"
+ filemode="664"
+ id="rootfiles"
+ includes="**/eclipse/epl-v10.html, **/eclipse/notice.html"
+ />
+ </zip>
+
+ <!-- build GEF runtime: Draw2D + GEF runtimes, no examples -->
+ <zip destfile="${buildDirectory}/${buildLabel}/GEF-runtime-${buildAlias}.zip" update="true">
+ <zipfileset src="${buildDirectory}/${buildLabel}/${allZip}"
+ dirmode="775"
+ filemode="664"
+ excludes="**/org.eclipse.*.examples*, **/org.eclipse.*.examples*/**, **/org.eclipse.*.sdk*, **/org.eclipse.*.sdk*/**, **/org.eclipse.*.all*, **/org.eclipse.*.all*/**, **/org.eclipse.*.doc*, **/org.eclipse.*.doc*/*, **/org.eclipse.*.source*, **/org.eclipse.*.source*/**, **/*src.zip"
+ >
+ <include name="**/org.eclipse.draw2d*" />
+ <include name="**/org.eclipse.draw2d*/**" />
+ <include name="**/org.eclipse.draw2d*/**/**" />
+ <include name="**/org.eclipse.gef*" />
+ <include name="**/org.eclipse.gef*/**" />
+ <include name="**/org.eclipse.gef*/**/**" />
+ </zipfileset>
+ <zipfileset refid="rootfiles" />
+ </zip>
+
+ <!-- build Zest SDK: Draw2D + Zest SDKs, no examples -->
+ <zip destfile="${buildDirectory}/${buildLabel}/GEF-zest-sdk-${buildAlias}.zip" update="true">
+ <zipfileset src="${buildDirectory}/${buildLabel}/${allZip}"
+ dirmode="775"
+ filemode="664"
+ excludes="**/org.eclipse.*.all*, **/org.eclipse.*.all*/**, **/org.eclipse.*.examples*, **/org.eclipse.*.examples*/**"
+ >
+ <include name="**/org.eclipse.draw2d*" />
+ <include name="**/org.eclipse.draw2d*/**" />
+ <include name="**/org.eclipse.draw2d*/**/**" />
+ <include name="**/org.eclipse.zest*" />
+ <include name="**/org.eclipse.zest*/**" />
+ <include name="**/org.eclipse.zest*/**/**" />
+ </zipfileset>
+ <zipfileset refid="rootfiles" />
+ </zip>
+
+ <!-- build Zest runtime: Draw2D + Zest runtimes, no examples, no doc -->
+ <zip destfile="${buildDirectory}/${buildLabel}/GEF-zest-${buildAlias}.zip" update="true">
+ <zipfileset src="${buildDirectory}/${buildLabel}/${allZip}"
+ dirmode="775"
+ filemode="664"
+ excludes="**/org.eclipse.*.examples*, **/org.eclipse.*.examples*/**, **/org.eclipse.*.sdk*, **/org.eclipse.*.sdk*/**, **/org.eclipse.*.all*, **/org.eclipse.*.all*/**, **/org.eclipse.*.doc*, **/org.eclipse.*.doc*/*, **/org.eclipse.*.source*, **/org.eclipse.*.source*/**, **/*src.zip"
+ >
+ <include name="**/org.eclipse.draw2d*" />
+ <include name="**/org.eclipse.draw2d*/**" />
+ <include name="**/org.eclipse.draw2d*/**/**" />
+ <include name="**/org.eclipse.zest*" />
+ <include name="**/org.eclipse.zest*/**" />
+ <include name="**/org.eclipse.zest*/**/**" />
+ </zipfileset>
+ <zipfileset refid="rootfiles" />
+ </zip>
+
+ <!-- build Draw2D SDK: Draw2D SDK, no examples -->
+ <zip destfile="${buildDirectory}/${buildLabel}/GEF-draw2d-sdk-${buildAlias}.zip" update="true">
+ <zipfileset src="${buildDirectory}/${buildLabel}/${allZip}"
+ dirmode="775"
+ filemode="664"
+ excludes="**/org.eclipse.*.all*, **/org.eclipse.*.all*/**, **/org.eclipse.*.examples*, **/org.eclipse.*.examples*/**"
+ >
+ <include name="**/org.eclipse.draw2d*" />
+ <include name="**/org.eclipse.draw2d*/**" />
+ <include name="**/org.eclipse.draw2d*/**/**" />
+ </zipfileset>
+ <zipfileset refid="rootfiles" />
+ </zip>
+
+ <!-- build Draw2D runtime: Draw2D runtime, no examples -->
+ <zip destfile="${buildDirectory}/${buildLabel}/GEF-draw2d-${buildAlias}.zip" update="true">
+ <zipfileset src="${buildDirectory}/${buildLabel}/${allZip}"
+ dirmode="775"
+ filemode="664"
+ excludes="**/org.eclipse.*.examples*, **/org.eclipse.*.examples*/**, **/org.eclipse.*.sdk*, **/org.eclipse.*.sdk*/**, **/org.eclipse.*.all*, **/org.eclipse.*.all*/**, **/org.eclipse.*.doc*, **/org.eclipse.*.doc*/*, **/org.eclipse.*.source*, **/org.eclipse.*.source*/**, **/*src.zip"
+ >
+ <include name="**/org.eclipse.draw2d*" />
+ <include name="**/org.eclipse.draw2d*/**" />
+ <include name="**/org.eclipse.draw2d*/**/**" />
+ </zipfileset>
+ <zipfileset refid="rootfiles" />
+ </zip>
+
+ <!-- build examples -->
+ <zip destfile="${buildDirectory}/${buildLabel}/GEF-examples-${buildAlias}.zip" update="true">
+ <zipfileset src="${buildDirectory}/${buildLabel}/${allZip}" dirmode="775" filemode="664">
+ <include name="**/org.eclipse.*.examples*" />
+ <include name="**/org.eclipse.*.examples*/**" />
+ <include name="**/org.eclipse.*.examples*/**/**" />
+ <exclude name="**/org.eclipse.gef.examples.ui.pde*" />
+ </zipfileset>
+ <zipfileset refid="rootfiles" />
+ </zip>
+
+ </target>
+
+ <target name="getDependencies">
+ <!-- if GEF depended on other deps than Eclipse, they could be unpacked here -->
+ <!--
+ <echo message="Download, then unpack dependencies ..." />
+ <ant target="getDependency"
+ antfile="${relengCommonBuilderDir}/tools/scripts/getDependencies.xml">
+ <property name="url" value="${modeling.emf.cdo.url}" />
+ <property name="file" value="${modeling.emf.cdo.file}" />
+ <property name="isUnpackedFile"
+ value="${buildDirectory}/plugins/org.eclipse.cdo/plugin.xml" />
+ </ant>
+ -->
+ </target>
+</project>
22 com.amazonaws.eclipse.android.releng/examples/com.amazonaws.eclipse.datatools.releng-build.xml.launch
View
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.ant.AntLaunchConfigurationType">
+<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
+<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${project}"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/com.amazonaws.eclipse.datatools.releng/build.xml"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.debug.ui.ATTR_CAPTURE_IN_FILE" value="${workspace_loc:/com.amazonaws.eclipse.datatools.releng}/buildlog.latest.txt"/>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="com.amazonaws.eclipse.datatools.releng"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_HIDE_INTERNAL_TARGETS" value="true"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE" value="${projects:org.eclipse.dash.common.releng,com.amazonaws.eclipse.datatools.releng}"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/com.amazonaws.eclipse.datatools.releng/build.xml}"/>
+<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
+</launchConfiguration>
47 com.amazonaws.eclipse.android.releng/lib/LICENSE.txt
View
@@ -0,0 +1,47 @@
+/*
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 2001-2003 Ant-Contrib project. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
+ * Ant-Contrib project (http://sourceforge.net/projects/ant-contrib)."
+ * Alternately, this acknowlegement may appear in the software itself,
+ * if and wherever such third-party acknowlegements normally appear.
+ *
+ * 4. The name Ant-Contrib must not be used to endorse or promote products
+ * derived from this software without prior written permission. For
+ * written permission, please contact
+ * ant-contrib-developers@lists.sourceforge.net.
+ *
+ * 5. Products derived from this software may not be called "Ant-Contrib"
+ * nor may "Ant-Contrib" appear in their names without prior written
+ * permission of the Ant-Contrib project.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE ANT-CONTRIB PROJECT OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ */
BIN  com.amazonaws.eclipse.android.releng/lib/ant-contrib.jar
View
Binary file not shown
6 com.amazonaws.eclipse.android.releng/maps/aws-java-sdk.map
View
@@ -0,0 +1,6 @@
+# com.amazonaws.eclipse.sdk plugins and feature
+plugin@com.amazonaws.eclipse.sdk=SVN,,http://aws-eclipse.svn.sourceforge.net/svnroot,aws-eclipse,plugins/com.amazonaws.eclipse.core
+plugin@com.amazonaws.eclipse.sdk.ui=SVN,,http://aws-eclipse.svn.sourceforge.net/svnroot,aws-eclipse,plugins/com.amazonaws.eclipse.core
+feature@com.amazonaws.eclipse.sdk.feature=SVN,,http://aws-eclipse.svn.sourceforge.net/svnroot,aws-eclipse,features/com.amazonaws.eclipse.core.feature
+
+plugin@com.amazonaws.eclipse.core=SVN,,http://aws-eclipse.svn.sourceforge.net/svnroot,aws-eclipse,plugins/com.amazonaws.eclipse.core
17 com.amazonaws.eclipse.android.sdk.feature/.project
View
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>com.amazonaws.eclipse.android.sdk.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
1  com.amazonaws.eclipse.android.sdk.feature/build.properties
View
@@ -0,0 +1 @@
+bin.includes = feature.xml
82 com.amazonaws.eclipse.sdk/LICENSE.txt → ...amazonaws.eclipse.android.sdk.feature/feature.xml 100755 → 100644
View
@@ -1,43 +1,62 @@
-Apache License
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="com.amazonaws.eclipse.android.sdk.feature"
+ label="AWS SDK for Android"
+ version="1.0.0.qualifier"
+ provider-name="Amazon Web Services">
+
+ <description url="http://aws.amazon.com/eclipse">
+ AWS SDK for Android - Eclipse Integration
+ </description>
+
+ <copyright>
+ AWS Toolkit for Eclipse
+Copyright 2008-2012 Amazon Technologies, Inc
+This product includes software developed by
+Amazon Technologies, Inc (http://www.amazon.com/).
+ </copyright>
+
+ <license url="http://aws.amazon.com/apache2.0">
+ Apache License
Version 2.0, January 2004
-http://aws.amazon.com/apache2.0/
+http://aws.amazon.com/apache2.0
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
- "License" shall mean the terms and conditions for use, reproduction,
+ &quot;License&quot; shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
- "Licensor" shall mean the copyright owner or entity authorized by
+ &quot;Licensor&quot; shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
- "Legal Entity" shall mean the union of the acting entity and all
+ &quot;Legal Entity&quot; shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
+ &quot;control&quot; means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
- "You" (or "Your") shall mean an individual or Legal Entity
+ &quot;You&quot; (or &quot;Your&quot;) shall mean an individual or Legal Entity
exercising permissions granted by this License.
- "Source" form shall mean the preferred form for making modifications,
+ &quot;Source&quot; form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
- "Object" form shall mean any form resulting from mechanical
+ &quot;Object&quot; form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
- "Work" shall mean the work of authorship, whether in Source or
+ &quot;Work&quot; shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
- "Derivative Works" shall mean any work, whether in Source or Object
+ &quot;Derivative Works&quot; shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
@@ -45,21 +64,21 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
- "Contribution" shall mean any work of authorship, including
+ &quot;Contribution&quot; shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
+ the copyright owner. For the purposes of this definition, &quot;submitted&quot;
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
+ designated in writing by the copyright owner as &quot;Not a Contribution.&quot;
- "Contributor" shall mean Licensor and any individual or Legal Entity
+ &quot;Contributor&quot; shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
@@ -103,7 +122,7 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
excluding those notices that do not pertain to any part of
the Derivative Works; and
- (d) If the Work includes a "NOTICE" text file as part of its
+ (d) If the Work includes a &quot;NOTICE&quot; text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
@@ -142,7 +161,7 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
+ Contributor provides its Contributions) on an &quot;AS IS&quot; 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
@@ -174,9 +193,26 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
-
-
-Note: Other license terms may apply to certain, identified software files
-contained within or distributed with the accompanying software if such terms
-are included in the directory containing the accompanying software. Such other
-license terms will then apply in lieu of the terms of the software license above.
+ </license>
+
+ <requires>
+ <import plugin="org.eclipse.ui"/>
+ <import plugin="org.eclipse.core.runtime"/>
+ <import plugin="com.amazonaws.eclipse.core" version="2.0.1" match="greaterOrEqual"/>
+ <import plugin="com.amazonaws.eclipse.sdk.ui" version="1.0.0" match="greaterOrEqual"/>
+ <import plugin="com.android.ide.eclipse.adt" version="18.0.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.jface.databinding" version="1.4.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.core.databinding" version="1.3.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.core.databinding.beans" version="1.2.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.jdt.core" version="3.5.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.jdt.ui" version="3.5.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.core.resources" version="3.5.0" match="greaterOrEqual"/>
+ </requires>
+
+ <plugin
+ id="com.amazonaws.eclipse.android.sdk"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+</feature>
9 com.amazonaws.eclipse.android.sdk/.classpath
View
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry exported="true" kind="lib" path="lib/sdkuilib.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/sdklib.jar"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
56 com.amazonaws.eclipse.sdk/.project → com.amazonaws.eclipse.android.sdk/.project 100755 → 100644
View
@@ -1,28 +1,28 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>com.amazonaws.eclipse.sdk</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>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>com.amazonaws.eclipse.android.sdk</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>
8 com.amazonaws.eclipse.android.sdk/.settings/org.eclipse.jdt.core.prefs
View
@@ -0,0 +1,8 @@
+#Thu May 17 16:16:20 PDT 2012
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
24 com.amazonaws.eclipse.android.sdk/META-INF/MANIFEST.MF
View
@@ -0,0 +1,24 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: AWS SDK for Android
+Bundle-SymbolicName: com.amazonaws.eclipse.android.sdk;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: com.amazonaws.eclipse.android.sdk.AndroidSDKPlugin
+Bundle-Vendor: Amazon Web Services
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ com.amazonaws.eclipse.core;bundle-version="2.0.1",
+ com.amazonaws.eclipse.sdk.ui;bundle-version="1.0.0",
+ com.android.ide.eclipse.adt;bundle-version="18.0.0",
+ org.eclipse.jface.databinding,
+ org.eclipse.core.databinding,
+ org.eclipse.core.databinding.beans;bundle-version="1.2.0",
+ org.eclipse.jdt.core;bundle-version="3.5.0",
+ org.eclipse.jdt.ui;bundle-version="3.5.0",
+ org.eclipse.core.resources;bundle-version="3.5.0",
+ com.android.ide.eclipse.base;bundle-version="20.0.3"
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Eclipse-LazyStart: true
+Bundle-ActivationPolicy: lazy
+Bundle-ClassPath: .,
+ lib/sdkuilib.jar
8 com.amazonaws.eclipse.android.sdk/build.properties
View
@@ -0,0 +1,8 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ lib/,\
+ icons/,\
+ resources/
BIN  com.amazonaws.eclipse.android.sdk/icons/aws-box.gif
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  com.amazonaws.eclipse.android.sdk/lib/sdklib.jar
View
Binary file not shown
BIN  com.amazonaws.eclipse.android.sdk/lib/sdkuilib.jar
View
Binary file not shown
51 com.amazonaws.eclipse.android.sdk/plugin.xml
View
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension point="org.eclipse.ui.startup">
+ </extension>
+
+ <extension point="org.eclipse.ui.preferencePages">
+ <page
+ category="com.amazonaws.eclipse.core.ui.preferences.AwsAccountPreferencePage"
+ class="com.amazonaws.eclipse.android.sdk.preferences.AndroidSDKPreferencePage"
+ id="com.amazonaws.eclipse.android.sdk.preferences.AndroidSDKPreferencePage"
+ name="AWS SDK For Android">
+ </page>
+ </extension>
+
+ <extension point="org.eclipse.core.runtime.preferences">
+ <initializer class="com.amazonaws.eclipse.android.sdk.preferences.PreferenceInitializer" />
+ </extension>
+
+ <extension point="org.eclipse.ui.newWizards">
+ <wizard
+ canFinishEarly="false"
+ category="com.amazonaws.eclipse.sdk.category"
+ class="com.amazonaws.eclipse.android.sdk.newproject.NewAndroidProjectWizard"
+ finalPerspective="org.eclipse.jdt.ui.JavaPerspective"
+ hasPages="true"
+ icon="icons/aws-box.gif"
+ id="com.amazonaws.eclipse.android.sdk.newProjectWizard"
+ name="AWS Android Project"
+ preferredPerspectives="org.eclipse.jdt.ui.JavaPerspective"
+ project="true">
+ </wizard>
+ </extension>
+
+ <extension point="org.eclipse.ui.perspectiveExtensions">
+ <perspectiveExtension targetID="org.eclipse.jdt.ui.JavaPerspective">
+ <newWizardShortcut id="com.amazonaws.eclipse.android.sdk.newProjectWizard"/>
+ </perspectiveExtension>
+ <perspectiveExtension targetID="org.eclipse.jst.j2ee.J2EEPerspective">
+ <newWizardShortcut id="com.amazonaws.eclipse.android.sdk.newProjectWizard"/>
+ </perspectiveExtension>
+ </extension>
+
+ <extension point="org.eclipse.jdt.core.classpathContainerInitializer">
+ <classpathContainerInitializer
+ class="com.amazonaws.eclipse.android.sdk.classpath.AndroidSdkClasspathContainerInitializer"
+ id="com.amazonaws.eclipse.android.sdk.AWS_ANDROID_SDK">
+ </classpathContainerInitializer>
+ </extension>
+
+</plugin>
180 com.amazonaws.eclipse.android.sdk/resources/S3_Uploader/README.html
View
@@ -0,0 +1,180 @@
+<html>
+<head>
+ <title>Mobile Photo Uploads to Amazon S3</title>
+ <style type="text/css">
+ h1, h2, h3, p, ul li {
+ font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
+ }
+
+ h1 {font-size: 20px; }
+ h2 {font-size: 18px; }
+ h3 {font-size: 16px; }
+ p, ul li {font-size: 14px; }
+
+ pre {
+ background-attachment: scroll;
+ background-clip: border-box;
+ background-color: rgb(238, 238, 238);
+ background-origin: padding-box;
+ border-bottom-left-radius: 4px;
+ border-bottom-right-radius: 4px;
+ border-top-left-radius: 4px;
+ border-top-right-radius: 4px;
+ color: rgb(102, 102, 102);
+ display: block;
+ font-family: 'Courier New', Courier, monospace;
+ font-size: 16px;
+ line-height: 24px;
+ margin-bottom: 24px;
+ margin-left: 0px;
+ margin-right: 0px;
+ margin-top: 24px;
+ overflow-x: auto;
+ overflow-y: auto;
+ padding-bottom: 12px;
+ padding-left: 12px;
+ padding-right: 12px;
+ padding-top: 12px;
+ position: relative;
+ white-space: pre;
+ width: 849px;
+ }
+ </style>
+</head>
+<body style="padding: 10px">
+ <h1>Mobile Photo Uploads to Amazon S3 using the AWS SDK for Android</h1>
+ <p>
+ This article demonstrates how to upload an image to <a href="http://aws.amazon.com/s3/">Amazon S3</a> from your mobile device and how
+ to make that image available on the web. Amazon S3 is storage for the Internet. It's a
+ simple storage service that offers software developers a highly-scalable, reliable, secure, fast, and inexpensive data storage.
+ Links to the AWS mobile SDKs are available at the end of this article.
+ </p>
+
+ <p>
+ Here's what the sample app looks like at start up:
+ <p style="padding-left:2cm;">
+ <img src="http://media.amazonwebservices.com/Android-Uploader.png" />
+ </p>
+
+ <h2>AWS Credentials</h2>
+ <p>
+ To use the AWS SDKs you will need AWS credentials (your Access Key ID and Secret Access Key).
+ If you haven't already signed up for <a href="http://aws.amazon.com/">Amazon Web Services</a>
+ (AWS), you will need to do that first to get your AWS credentials. You can sign up for AWS
+ <a href="https://aws-portal.amazon.com/gp/aws/developer/registration/index.html">here</a>.
+
+ <p>
+ Once you have your AWS credentials, open the Constants.java file in your src directory,
+ and fill in the ACCESS_KEY_ID and SECRET_KEY members with your AWS credentials.
+
+ <h2>Image Upload</h2>
+ <p>
+ The app uses the platform's "image picker" utility to have the end-user select an image for upload. The
+ app then creates an Amazon S3 client, uses the client to create an Amazon S3 bucket in which to store the
+ image, and finally uploads the image into the bucket. A bucket is a container for objects stored in Amazon
+ S3. Every object--such as an image--is contained within a bucket.
+ </p>
+
+ <h3>Get The Image </h3>
+ <p>The first step is to retrieve the content, in this case an image, to be uploaded to Amazon S3. For this sample app, selecting an image from the device itself is an easy choice.</p>
+ <p style="padding-left:2cm;">
+ <pre>
+Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
+intent.setType("image/*");
+startActivityForResult(intent, PHOTO_SELECTED);</pre>
+ </p>
+ <p style="padding-left:2cm;">
+ <img src="http://media.amazonwebservices.com/Android-Image-Picker.png"/>
+ </p>
+ <p>Once an image is selected, a callback method is invoked with the selected image's information. The app uses this information to complete the upload. </p>
+
+ <p>If you don't have any images saved on your device yet, you can perform a quick web search to find an image, then tap and hold the image and get Android to save the image to disk.</p>
+ <p><b>NOTE:</b> In some Android Virtual Devices (ex: API Level 16) there is a bug that causes these saved images to not show up in your image gallery until the AVD is restarted.
+ If you experience this, just close the emulator after saving an image, and restart it.
+ </p>
+
+ <h3>Upload The Image</h3>
+ <p>Once we have the image, we can attempt to upload it to Amazon S3.</p>
+ <p><b>First</b>, create an Amazon S3 client to communicate with the service.</p>
+ <p style="padding-left:2cm;">
+ <pre>
+AmazonS3Client s3Client = new AmazonS3Client( new BasicAWSCredentials( MY_ACCESS_KEY_ID, MY_SECRET_KEY ) );
+</pre>
+ </p>
+
+
+ <p><b>Second</b>, create an S3 bucket to store the picture. </p>
+ <p style="padding-left:2cm;">
+ <pre>s3Client.createBucket( MY_PICTURE_BUCKET );</pre>
+ </p>
+
+
+ <p><b>Finally</b>, put the image object into the S3 bucket.</p>
+ <p style="padding-left:2cm;">
+ <pre>PutObjectRequest por = new PutObjectRequest( Constants.getPictureBucket(), Constants.PICTURE_NAME, new java.io.File( filePath) );
+s3Client.putObject( por );</pre>
+ </p>
+
+
+ <h2>Browser Display</h2>
+ <p>The app makes the image available for viewing in a browser by generating a pre-signed URL.
+ A pre-signed URL is a URL for an Amazon S3 resource that is signed with current AWS security
+ credentials. The pre-signed URL can then be shared with other users, allowing them to access
+ resources without providing an account's AWS security credentials.</p>
+
+ <p><b>First</b>, create an override content type to ensure that the "content" will be treated as an image by the browser.</p>
+ <p style="padding-left:2cm;">
+ <pre>ResponseHeaderOverrides override = new ResponseHeaderOverrides();
+override.setContentType( "image/jpeg" );</pre>
+ </p>
+
+
+ <p><b>Second</b>, create the pre-signed URL request. Pre-signed URLs can be created with an expiration date,
+ that is, a date and time after which the resource will no longer be available. In the sample, the pre-signed URLs are valid for only one hour.</p>
+ <p style="padding-left:2cm;">
+ <pre>GeneratePresignedUrlRequest urlRequest = new GeneratePresignedUrlRequest( Constants.getPictureBucket(), Constants.PICTURE_NAME );
+urlRequest.setExpiration( new Date( System.currentTimeMillis() + 3600000 ) ); // Added an hour's worth of milliseconds to the current time.
+urlRequest.setResponseHeaders( override );</pre>
+ </p>
+
+
+
+ <p><b>Third</b>, generate the pre-signed URL. </p>
+ <p style="padding-left:2cm;">
+ <pre>URL url = s3Client.generatePresignedUrl( urlRequest );</pre>
+ </p>
+
+
+
+ <p><b>Finally</b>, launch the browser to view the pre-signed URL which will display the image. </p>
+ <ul><li><a href="http://developer.android.com/guide/appendix/g-app-intents.html">More information on invoking applications on Android Devices</a></li></ul>
+ <p style="padding-left:2cm;">
+ <pre>startActivity( new Intent( Intent.ACTION_VIEW, Uri.parse( url.toURI().toString() ) ) );</pre>
+ </p>
+ <p style="padding-left:2cm;">
+ <img src="http://media.amazonwebservices.com/Android-ShowPic.png"/>
+ </p>
+
+
+ <h2>Next Steps</h2>
+ <p>These few lines of code demonstrate how Amazon S3 could become a limitless storage device for your mobile
+ photos. A photo sharing app that allows users to view photos from other users would not be a difficult
+ extension to the above code. Also, the content that is uploaded and shared is not limited to images. The
+ content could be audio files, video files, text, or other content that users want to store and share. </p>
+
+ <h2>References</h2>
+ <p>A sample app that includes this code is provided with both the AWS SDK for Android and the AWS SDK for iOS. The download links can be found here:</p>
+
+ <ul>
+ <li><a href="http://aws.amazon.com/sdkforios">AWS SDK for iOS</a></li>
+ <li><a href="http://aws.amazon.com/sdkforandroid">AWS SDK for Android</a></li>
+ </ul>
+
+ <p>For more information about using AWS credentials with mobile applications see
+ <a href="http://aws.amazon.com/articles/SDKs/Android/4611615499399490">Authenticating Users of AWS Mobile Applications with a Token Vending Machine</a>.
+
+ <h2>Questions?</h2>
+ <p>Please feel free to ask questions or make comments in the <a href="https://forums.aws.amazon.com/forum.jspa?forumID=88">Mobile Development Forum</a>.</p>
+
+</body>
+</html>
83 com.amazonaws.eclipse.android.sdk/resources/S3_Uploader/build.xml
View
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="S3UploaderActivity" default="help">
+
+ <!-- The local.properties file is created and updated by the 'android' tool.
+ It contains the path to the SDK. It should *NOT* be checked into
+ Version Control Systems. -->
+ <property file="local.properties" />
+
+ <!-- The ant.properties file can be created by you. It is only edited by the
+ 'android' tool to add properties to it.
+ This is the place to change some Ant specific build properties.
+ Here are some properties you may want to change/update:
+
+ source.dir
+ The name of the source directory. Default is 'src'.
+ out.dir
+ The name of the output directory. Default is 'bin'.
+
+ For other overridable properties, look at the beginning of the rules
+ files in the SDK, at tools/ant/build.xml
+
+ Properties related to the SDK location or the project target should
+ be updated using the 'android' tool with the 'update' action.
+
+ This file is an integral part of the build system for your
+ application and should be checked into Version Control Systems.
+
+ -->
+ <property file="ant.properties" />
+
+ <!-- The project.properties file is created and updated by the 'android'
+ tool, as well as ADT.
+
+ This contains project specific properties such as project target, and library
+ dependencies. Lower level build properties are stored in ant.properties
+ (or in .classpath for Eclipse projects).
+
+ This file is an integral part of the build system for your
+ application and should be checked into Version Control Systems. -->
+ <loadproperties srcFile="project.properties" />
+
+ <!-- quick check on sdk.dir -->
+ <fail
+ message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
+ unless="sdk.dir"
+ />
+
+ <!--
+ Import per project custom build rules if present at the root of the project.
+ This is the place to put custom intermediary targets such as:
+ -pre-build
+ -pre-compile
+ -post-compile (This is typically used for code obfuscation.
+ Compiled code location: ${out.classes.absolute.dir}
+ If this is not done in place, override ${out.dex.input.absolute.dir})
+ -post-package
+ -post-build
+ -pre-clean
+ -->
+ <import file="custom_rules.xml" optional="true" />
+
+ <!-- Import the actual build file.
+
+ To customize existing targets, there are two options:
+ - Customize only one target:
+ - copy/paste the target into this file, *before* the
+ <import> task.
+ - customize it to your needs.
+ - Customize the whole content of build.xml
+ - copy/paste the content of the rules files (minus the top node)
+ into this file, replacing the <import> task.
+ - customize to your needs.
+
+ ***********************
+ ****** IMPORTANT ******
+ ***********************
+ In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
+ in order to avoid having your file be overridden by tools such as "android update project"
+ -->
+ <!-- version-tag: 1 -->
+ <import file="${sdk.dir}/tools/ant/build.xml" />
+
+</project>
36 com.amazonaws.eclipse.android.sdk/resources/S3_Uploader/res/layout/main.xml
View
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+<TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="20dip"
+ android:text="@string/step1"
+ />
+<Button android:visibility="visible"
+ android:text="@string/select_photo"
+ android:id="@+id/select_photo_button"
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"/>
+<TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sync_requests_note"
+ android:textSize="10dip"
+ />
+<TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="30dip"
+ android:text="@string/step2"
+ />
+<Button
+ android:id="@+id/show_in_browser_button"
+ android:text="@string/show_in_browser"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:visibility="visible"/>
+</LinearLayout>
13 com.amazonaws.eclipse.android.sdk/resources/S3_Uploader/res/values/strings.xml
View
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="step1">1. You can upload an image file to the Amazon S3 using AsyncTask:</string>
+ <string name="app_name">S3Uploader</string>
+ <string name="show_in_browser">Show in Browser</string>
+ <string name="select_photo">Select Photo</string>
+ <string name="step2">2. You can see the image that you have uploaded in the browser:</string>
+ <string name="sync_requests_note">*** Do not call synchronous AWS requests on the main thread.</string>
+ <string name="upload_failure_title">Upload Failure</string>
+ <string name="browser_failure_title">Browser Failure</string>
+ <string name="ok">OK</string>
+ <string name="uploading">Uploading…</string>
+</resources>
39 com.amazonaws.eclipse.android.sdk/resources/S3_Uploader/src/Constants.java
View
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2010-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+package com.amazonaws.demo.s3uploader;
+
+import java.util.Locale;
+
+public class Constants {
+ //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ // This sample App is for demonstration purposes only.
+ // It is not secure to embed your credentials into source code.
+ // Please read the following article for getting credentials
+ // to devices securely.
+ // http://aws.amazon.com/articles/Mobile/4611615499399490
+ //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+ public static final String ACCESS_KEY_ID = "CHANGE ME";
+ public static final String SECRET_KEY = "CHANGE ME";
+
+ public static final String PICTURE_BUCKET = "picture-bucket";
+ public static final String PICTURE_NAME = "NameOfThePicture";
+
+
+ public static String getPictureBucket() {
+ return ("my-unique-name" + ACCESS_KEY_ID + PICTURE_BUCKET).toLowerCase(Locale.US);
+ }
+
+}
265 com.amazonaws.eclipse.android.sdk/resources/S3_Uploader/src/S3UploaderActivity.java
View
@@ -0,0 +1,265 @@
+/*
+ * Copyright 2010-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+package com.amazonaws.demo.s3uploader;
+
+import java.net.URL;
+import java.util.Date;
+
+import com.amazonaws.demo.s3uploader.R;
+
+import com.amazonaws.auth.BasicAWSCredentials;
+import com.amazonaws.services.s3.AmazonS3Client;
+import com.amazonaws.services.s3.model.GeneratePresignedUrlRequest;
+import com.amazonaws.services.s3.model.PutObjectRequest;
+import com.amazonaws.services.s3.model.ResponseHeaderOverrides;
+
+import android.app.Activity;
+import android.app.AlertDialog;
+import android.app.ProgressDialog;
+import android.content.DialogInterface;
+import android.content.Intent;
+import android.database.Cursor;
+import android.net.Uri;
+import android.os.AsyncTask;
+import android.os.Bundle;
+import android.provider.MediaStore;
+import android.view.View;
+import android.widget.Button;
+
+public class S3UploaderActivity extends Activity {
+
+ private AmazonS3Client s3Client = new AmazonS3Client(
+ new BasicAWSCredentials(Constants.ACCESS_KEY_ID,
+ Constants.SECRET_KEY));
+
+ private Button selectPhoto = null;
+ private Button showInBrowser = null;
+
+ private static final int PHOTO_SELECTED = 1;
+
+ /** Called when the activity is first created. */
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.main);
+
+ selectPhoto = (Button) findViewById(R.id.select_photo_button);
+ selectPhoto.setOnClickListener(new View.OnClickListener() {
+ public void onClick(View v) {
+ // Start the image picker.
+ Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
+ intent.setType("image/*");
+ startActivityForResult(intent, PHOTO_SELECTED);
+ }
+ });
+
+ showInBrowser = (Button) findViewById(R.id.show_in_browser_button);
+ showInBrowser.setOnClickListener(new View.OnClickListener() {
+ public void onClick(View v) {
+ new S3GeneratePresignedUrlTask().execute();
+ }
+ });
+ }
+
+ // This method is automatically called by the image picker when an image is
+ // selected.
+ protected void onActivityResult(int requestCode, int resultCode,
+ Intent imageReturnedIntent) {
+ super.onActivityResult(requestCode, resultCode, imageReturnedIntent);
+
+ switch (requestCode) {
+ case PHOTO_SELECTED:
+ if (resultCode == RESULT_OK) {
+
+ Uri selectedImage = imageReturnedIntent.getData();
+ new S3PutObjectTask().execute(selectedImage);
+ }
+ }
+ }
+
+ // Display an Alert message for an error or failure.
+ protected void displayAlert(String title, String message) {
+
+ AlertDialog.Builder confirm = new AlertDialog.Builder(this);
+ confirm.setTitle(title);
+ confirm.setMessage(message);
+
+ confirm.setNegativeButton(
+ S3UploaderActivity.this.getString(R.string.ok),
+ new DialogInterface.OnClickListener() {
+
+ public void onClick(DialogInterface dialog, int which) {
+
+ dialog.dismiss();
+ }
+ });
+
+ confirm.show().show();
+ }
+
+ protected void displayErrorAlert(String title, String message) {
+
+ AlertDialog.Builder confirm = new AlertDialog.Builder(this);
+ confirm.setTitle(title);
+ confirm.setMessage(message);
+
+ confirm.setNegativeButton(
+ S3UploaderActivity.this.getString(R.string.ok),
+ new DialogInterface.OnClickListener() {
+
+ public void onClick(DialogInterface dialog, int which) {
+
+ S3UploaderActivity.this.finish();
+ }
+ });
+
+ confirm.show().show();
+ }
+
+ private class S3PutObjectTask extends AsyncTask<Uri, Void, S3TaskResult> {
+
+ ProgressDialog dialog;
+
+ protected void onPreExecute() {
+ dialog = new ProgressDialog(S3UploaderActivity.this);
+ dialog.setMessage(S3UploaderActivity.this
+ .getString(R.string.uploading));
+ dialog.setCancelable(false);
+ dialog.show();
+ }
+
+ protected S3TaskResult doInBackground(Uri... uris) {
+
+ if (uris == null || uris.length != 1) {
+ return null;
+ }
+
+ // The file location of the image selected.
+ Uri selectedImage = uris[0];
+
+ String[] filePathColumn = { MediaStore.Images.Media.DATA };
+
+ Cursor cursor = getContentResolver().query(selectedImage,
+ filePathColumn, null, null, null);
+ cursor.moveToFirst();
+
+ int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
+ String filePath = cursor.getString(columnIndex);
+ cursor.close();
+
+ S3TaskResult result = new S3TaskResult();
+
+ // Put the image data into S3.
+ try {
+ s3Client.createBucket(Constants.getPictureBucket());
+
+ // Content type is determined by file extension.
+ PutObjectRequest por = new PutObjectRequest(
+ Constants.getPictureBucket(), Constants.PICTURE_NAME,
+ new java.io.File(filePath));
+ s3Client.putObject(por);
+ } catch (Exception exception) {
+
+ result.setErrorMessage(exception.getMessage());
+ }
+
+ return result;
+ }
+
+ protected void onPostExecute(S3TaskResult result) {
+
+ dialog.dismiss();
+
+ if (result.getErrorMessage() != null) {
+
+ displayErrorAlert(
+ S3UploaderActivity.this
+ .getString(R.string.upload_failure_title),
+ result.getErrorMessage());
+ }
+ }
+ }
+
+ private class S3GeneratePresignedUrlTask extends
+ AsyncTask<Void, Void, S3TaskResult> {
+
+ protected S3TaskResult doInBackground(Void... voids) {
+
+ S3TaskResult result = new S3TaskResult();
+
+ try {
+ // Ensure that the image will be treated as such.
+ ResponseHeaderOverrides override = new ResponseHeaderOverrides();
+ override.setContentType("image/jpeg");
+
+ // Generate the presigned URL.
+
+ // Added an hour's worth of milliseconds to the current time.
+ Date expirationDate = new Date(
+ System.currentTimeMillis() + 3600000);
+ GeneratePresignedUrlRequest urlRequest = new GeneratePresignedUrlRequest(
+ Constants.getPictureBucket(), Constants.PICTURE_NAME);
+ urlRequest.setExpiration(expirationDate);
+ urlRequest.setResponseHeaders(override);
+
+ URL url = s3Client.generatePresignedUrl(urlRequest);
+
+ result.setUri(Uri.parse(url.toURI().toString()));
+
+ } catch (Exception exception) {
+
+ result.setErrorMessage(exception.getMessage());
+ }
+
+ return result;
+ }
+
+ protected void onPostExecute(S3TaskResult result) {
+
+ if (result.getErrorMessage() != null) {
+
+ displayErrorAlert(
+ S3UploaderActivity.this
+ .getString(R.string.browser_failure_title),
+ result.getErrorMessage());
+ } else if (result.getUri() != null) {
+
+ // Display in Browser.
+ startActivity(new Intent(Intent.ACTION_VIEW, result.getUri()));
+ }
+ }
+ }
+
+ private class S3TaskResult {
+ String errorMessage = null;
+ Uri uri = null;
+
+ public String getErrorMessage() {
+ return errorMessage;
+ }
+
+ public void setErrorMessage(String errorMessage) {
+ this.errorMessage = errorMessage;
+ }
+
+ public Uri getUri() {
+ return uri;
+ }
+
+ public void setUri(Uri uri) {
+ this.uri = uri;
+ }
+ }
+}
15 com.amazonaws.eclipse.android.sdk/resources/proguard-project.txt
View
@@ -0,0 +1,15 @@
+# These options are the minimal options for a functioning application
+# using Proguard and the AWS SDK for Android
+
+-keep class org.apache.commons.logging.** { *; }
+-keep class com.amazonaws.services.sqs.QueueUrlHandler { *; }
+-keep class com.amazonaws.javax.xml.transform.sax.* { public *; }
+-keep class com.amazonaws.javax.xml.stream.** { *; }
+-keep class com.amazonaws.services.**.model.*Exception* { *; }
+-keep class org.codehaus.** { *; }
+-keepattributes Signature,*Annotation*
+
+-dontwarn javax.xml.stream.events.**
+-dontwarn org.codehaus.jackson.**
+-dontwarn org.apache.commons.logging.impl.**
+-dontwarn org.apache.http.conn.scheme.**
67 com.amazonaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/AndroidSDKPlugin.java
View
@@ -0,0 +1,67 @@
+/*
+ * Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+package com.amazonaws.eclipse.android.sdk;
+
+import org.eclipse.ui.IStartup;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+import com.amazonaws.eclipse.android.sdk.preferences.PreferenceConstants;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class AndroidSDKPlugin extends AbstractUIPlugin implements IStartup {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "com.amazonaws.eclipse.android.sdk"; //$NON-NLS-1$
+
+ // The shared instance
+ private static AndroidSDKPlugin plugin;
+
+ /*
+ * (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;
+
+ if ( getPreferenceStore().getBoolean(PreferenceConstants.DOWNLOAD_AUTOMATICALLY) ) {
+ AndroidSdkManager.getInstance().initializeSDKInstalls();
+ }
+ }
+
+ /*
+ * (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 AndroidSDKPlugin getDefault() {
+ return plugin;
+ }
+
+ public void earlyStartup() {}
+
+}
122 com.amazonaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/AndroidSdkInstall.java
View
@@ -0,0 +1,122 @@
+/*
+ * Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+package com.amazonaws.eclipse.android.sdk;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FilenameFilter;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Properties;
+import java.util.jar.JarFile;
+import java.util.regex.Pattern;
+import java.util.zip.ZipEntry;
+
+import com.amazonaws.eclipse.sdk.ui.AbstractSdkInstall;
+import com.amazonaws.eclipse.sdk.ui.FilenameFilters;
+
+public class AndroidSdkInstall extends AbstractSdkInstall {
+
+ /** File path for SDK version/release info */
+ protected static final String VERSION_INFO_PROPERTIES_PATH = "com/amazonaws/sdk/versionInfo.properties";
+
+ /** The library directory within this SDK install */
+ protected File libDirectory;
+
+ /** The third-party library directory within this SDK install */
+ protected File thirdPartyDirectory;
+
+
+ /**
+ * Filename filter accepting only the library jar from the AWS SDK for Android.
+ */
+ public static class AndroidSdkLibraryJarFilenameFilter implements FilenameFilter {
+ private static final Pattern AWS_ANDROID_SDK_PATTERN =
+ Pattern.compile("aws-android-sdk-(\\d+|\\.)+-debug\\.jar");
+
+ public boolean accept(File dir, String name) {
+ return AWS_ANDROID_SDK_PATTERN.matcher(name).matches();
+ }
+ }
+
+
+ AndroidSdkInstall(File sdkRootDirectory) {
+ super(sdkRootDirectory);
+ libDirectory = new File(sdkRootDirectory, "lib");
+ thirdPartyDirectory = new File(sdkRootDirectory, "third-party");
+ }
+
+ public File getSdkJar() throws FileNotFoundException {
+ File[] files = libDirectory.listFiles(new AndroidSdkLibraryJarFilenameFilter());
+ if (files == null || files.length != 1) {
+ throw new FileNotFoundException(
+ "Could not uniquely identify an SDK jar in"
+ + this.libDirectory + ". Found: " + files);
+ }
+ return files[0];
+ }
+
+ /**
+ * Returns true if this object represents a valid AWS SDK for Java install (i.e.
+ * the correct libraries are present).
+ *
+ * @return True if this object represents a valid AWS SDK for Java install.
+ */
+ @Override
+ public boolean isValidSdkInstall() {
+ return sdkRootDirectory.exists() && libDirectory.exists() && thirdPartyDirectory.exists();
+ }
+
+ /**
+ * Returns a list of all the third-party dependency Jar files for this AWS
+ * SDK for Java.
+ * <p>
+ * The Android SDK relies heavily on the third-party libraries that are
+ * present in the Android platform, and bundles anything else in the main
+ * SDK jar, so because of that, there are no third-party libraries required
+ * to be added in addition to the main Android SDK jar.
+ *
+ * @return A list of all the third-party dependency Jar files for this AWS
+ * SDK for Java.
+ */
+ public List<File> getThirdPartyJars() {
+ return Collections.emptyList();
+ }
+
+ /**
+ * Returns the version identifier for this SDK install, if known.
+ *
+ * @return The version identifier for this SDK install, if known.
+ */
+ public String getVersion() {
+ try {
+ JarFile jarFile = new JarFile(getSdkJar());
+ ZipEntry zipEntry = jarFile.getEntry(VERSION_INFO_PROPERTIES_PATH);
+
+ Properties properties = new Properties();
+ properties.load(jarFile.getInputStream(zipEntry));
+
+ return properties.getProperty("version");
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
+ return "Unknown";
+ }
+
+}
67 com.amazonaws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/AndroidSdkManager.java
View
@@ -0,0 +1,67 @@
+/*
+ * Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+package com.amazonaws.eclipse.android.sdk;
+
+import java.io.File;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.dialogs.PreferencesUtil;
+
+import com.amazonaws.eclipse.android.sdk.preferences.AndroidSDKPreferencePage;
+import com.amazonaws.eclipse.android.sdk.preferences.PreferenceConstants;
+import com.amazonaws.eclipse.sdk.ui.AbstractSdkManager;
+import com.amazonaws.eclipse.sdk.ui.SdkInstallFactory;
+
+public class AndroidSdkManager extends AbstractSdkManager<AndroidSdkInstall> {
+ private static AndroidSdkManager instance;
+
+ private AndroidSdkManager() {
+ super("AWS SDK for Android", "aws-android-sdk", "aws-android-sdk", new AndroidSdkInstallFactory());
+ }
+
+ public static AndroidSdkManager getInstance() {
+ if ( instance == null ) instance = new AndroidSdkManager();
+ return instance;
+ }
+
+
+ public static class AndroidSdkInstallFactory implements SdkInstallFactory<AndroidSdkInstall> {
+ public AndroidSdkInstall createSdkInstallFromDisk(File sdkRootDirectory) {
+ return new AndroidSdkInstall(sdkRootDirectory);
+ }
+ }
+
+ /**
+ * Returns the directory where SDKs are installed, configured by a
+ * preference.
+ */
+ protected File getSDKInstallDir() {
+ String path = AndroidSDKPlugin.getDefault().getPreferenceStore().getString(PreferenceConstants.DOWNLOAD_DIRECTORY);
+ return new File(path);
+ }
+
+ protected Action getHyperlinkAction() {
+
+ return new Action("Configure SDK Download Behavior") {
+ public void run() {
+ PreferencesUtil.createPreferenceDialogOn(Display.getDefault().getActiveShell(),
+ AndroidSDKPreferencePage.ID, new String[] { AndroidSDKPreferencePage.ID }, null).open();
+ }
+ };
+
+ }
+
+}
157 ...ws.eclipse.android.sdk/src/com/amazonaws/eclipse/android/sdk/classpath/AndroidSdkClasspathContainer.java
View
@@ -0,0 +1,157 @@
+/*
+ * Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the Li