diff options
Diffstat (limited to 'android/src/com/android/tools/idea/editors/theme/attributes/AttributesTableModel.java')
-rw-r--r-- | android/src/com/android/tools/idea/editors/theme/attributes/AttributesTableModel.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/android/src/com/android/tools/idea/editors/theme/attributes/AttributesTableModel.java b/android/src/com/android/tools/idea/editors/theme/attributes/AttributesTableModel.java index 8edc34c4632..03fae504625 100644 --- a/android/src/com/android/tools/idea/editors/theme/attributes/AttributesTableModel.java +++ b/android/src/com/android/tools/idea/editors/theme/attributes/AttributesTableModel.java @@ -196,6 +196,13 @@ public class AttributesTableModel extends AbstractTableModel implements CellSpan return new AttributeContents(rowIndex - offset); } + /** + * returns true if this row is not a attribute or a label and is the Theme name or Theme parent. + */ + public boolean isSpecialRow(int row) { + return row < mySpecialRows.size(); + } + @Override public int getRowCount() { return myAttributes.size() + myLabels.size() + mySpecialRows.size(); |