@@ -87,16 +87,17 @@ protected void onRemove(ContributedLibrary library) {
87
87
public LibraryManagerUI (Frame parent ) {
88
88
super (parent , "Library Manager" , Dialog .ModalityType .APPLICATION_MODAL , _ ("No internet connection available, the list of available libraries is not complete. You will be able to manage only the libraries you've already installed." ));
89
89
90
- filtersContainer .add (new JLabel (_ ("Category: " )), 1 );
90
+ filtersContainer .add (new JLabel (_ ("Topic " )), 1 );
91
91
filtersContainer .remove (2 );
92
92
93
93
typeChooser = new JComboBox ();
94
94
typeChooser .setMaximumRowCount (20 );
95
95
typeChooser .setEnabled (false );
96
96
97
97
filtersContainer .add (Box .createHorizontalStrut (5 ), 0 );
98
- filtersContainer .add (new JLabel (_ ("Type:" )), 1 );
99
- filtersContainer .add (typeChooser , 2 );
98
+ filtersContainer .add (new JLabel (_ ("Type" )), 1 );
99
+ filtersContainer .add (Box .createHorizontalStrut (5 ), 2 );
100
+ filtersContainer .add (typeChooser , 3 );
100
101
}
101
102
102
103
protected final ActionListener typeChooserActionListener = new ActionListener () {
@@ -136,8 +137,6 @@ public void setIndexer(LibrariesIndexer indexer) {
136
137
137
138
// Load categories
138
139
categoryChooser .addItem (new DropdownAllItem ());
139
- categoryChooser .addItem (new DropdownInstalledContributionItem ());
140
- categoryChooser .addItem (new DropdownBuiltInLibrariesItem ());
141
140
Collection <String > categories = indexer .getIndex ().getCategories ();
142
141
for (String category : categories ) {
143
142
categoryChooser .addItem (new DropdownLibraryOfCategoryItem (category ));
@@ -151,13 +150,13 @@ public void setIndexer(LibrariesIndexer indexer) {
151
150
typeFilter = null ;
152
151
typeChooser .removeAllItems ();
153
152
typeChooser .addItem (new DropdownAllItem ());
153
+ typeChooser .addItem (new DropdownInstalledContributionItem ());
154
154
Collection <String > types = indexer .getIndex ().getTypes ();
155
155
for (String type : types ) {
156
156
typeChooser .addItem (new DropdownLibraryOfTypeItem (type ));
157
157
}
158
158
typeChooser .setEnabled (typeChooser .getItemCount () > 1 );
159
159
typeChooser .addActionListener (typeChooserActionListener );
160
- typeChooser .setSelectedIndex (1 );
161
160
162
161
filterField .setEnabled (contribModel .getRowCount () > 0 );
163
162
0 commit comments