Skip to content

Commit c6dcc36

Browse files
committed
Merge branch 'develop.next' into hanxiao/eap
2 parents 9109dbb + e04d8b3 commit c6dcc36

File tree

143 files changed

+1954
-853
lines changed

Some content is hidden

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

143 files changed

+1954
-853
lines changed

PluginsAndFeatures/AddLibrary/AzureLibraries/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<parent>
2929
<groupId>com.microsoft.azuretools</groupId>
3030
<artifactId>utils</artifactId>
31-
<version>3.50.0</version>
31+
<version>3.51.0-SNAPSHOT</version>
3232
</parent>
3333
<groupId>com.microsoft.azuretools</groupId>
3434
<artifactId>com.microsoft.azuretools.sdk.lib</artifactId>
@@ -38,7 +38,7 @@
3838
<organization><name>Microsoft Corp.</name></organization>
3939

4040
<properties>
41-
<azuretool.version>3.50.0</azuretool.version>
41+
<azuretool.version>3.51.0-SNAPSHOT</azuretool.version>
4242
<azuretool.sdk.version>3.25.0.qualifier</azuretool.sdk.version>
4343
</properties>
4444
<dependencies>

PluginsAndFeatures/azure-toolkit-for-intellij/.idea/gradle.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
plugins {
2+
id 'java'
3+
id "org.jetbrains.intellij"
4+
}
5+
6+
group 'com.microsoft.azuretools'
7+
8+
intellij {
9+
version = intellij_version
10+
downloadSources = Boolean.valueOf(true)
11+
}
12+
13+
repositories {
14+
mavenLocal()
15+
mavenCentral()
16+
}
17+
18+
dependencies {
19+
// https://mvnrepository.com/artifact/org.projectlombok/lombok
20+
compileOnly 'org.projectlombok:lombok:1.18.8'
21+
annotationProcessor 'org.projectlombok:lombok:1.18.8'
22+
23+
implementation "com.microsoft.azure:azure-toolkit-common-lib:0.5.0-SNAPSHOT"
24+
}

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/toolkit/intellij/common/AzureFormInputComponent.java renamed to PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/AzureFormInputComponent.java

File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*/
5+
6+
package com.microsoft.azure.toolkit.intellij.common;
7+
8+
import com.microsoft.azure.toolkit.lib.common.exception.AzureToolkitRuntimeException;
9+
import com.microsoft.azure.toolkit.lib.common.form.AzureForm;
10+
import com.microsoft.azure.toolkit.lib.common.form.AzureFormInput;
11+
12+
import java.util.Collections;
13+
import java.util.List;
14+
15+
public interface AzureFormPanel<T> extends AzureForm<T> {
16+
default void setVisible(boolean visible) {
17+
// do nothing
18+
}
19+
20+
@Override
21+
default T getData() {
22+
throw new AzureToolkitRuntimeException("method not implemeted");
23+
}
24+
25+
@Override
26+
default List<AzureFormInput<?>> getInputs() {
27+
return Collections.emptyList();
28+
}
29+
30+
// CHECKSTYLE IGNORE check FOR NEXT 1 LINES
31+
default void $$$setupUI$$$() {
32+
}
33+
}

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/toolkit/intellij/common/SwingUtils.java renamed to PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/SwingUtils.java

File renamed without changes.

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/toolkit/intellij/common/TextDocumentListenerAdapter.java renamed to PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/TextDocumentListenerAdapter.java

File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<idea-plugin>
2+
<extensionPoints>
3+
</extensionPoints>
4+
<extensions defaultExtensionNs="com.intellij">
5+
</extensions>
6+
<actions>
7+
</actions>
8+
</idea-plugin>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
plugins {
2+
id 'java'
3+
id "org.jetbrains.intellij"
4+
}
5+
6+
group 'com.microsoft.azuretools'
7+
8+
intellij {
9+
version = intellij_version
10+
downloadSources = Boolean.valueOf(true)
11+
plugins = ['java', 'maven', 'gradle']
12+
}
13+
14+
repositories {
15+
mavenLocal()
16+
mavenCentral()
17+
}
18+
19+
dependencies {
20+
// https://mvnrepository.com/artifact/org.projectlombok/lombok
21+
compileOnly 'org.projectlombok:lombok:1.18.8'
22+
annotationProcessor 'org.projectlombok:lombok:1.18.8'
23+
24+
compileOnly 'org.jetbrains:annotations:20.1.0'
25+
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.2', {
26+
exclude group: "com.fasterxml.jackson", module: "jackson-bom"
27+
}
28+
29+
implementation project(':azure-intellij-plugin-lib')
30+
implementation "com.microsoft.azure:azure-toolkit-common-lib:0.5.0-SNAPSHOT"
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*/
5+
6+
package com.microsoft.azure.toolkit.intellij.azuresdk.dependencesurvey.activity;
7+
8+
import com.intellij.openapi.application.ApplicationManager;
9+
import com.intellij.openapi.application.PreloadingActivity;
10+
import com.intellij.openapi.progress.ProgressIndicator;
11+
import com.microsoft.azure.toolkit.intellij.azuresdk.service.AzureSdkLibraryService;
12+
import org.codehaus.plexus.util.ExceptionUtils;
13+
import org.slf4j.Logger;
14+
import org.slf4j.LoggerFactory;
15+
16+
import java.io.IOException;
17+
18+
public class AzurePreloadingActivity extends PreloadingActivity {
19+
private static final Logger logger = LoggerFactory.getLogger(AzurePreloadingActivity.class);
20+
21+
@Override
22+
public void preload(@org.jetbrains.annotations.NotNull final ProgressIndicator indicator) {
23+
// Using progress manager as azure task manager is not initialized
24+
ApplicationManager.getApplication().executeOnPooledThread(() -> {
25+
try {
26+
AzureSdkLibraryService.getInstance().reloadAzureSDKArtifacts();
27+
} catch (IOException e) {
28+
logger.warn(ExceptionUtils.getStackTrace(e)); // preload exception should not block plugin
29+
}
30+
});
31+
}
32+
}

0 commit comments

Comments
 (0)