Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NetBeans
Apache NetBeans
Commits
21726744
Unverified
Commit
21726744
authored
May 12, 2021
by
Geertjan Wielenga
Committed by
GitHub
May 12, 2021
Browse files
Merge pull request #2952 from apache/delivery
Sync release124 with delivery for 12.4 rc4
parents
064136c6
1e006a8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
java/java.disco/src/org/netbeans/modules/java/disco/AdvancedPanel.java
View file @
21726744
...
...
@@ -81,7 +81,15 @@ public abstract class AdvancedPanel extends javax.swing.JPanel {
}
private
ComboBoxModel
<
Distribution
>
createDistributionComboboxModel
()
{
Distribution
[]
distributions
=
{
Distribution
.
NONE
,
Distribution
.
AOJ
,
Distribution
.
CORRETTO
,
Distribution
.
DRAGONWELL
,
Distribution
.
LIBERICA
,
Distribution
.
OJDK_BUILD
,
Distribution
.
SAP_MACHINE
,
Distribution
.
ZULU
};
List
<
Distribution
>
allDistros
=
Distribution
.
getDistributions
();
allDistros
.
sort
((
o1
,
o2
)
->
{
return
o1
.
getUiString
().
compareTo
(
o2
.
getUiString
());
});
List
<
Distribution
>
distros
=
new
ArrayList
<>(
1
+
allDistros
.
size
());
distros
.
add
(
Distribution
.
NONE
);
distros
.
addAll
(
allDistros
);
Distribution
[]
distributions
=
distros
.
toArray
(
new
Distribution
[
0
]);
return
new
DefaultComboBoxModel
<>(
distributions
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment