@@ -67,8 +67,6 @@ public class ContributedLibraryTableCell extends InstallerTableCell {
6767
6868 private JPanel panel ;
6969 private JButton installButton ;
70- private JButton removeButton ;
71- private Component removeButtonPlaceholder ;
7270 private Component installButtonPlaceholder ;
7371 private JComboBox downgradeChooser ;
7472 private JComboBox versionToInstallChooser ;
@@ -90,18 +88,6 @@ public void actionPerformed(ActionEvent e) {
9088 installButtonPlaceholder = Box .createRigidArea (new Dimension (width , 1 ));
9189 }
9290
93- {
94- removeButton = new JButton (_ ("Remove" ));
95- removeButton .addActionListener (new ActionListener () {
96- @ Override
97- public void actionPerformed (ActionEvent e ) {
98- onRemove (editorValue .getInstalled ());
99- }
100- });
101- int width = removeButton .getPreferredSize ().width ;
102- removeButtonPlaceholder = Box .createRigidArea (new Dimension (width , 1 ));
103- }
104-
10591 downgradeButton = new JButton (_ ("Install" ));
10692 downgradeButton .addActionListener (new ActionListener () {
10793 @ Override
@@ -154,8 +140,6 @@ public void itemStateChanged(ItemEvent e) {
154140 buttonsPanel .add (Box .createHorizontalStrut (5 ));
155141 buttonsPanel .add (installButton );
156142 buttonsPanel .add (Box .createHorizontalStrut (5 ));
157- buttonsPanel .add (removeButton );
158- buttonsPanel .add (Box .createHorizontalStrut (5 ));
159143 buttonsPanel .add (Box .createHorizontalStrut (15 ));
160144
161145 panel .add (buttonsPanel );
@@ -343,8 +327,6 @@ private Component getUpdatedCellComponent(Object value, boolean isSelected, int
343327 }
344328 installButton .setVisible (installable || upgradable );
345329 installButtonPlaceholder .setVisible (!(installable || upgradable ));
346- removeButton .setVisible (removable );
347- removeButtonPlaceholder .setVisible (!removable );
348330
349331 String name = selected .getName ();
350332 String author = selected .getAuthor ();
@@ -444,7 +426,6 @@ public void setEnabled(boolean enabled) {
444426
445427 public void enable (boolean enabled ) {
446428 installButton .setEnabled (enabled );
447- removeButton .setEnabled (enabled );
448429 }
449430
450431 public void setStatus (String status ) {
0 commit comments