Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Commit 676b728

Browse files
author
zhangzhx
committed
AWS Toolkit for Eclipse: v201712181839 Release.
1 parent 7f6ef6d commit 676b728

88 files changed

Lines changed: 4852 additions & 645 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
{
22
"current": [
3+
"**Support AWS SAM Local to locally debug Lambda functions and AWS Gateway**",
4+
"",
5+
"* Debug Lambda Function",
6+
"![debug-lambda-function](https://s3.amazonaws.com/aws-eclipse-toolkit/eclipse/release/debug-lambda-function.gif)",
7+
"",
8+
"* Debug API Gateway",
9+
"![debug-api-gateway](https://s3.amazonaws.com/aws-eclipse-toolkit/eclipse/release/debug-api-gateway.gif)"
10+
],
11+
"v201710260046": [
312
"* Update Java SDK samples."
413
],
514
"v201710231659": [

bundles/com.amazonaws.eclipse.codecommit/src/com/amazonaws/eclipse/codecommit/widgets/GitCredentialsComposite.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
import org.eclipse.core.databinding.DataBindingContext;
3232
import org.eclipse.core.databinding.beans.PojoObservables;
33+
import org.eclipse.core.databinding.beans.PojoProperties;
3334
import org.eclipse.core.databinding.validation.IValidator;
3435
import org.eclipse.jface.dialogs.MessageDialog;
3536
import org.eclipse.swt.SWT;
@@ -117,19 +118,13 @@ private void createUsernamePasswordSection() {
117118
+ "Toolkit for Eclipse to create a new set of Git credentials under the current selected account. see "
118119
+ "<a href=\"%s\">CreateServiceSpecificCredential</a> for more information.", GIT_CREDENTIALS_DOC, CREATE_SERVICE_SPECIFIC_CREDENTIALS_DOC), 2);
119120

120-
usernameComplex = TextComplex.builder()
121-
.composite(this)
122-
.dataBindingContext(dataBindingContext)
123-
.pojoObservableValue(PojoObservables.observeValue(dataModel, P_USERNAME))
121+
usernameComplex = TextComplex.builder(this, dataBindingContext, PojoObservables.observeValue(dataModel, P_USERNAME))
124122
.addValidator(usernameValidator == null ? new NotEmptyValidator("User name must be provided!") : usernameValidator)
125123
.labelValue("User name:")
126124
.defaultValue(dataModel.getUsername())
127125
.build();
128126

129-
passwordComplex = TextComplex.builder()
130-
.composite(this)
131-
.dataBindingContext(dataBindingContext)
132-
.pojoObservableValue(PojoObservables.observeValue(dataModel, P_PASSWORD))
127+
passwordComplex = TextComplex.builder(this, dataBindingContext, PojoObservables.observeValue(dataModel, P_PASSWORD))
133128
.addValidator(passwordValidator == null ? new NotEmptyValidator("Password must be provided!") : passwordValidator)
134129
.labelValue("Password: ")
135130
.defaultValue(dataModel.getPassword())

bundles/com.amazonaws.eclipse.core/META-INF/MANIFEST.MF

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Export-Package: com.amazonaws.eclipse.core,
1616
com.amazonaws.eclipse.core.accounts,
1717
com.amazonaws.eclipse.core.accounts.preferences,
1818
com.amazonaws.eclipse.core.accounts.profiles,
19+
com.amazonaws.eclipse.core.ansi,
1920
com.amazonaws.eclipse.core.diagnostic.utils,
2021
com.amazonaws.eclipse.core.egit,
2122
com.amazonaws.eclipse.core.egit.jobs,
@@ -60,6 +61,7 @@ Require-Bundle: org.eclipse.swt,
6061
org.eclipse.m2e.archetype.common;bundle-version="1.5.1",
6162
org.eclipse.m2e.maven.runtime;bundle-version="1.5.1",
6263
org.eclipse.ui.ide,
64+
org.eclipse.ui.console,
6365
org.eclipse.egit;bundle-version="3.4.2",
6466
org.eclipse.egit.core;bundle-version="3.4.2",
6567
org.eclipse.egit.doc;bundle-version="3.4.2",
@@ -68,7 +70,12 @@ Require-Bundle: org.eclipse.swt,
6870
org.eclipse.core.variables;bundle-version="3.2.800",
6971
org.eclipse.equinox.security;bundle-version="1.2.0",
7072
org.eclipse.core.databinding.property,
71-
com.amazonaws.eclipse.javasdk;bundle-version="1.11.130"
73+
com.amazonaws.eclipse.javasdk;bundle-version="1.11.130",
74+
org.eclipse.m2e.launching
7275
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
7376
Bundle-ActivationPolicy: lazy
74-
Import-Package: org.eclipse.jdt.launching
77+
Import-Package: org.eclipse.debug.core,
78+
org.eclipse.debug.core.model,
79+
org.eclipse.debug.ui,
80+
org.eclipse.jdt.annotation,
81+
org.eclipse.jdt.launching

bundles/com.amazonaws.eclipse.core/etc/regions.xml

Lines changed: 60 additions & 0 deletions
Large diffs are not rendered by default.
407 Bytes
Loading
3.25 KB
Loading
-1.99 KB
Loading

bundles/com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/AWSClientFactory.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -570,11 +570,7 @@ private <T extends AmazonWebServiceClient> T createClient(String endpoint, Class
570570
// Low layer method for building a service client by using the client builder.
571571
@SuppressWarnings("unchecked")
572572
private <T> T createClientByRegion(AwsSyncClientBuilder<? extends AwsSyncClientBuilder, T> builder, String region, String endpoint) {
573-
if (region.equals("local")) {
574-
builder.withEndpointConfiguration(new EndpointConfiguration(endpoint, region));
575-
} else {
576-
builder.withRegion(region);
577-
}
573+
builder.withEndpointConfiguration(new EndpointConfiguration(endpoint, region));
578574
Object client = builder
579575
.withCredentials(new AWSStaticCredentialsProvider(getAwsCredentials()))
580576
.withClientConfiguration(createClientConfiguration(endpoint))

bundles/com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/AwsToolkitCore.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,9 @@ private static void registerCustomErrorSupport() {
523523
Policy.setErrorSupportProvider(awsProvider);
524524
}
525525

526-
// TODO: any better way to check debug mode?
527-
public static final boolean DEBUG_MODE = false;
526+
public boolean isDebugMode() {
527+
return getBundleVersion().contains("qualifier");
528+
}
528529

529530
private ToolkitAnalyticsManager initializeToolkitAnalyticsManager() {
530531

@@ -535,7 +536,7 @@ private ToolkitAnalyticsManager initializeToolkitAnalyticsManager() {
535536

536537
if (enabled) {
537538
try {
538-
if (DEBUG_MODE) {
539+
if (isDebugMode()) {
539540
toReturn = new ToolkitAnalyticsManagerImpl(
540541
AWSCognitoCredentialsProvider.TEST_PROVIDER,
541542
ClientContextConfig.TEST_CONFIG);
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/**
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
package com.amazonaws.eclipse.core.ansi;
15+
16+
//From Wikipedia, http://en.wikipedia.org/wiki/ANSI_escape_code
17+
public class AnsiCommands {
18+
public static final int COMMAND_ATTR_RESET = 0; // Reset / Normal (all attributes off)
19+
public static final int COMMAND_ATTR_INTENSITY_BRIGHT = 1; // Bright (increased intensity) or Bold
20+
public static final int COMMAND_ATTR_INTENSITY_FAINT = 2; // Faint (decreased intensity) (not widely supported)
21+
public static final int COMMAND_ATTR_ITALIC = 3; // Italic: on not widely supported. Sometimes treated as inverse.
22+
public static final int COMMAND_ATTR_UNDERLINE = 4; // Underline: Single
23+
public static final int COMMAND_ATTR_BLINK_SLOW = 5; // Blink: Slow (less than 150 per minute)
24+
public static final int COMMAND_ATTR_BLINK_FAST = 6; // Blink: Rapid (MS-DOS ANSI.SYS; 150 per minute or more; not widely supported)
25+
public static final int COMMAND_ATTR_NEGATIVE_ON = 7; // Image: Negative (inverse or reverse; swap foreground and background)
26+
public static final int COMMAND_ATTR_CONCEAL_ON = 8; // Conceal (not widely supported)
27+
public static final int COMMAND_ATTR_CROSSOUT_ON = 9; // Crossed-out (Characters legible, but marked for deletion. Not widely supported.)
28+
public static final int COMMAND_ATTR_UNDERLINE_DOUBLE = 21; // Bright/Bold: off or Underline: Double (bold off not widely supported, double underline hardly ever)
29+
public static final int COMMAND_ATTR_INTENSITY_NORMAL = 22; // Normal color or intensity (neither bright, bold nor faint)
30+
public static final int COMMAND_ATTR_ITALIC_OFF = 23; // Not italic, not Fraktur
31+
public static final int COMMAND_ATTR_UNDERLINE_OFF = 24; // Underline: None (not singly or doubly underlined)
32+
public static final int COMMAND_ATTR_BLINK_OFF = 25; // Blink: off
33+
public static final int COMMAND_ATTR_NEGATIVE_OFF = 27; // Image: Positive
34+
public static final int COMMAND_ATTR_CONCEAL_OFF = 28; // Reveal (conceal off)
35+
public static final int COMMAND_ATTR_CROSSOUT_OFF = 29; // Not crossed out
36+
37+
// Extended colors. Next arguments are 5;<index_0_255> or 2;<red_0_255>;<green_0_255>;<blue_0_255>
38+
public static final int COMMAND_HICOLOR_FOREGROUND = 38; // Set text color
39+
public static final int COMMAND_HICOLOR_BACKGROUND = 48; // Set background color
40+
41+
public static final int COMMAND_COLOR_FOREGROUND_RESET = 39; // Default text color
42+
public static final int COMMAND_COLOR_BACKGROUND_RESET = 49; // Default background color
43+
44+
public static final int COMMAND_COLOR_FOREGROUND_FIRST = 30; // First text color
45+
public static final int COMMAND_COLOR_FOREGROUND_LAST = 37; // Last text color
46+
public static final int COMMAND_COLOR_BACKGROUND_FIRST = 40; // First background text color
47+
public static final int COMMAND_COLOR_BACKGROUND_LAST = 47; // Last background text color
48+
49+
public static final int COMMAND_ATTR_FRAMED_ON = 51; // Framed
50+
public static final int COMMAND_ATTR_FRAMED_OFF = 54; // Not framed or encircled
51+
52+
public static final int COMMAND_HICOLOR_FOREGROUND_FIRST = 90; // First text color
53+
public static final int COMMAND_HICOLOR_FOREGROUND_LAST = 97; // Last text color
54+
public static final int COMMAND_HICOLOR_BACKGROUND_FIRST = 100; // First background text color
55+
public static final int COMMAND_HICOLOR_BACKGROUND_LAST = 107; // Last background text color
56+
57+
public static final int COMMAND_COLOR_INTENSITY_DELTA = 8; // Last background text color
58+
}

0 commit comments

Comments
 (0)