diff options
author | shingil.kang <shingil.kang@samsung.com> | 2014-01-02 17:21:38 +0900 |
---|---|---|
committer | shingil.kang <shingil.kang@samsung.com> | 2014-01-02 18:28:24 +0900 |
commit | 5206d634e19b438830d310dcdf27f606b5ad3cdc (patch) | |
tree | 7cb599df919c6895e9b329ab9e0834d6b2a65948 /org.tizen.common.sdblib | |
parent | 6b137cfa287bf1e17d3418fe80ac2986a75eb93d (diff) | |
download | common-eplugin-5206d634e19b438830d310dcdf27f606b5ad3cdc.tar.gz common-eplugin-5206d634e19b438830d310dcdf27f606b5ad3cdc.tar.bz2 common-eplugin-5206d634e19b438830d310dcdf27f606b5ad3cdc.zip |
TOOLS: fixed a bug where a error occurs when explorering the folder having block/character device files.
show N/A in size label when expressing block/character device files in connection explorer.
Change-Id: I7dc779144822f05e4ba8caa5f6fca6948c83314b
Signed-off-by: shingil.kang <shingil.kang@samsung.com>
Diffstat (limited to 'org.tizen.common.sdblib')
-rw-r--r-- | org.tizen.common.sdblib/src/org/tizen/sdblib/service/FileEntryType.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/org.tizen.common.sdblib/src/org/tizen/sdblib/service/FileEntryType.java b/org.tizen.common.sdblib/src/org/tizen/sdblib/service/FileEntryType.java index bd2f75497..780c1efec 100644 --- a/org.tizen.common.sdblib/src/org/tizen/sdblib/service/FileEntryType.java +++ b/org.tizen.common.sdblib/src/org/tizen/sdblib/service/FileEntryType.java @@ -189,6 +189,17 @@ FileEntryType return isDirectory() || isRoot();
}
+ /**
+ * Return if type is BlockDevice or CharacterDevice
+ * @return {@code true} if type is BlockDevice or CharacterDevice
+ */
+ public
+ boolean
+ isDevice()
+ {
+ return equals( BlockDevice ) || equals( CharacterDevice );
+ }
+
/* (non-Javadoc)
* @see java.lang.Enum#toString()
*/
|