Skip to content

Commit e6797e8

Browse files
authored
Merge pull request #1913 from apache/master
sync master to release 113 branch for beta3
2 parents 090a214 + f79f2a6 commit e6797e8

File tree

59 files changed

+1435
-967
lines changed

Some content is hidden

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

59 files changed

+1435
-967
lines changed

groovy/gradle.java/src/org/netbeans/modules/gradle/java/newproject/SimpleApplicationProjectWizard.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private static Map<String, Object> initParams() {
5353
Map<String, Object> params = new HashMap<>();
5454
params.put(PROP_PLUGINS, Arrays.asList("java", "jacoco", "application"));
5555
params.put(PROP_DEPENDENCIES, Arrays.asList(
56-
"testCompile 'junit:junit:4.12'"
56+
"testImplementation 'junit:junit:4.13'"
5757
));
5858
return params;
5959
}

groovy/gradle.java/src/org/netbeans/modules/gradle/java/newproject/SimpleLibraryProjectWizard.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public SimpleLibraryProjectWizard() {
4444

4545
private static Map<String, Object> initParams() {
4646
Map<String, Object> params = new HashMap<>();
47-
params.put(PROP_PLUGINS, Arrays.asList("java", "jacoco", "maven"));
47+
params.put(PROP_PLUGINS, Arrays.asList("java", "jacoco", "maven-publish"));
4848
params.put(PROP_DEPENDENCIES, Arrays.asList(
49-
"testCompile 'junit:junit:4.12'"
49+
"testImplementation 'junit:junit:4.13'"
5050
));
5151
return params;
5252
}

groovy/gradle.javaee/src/org/netbeans/modules/gradle/javaee/web/newproject/ServerSelectionPanelVisual.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.netbeans.modules.j2ee.deployment.devmodules.api.J2eePlatform;
3535
import org.netbeans.modules.j2ee.deployment.devmodules.api.ServerManager;
3636
import org.openide.WizardDescriptor;
37+
import org.openide.util.NbBundle.Messages;
3738

3839
/**
3940
*
@@ -127,6 +128,12 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
127128
);
128129
}// </editor-fold>//GEN-END:initComponents
129130

131+
@Override
132+
@Messages("ServerSelectionPanel=Settings")
133+
public String getName() {
134+
return Bundle.ServerSelectionPanel();
135+
}
136+
130137
private void btAddServerButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddServerButtonActionPerformed
131138
String newServerId = ServerManager.showAddServerInstanceWizard();
132139
if (newServerId != null) {

groovy/gradle.javaee/src/org/netbeans/modules/gradle/javaee/web/newproject/WebApplicationProjectWizard.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected void collectOperations(TemplateOperation ops, Map<String, Object> para
8585
List<String> dependencies = new LinkedList<>();
8686
dependencies.addAll(webDependencies(profileId));
8787
dependencies.add("");
88-
dependencies.add("testCompile 'junit:junit:4.12'");
88+
dependencies.add("testImplementation 'junit:junit:4.13'");
8989
params.put(PROP_DEPENDENCIES, dependencies);
9090

9191
String projectName = (String) params.get(PROP_NAME);

groovy/gradle/src/org/netbeans/modules/gradle/spi/GradleFiles.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ private void searchBuildScripts() {
139139
}
140140

141141
private void searchWrapper() {
142-
File w = new File(rootDir, Utilities.isWindows() ? "gradlew.bat" : "gradlew");
142+
File w = new File(rootDir, WRAPPER_PROPERTIES);
143143
if (w.isFile()) {
144-
gradlew = w;
145-
wrapperProperties = new File(rootDir, WRAPPER_PROPERTIES);
144+
gradlew = new File(rootDir, Utilities.isWindows() ? "gradlew.bat" : "gradlew");
145+
wrapperProperties = w;
146146
}
147147
}
148148

ide/defaults/src/org/netbeans/modules/defaults/BlueTheme-editor.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,6 @@
6767
<fontcolor name="coverage-inferred" bgColor="1F4F40"/>
6868
<fontcolor name="coverage-partial" bgColor="909040"/>
6969

70+
<fontcolor name="remove-surround-code-delete" foreColor="ff32538C" bgColor="ff16253F"/>
71+
<fontcolor name="remove-surround-code-remain" bgColor="ff0C3F33"/>
7072
</fontscolors>

ide/defaults/src/org/netbeans/modules/defaults/CityLights-editor.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,6 @@
4848
<fontcolor name="trailing-whitespace"/>
4949
<fontcolor name="nbeditor-bracesMatching-sidebar"/>
5050
<fontcolor name="indent-guide-lines" foreColor="white"/>
51+
<fontcolor name="remove-surround-code-delete" foreColor="lightGray" bgColor="ff333333"/>
52+
<fontcolor name="remove-surround-code-remain" bgColor="ff3E5431"/>
5153
</fontscolors>

ide/defaults/src/org/netbeans/modules/defaults/NetBeans55-editor.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,6 @@
4747
<fontcolor name="indent-whitespace"/>
4848
<fontcolor name="trailing-whitespace"/>
4949
<fontcolor name="nbeditor-bracesMatching-sidebar"/>
50+
<fontcolor name="remove-surround-code-delete" foreColor="ffB4B4B4" bgColor="ffF5F5F5"/>
51+
<fontcolor name="remove-surround-code-remain" bgColor="ffCCFFCC"/>
5052
</fontscolors>

ide/defaults/src/org/netbeans/modules/defaults/NetBeansEarth-editor.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,6 @@
4747
<fontcolor name="indent-whitespace"/>
4848
<fontcolor name="trailing-whitespace"/>
4949
<fontcolor name="nbeditor-bracesMatching-sidebar"/>
50+
<fontcolor name="remove-surround-code-delete" foreColor="ffB4B4B4" bgColor="ffF5F5F5"/>
51+
<fontcolor name="remove-surround-code-remain" bgColor="ffCCFFCC"/>
5052
</fontscolors>

ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import java.util.Map;
3434
import java.util.Map.Entry;
3535
import java.util.WeakHashMap;
36+
import java.util.concurrent.CompletableFuture;
3637
import java.util.concurrent.ExecutionException;
3738
import java.util.concurrent.TimeUnit;
3839
import java.util.concurrent.TimeoutException;
@@ -203,9 +204,10 @@ private static InitializeResult initServer(Process p, LanguageServer server, Fil
203204
wcc.getWorkspaceEdit().setDocumentChanges(true);
204205
wcc.getWorkspaceEdit().setResourceOperations(Arrays.asList(ResourceOperationKind.Create, ResourceOperationKind.Delete, ResourceOperationKind.Rename));
205206
initParams.setCapabilities(new ClientCapabilities(wcc, tdcc, null));
207+
CompletableFuture<InitializeResult> initResult = server.initialize(initParams);
206208
while (true) {
207209
try {
208-
return server.initialize(initParams).get(100, TimeUnit.MILLISECONDS);
210+
return initResult.get(100, TimeUnit.MILLISECONDS);
209211
} catch (TimeoutException ex) {
210212
if (p != null && !p.isAlive()) {
211213
InitializeResult emptyResult = new InitializeResult();

0 commit comments

Comments
 (0)