Skip to content

Commit 01c0aba

Browse files
cmaglielmihalkovic
authored andcommitted
Rename Contributed*TableCell to Contributed*TableCellJPanel
1 parent 8620e37 commit 01c0aba

6 files changed

+10
-10
lines changed

Diff for: app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryTableCellEditor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
public class ContributedLibraryTableCellEditor extends InstallerTableCell {
5555

5656
private ContributedLibraryReleases editorValue;
57-
private ContributedLibraryTableCell editorCell;
57+
private ContributedLibraryTableCellJPanel editorCell;
5858

5959
@Override
6060
public Object getCellEditorValue() {
@@ -67,7 +67,7 @@ public Component getTableCellEditorComponent(JTable table, Object value,
6767
int column) {
6868
editorValue = (ContributedLibraryReleases) value;
6969

70-
editorCell = new ContributedLibraryTableCell(table, value, true);
70+
editorCell = new ContributedLibraryTableCellJPanel(table, value, true);
7171
editorCell.installButton
7272
.addActionListener(e -> onInstall(editorValue.getSelected(),
7373
editorValue.getInstalled()));

Diff for: app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryTableCell.java renamed to app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryTableCellJPanel.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import cc.arduino.contributions.ui.InstallerTableCell;
2828
import processing.app.Base;
2929

30-
public class ContributedLibraryTableCell extends JPanel {
30+
public class ContributedLibraryTableCellJPanel extends JPanel {
3131

3232
final JButton installButton;
3333
final Component installButtonPlaceholder;
@@ -38,7 +38,7 @@ public class ContributedLibraryTableCell extends JPanel {
3838
final JPanel inactiveButtonsPanel;
3939
final JLabel statusLabel;
4040

41-
public ContributedLibraryTableCell(JTable parentTable, Object value,
41+
public ContributedLibraryTableCellJPanel(JTable parentTable, Object value,
4242
boolean isSelected) {
4343
super();
4444
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));

Diff for: app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryTableCellRenderer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public Component getTableCellRendererComponent(JTable table, Object value,
4242
boolean isSelected,
4343
boolean hasFocus, int row,
4444
int column) {
45-
ContributedLibraryTableCell cell = new ContributedLibraryTableCell(table,
45+
ContributedLibraryTableCellJPanel cell = new ContributedLibraryTableCellJPanel(table,
4646
value, isSelected);
4747
cell.setButtonsVisible(false);
4848

Diff for: app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellEditor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
@SuppressWarnings("serial")
5252
public class ContributedPlatformTableCellEditor extends InstallerTableCell {
5353

54-
private ContributedPlatformTableCell cell;
54+
private ContributedPlatformTableCellJPanel cell;
5555
private ContributedPlatformReleases value;
5656

5757
@Override
@@ -65,7 +65,7 @@ public Component getTableCellEditorComponent(JTable table, Object _value,
6565
int column) {
6666
value = (ContributedPlatformReleases) _value;
6767

68-
cell = new ContributedPlatformTableCell();
68+
cell = new ContributedPlatformTableCellJPanel();
6969
cell.installButton.addActionListener(e -> onInstall(value.getSelected(),
7070
value.getInstalled()));
7171
cell.removeButton.addActionListener(e -> onRemove(value.getInstalled()));

Diff for: app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCell.java renamed to app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellJPanel.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
import processing.app.Base;
6060

6161
@SuppressWarnings("serial")
62-
public class ContributedPlatformTableCell extends JPanel {
62+
public class ContributedPlatformTableCellJPanel extends JPanel {
6363

6464
final JButton installButton;
6565
final JButton removeButton;
@@ -72,7 +72,7 @@ public class ContributedPlatformTableCell extends JPanel {
7272
final JPanel inactiveButtonsPanel;
7373
final JLabel statusLabel;
7474

75-
public ContributedPlatformTableCell() {
75+
public ContributedPlatformTableCellJPanel() {
7676
super();
7777
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
7878

Diff for: app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCellRenderer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public Component getTableCellRendererComponent(JTable table, Object value,
4242
boolean isSelected,
4343
boolean hasFocus, int row,
4444
int column) {
45-
ContributedPlatformTableCell cell = new ContributedPlatformTableCell();
45+
ContributedPlatformTableCellJPanel cell = new ContributedPlatformTableCellJPanel();
4646
cell.setButtonsVisible(false);
4747
cell.update(table, value, isSelected, false);
4848

0 commit comments

Comments
 (0)