Methods Summary |
---|
protected void | add(ResourceFile file)Adds a new version of this resource item, by adding its {@link ResourceFile}.
mFiles.add(file);
|
public ResourceFile[] | getSourceFileArray()Returns the sorted list of {@link ResourceItem} objects for this resource item.
ArrayList<ResourceFile> list = new ArrayList<ResourceFile>();
list.addAll(mFiles);
Collections.sort(list, sComparator);
return list.toArray(new ResourceFile[list.size()]);
|
public java.util.List | getSourceFileList()Returns the list of {@link ResourceItem} objects for this resource item.
return Collections.unmodifiableList(mFiles);
|
public abstract boolean | isEditableDirectly()Returns whether the resource item is editable directly.
This is typically the case for resources that don't have alternate versions, or resources
of type {@link ResourceType#ID} that aren't declared inline.
|
protected void | replaceWith(com.android.ide.eclipse.editors.resources.manager.ProjectResourceItem item)Replaces the content of the receiver with the ResourceItem received as parameter.
mFiles.clear();
mFiles.addAll(item.mFiles);
|
protected void | reset()Reset the item by emptying its version list.
mFiles.clear();
|