mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
getItem returns Item typed object +review
This commit is contained in:
@@ -202,7 +202,7 @@ public class ListTableModel<Item> extends TableViewModel<Item> implements ItemRe
|
||||
}
|
||||
}
|
||||
|
||||
public Object getItem(final int rowIndex) {
|
||||
return getItems().get(rowIndex);
|
||||
public Item getItem(final int rowIndex) {
|
||||
return myItems.get(rowIndex);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -44,7 +44,7 @@ import java.util.List;
|
||||
* @author yole
|
||||
*/
|
||||
public class IssueNavigationConfigurationPanel extends JPanel implements SearchableConfigurable, Configurable.NoScroll {
|
||||
private JBTable myLinkTable;
|
||||
private final JBTable myLinkTable;
|
||||
private final Project myProject;
|
||||
private List<IssueNavigationLink> myLinks;
|
||||
private ListTableModel<IssueNavigationLink> myModel;
|
||||
@@ -101,7 +101,7 @@ public class IssueNavigationConfigurationPanel extends JPanel implements Searcha
|
||||
}).setEditAction(new AnActionButtonRunnable() {
|
||||
@Override
|
||||
public void run(AnActionButton button) {
|
||||
IssueNavigationLink link = (IssueNavigationLink) myModel.getItem(myLinkTable.getSelectedRow());
|
||||
IssueNavigationLink link = myModel.getItem(myLinkTable.getSelectedRow());
|
||||
IssueLinkConfigurationDialog dlg = new IssueLinkConfigurationDialog(myProject);
|
||||
dlg.setTitle(VcsBundle.message("issue.link.edit.title"));
|
||||
dlg.setLink(link);
|
||||
|
||||
Reference in New Issue
Block a user