*/
package org.tizen.common.connection.explorer;
+import static org.tizen.common.util.ArrayUtil.isEmpty;
+
import java.io.File;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
FileEntry entry = (FileEntry) obj;
int ret = FileDialogUtils.confirmDelete(entry.getName());
if (ret == IDialogConstants.CANCEL_ID)
+ {
continue;
+ }
String command = null;
// create the delete command
private void pushFiles(final String[] localFiles, final FileEntry remoteDirectory)
{
final String[] files = getFilesToOverwrite(localFiles, remoteDirectory);
- if (files == null || files.length == 0)
+ if ( isEmpty( files ) )
+ {
return;
+ }
try
{
final SyncService sync = currentDevice.getSyncService();
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry exported="true" kind="lib" path="lib/commons-collections-3.2.1.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/commons-pool-1.6.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/commons-lang3-3.1.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/commons-io-2.4.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/freemarker.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/log4j-1.2.17.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/sdblib.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/slf4j-api-1.6.4.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/slf4j-log4j12-1.6.4.jar"/>
- <classpathentry exported="true" kind="lib" path="test/lib/junit-4.10.jar" sourcepath="test/lib/junit-4.10-src.jar"/>
- <classpathentry exported="true" kind="lib" path="test/lib/mockito-all-1.9.0.jar"/>
- <classpathentry kind="lib" path="test/lib/asm-4.0.jar"/>
- <classpathentry kind="lib" path="test/lib/asm-tree-4.0.jar"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="test/src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>\r
+<classpath>\r
+ <classpathentry exported="true" kind="lib" path="lib/commons-logging-1.1.1.jar"/>\r
+ <classpathentry exported="true" kind="lib" path="lib/commons-collections-3.2.1.jar"/>\r
+ <classpathentry exported="true" kind="lib" path="lib/commons-pool-1.6.jar"/>\r
+ <classpathentry exported="true" kind="lib" path="lib/commons-lang3-3.1.jar"/>\r
+ <classpathentry exported="true" kind="lib" path="lib/commons-io-2.4.jar"/>\r
+ <classpathentry exported="true" kind="lib" path="lib/freemarker.jar"/>\r
+ <classpathentry exported="true" kind="lib" path="lib/log4j-1.2.17.jar"/>\r
+ <classpathentry exported="true" kind="lib" path="lib/sdblib.jar"/>\r
+ <classpathentry exported="true" kind="lib" path="lib/slf4j-api-1.6.4.jar"/>\r
+ <classpathentry exported="true" kind="lib" path="lib/slf4j-log4j12-1.6.4.jar"/>\r
+ <classpathentry exported="true" kind="lib" path="test/lib/junit-4.10.jar" sourcepath="test/lib/junit-4.10-src.jar"/>\r
+ <classpathentry exported="true" kind="lib" path="test/lib/mockito-all-1.9.0.jar"/>\r
+ <classpathentry kind="lib" path="test/lib/asm-4.0.jar"/>\r
+ <classpathentry kind="lib" path="test/lib/asm-tree-4.0.jar"/>\r
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>\r
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>\r
+ <classpathentry kind="src" path="src"/>\r
+ <classpathentry kind="src" path="test/src"/>\r
+ <classpathentry kind="output" path="bin"/>\r
+</classpath>\r
org.apache.commons.lang3.text.translate,
org.apache.commons.lang3.time,
org.apache.commons.lang3.tuple,
+ org.apache.commons.logging,
org.junit,
org.junit.experimental,
org.junit.experimental.categories,
lib/commons-io-2.4.jar,
lib/commons-lang3-3.1.jar,
lib/commons-collections-3.2.1.jar,
- lib/commons-pool-1.6.jar
+ lib/commons-pool-1.6.jar,
+ lib/commons-logging-1.1.1.jar