use of com.intellij.ui.table.JBTable in project android by JetBrains.
the class StringsCellEditorTest method testIsCellEditable.
public void testIsCellEditable() {
Collection<VirtualFile> directories = Collections.singletonList(myFixture.copyDirectoryToProject("stringsEditor/base/res", "res"));
LocalResourceRepository repository = ModuleResourceRepository.createForTest(myFacet, directories);
JTable table = new JBTable(new StringResourceTableModel(StringResourceParser.parse(myFacet, repository)));
TableUtils.selectCellAt(table, 0, StringResourceTableModel.DEFAULT_VALUE_COLUMN);
assertTrue(new StringsCellEditor().isCellEditable(new ActionEvent(table, 0, null)));
}
Aggregations