// Path: src/main/java/com/github/xsavikx/androidscreencast/api/AndroidDevice.java
// public interface AndroidDevice {
// 
//     String executeCommand(String command);
// 
//     List<FileInfo> list(String path);
// 
//     void openUrl(String url);
// 
//     void pullFile(String remoteFrom, File localTo);
// 
//     void pushFile(File localFrom, String remoteTo);
// }
// 
// Path: src/main/java/com/github/xsavikx/androidscreencast/api/file/FileInfo.java
// @Singleton
// public final class FileInfo {
// 
//     public AndroidDeviceImpl device;
//     public String path;
//     public String attribs;
//     public boolean directory;
//     public String name;
// 
//     @Inject
//     public FileInfo() {
//     }
// 
//     public File downloadTemporary() {
//         try {
//             File tempFile = File.createTempFile("android", name);
//             device.pullFile(path + name, tempFile);
//             tempFile.deleteOnExit();
//             return tempFile;
//         } catch (IOException ex) {
//             throw new IORuntimeException(ex);
//         }
//     }
// 
//     @Override
//     public String toString() {
//         return name;
//     }
// }
// 
// Path: src/main/java/com/github/xsavikx/androidscreencast/exception/AndroidScreenCastRuntimeException.java
// public class AndroidScreenCastRuntimeException extends RuntimeException {
// 
//     private String additionalInformation;
// 
//     public AndroidScreenCastRuntimeException() {
//     }
// 
//     public AndroidScreenCastRuntimeException(String message) {
//         super(message);
//     }
// 
// 
//     public AndroidScreenCastRuntimeException(String message, String additionalInformation) {
//         super(message);
//         this.additionalInformation = additionalInformation;
//     }
// 
//     public AndroidScreenCastRuntimeException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public AndroidScreenCastRuntimeException(Throwable cause) {
//         super(cause);
//     }
// 
//     public AndroidScreenCastRuntimeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
//         super(message, cause, enableSuppression, writableStackTrace);
//     }
// 
//     public String getAdditionalInformation() {
//         return additionalInformation;
//     }
// }


import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.github.xsavikx.androidscreencast.api.AndroidDevice;
import com.github.xsavikx.androidscreencast.api.file.FileInfo;
import com.github.xsavikx.androidscreencast.exception.AndroidScreenCastRuntimeException;
import javax.inject.Inject;
import javax.swing.*;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.File;
/*
 * Copyright 2020 Yurii Serhiichuk
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.github.xsavikx.androidscreencast.ui.explorer;



public final class JFrameExplorer extends JFrame {

    private static final long serialVersionUID = -5209265873286028854L;
// Path: src/main/java/com/github/xsavikx/androidscreencast/api/AndroidDevice.java
// public interface AndroidDevice {
// 
//     String executeCommand(String command);
// 
//     List<FileInfo> list(String path);
// 
//     void openUrl(String url);
// 
//     void pullFile(String remoteFrom, File localTo);
// 
//     void pushFile(File localFrom, String remoteTo);
// }
// 
// Path: src/main/java/com/github/xsavikx/androidscreencast/api/file/FileInfo.java
// @Singleton
// public final class FileInfo {
// 
//     public AndroidDeviceImpl device;
//     public String path;
//     public String attribs;
//     public boolean directory;
//     public String name;
// 
//     @Inject
//     public FileInfo() {
//     }
// 
//     public File downloadTemporary() {
//         try {
//             File tempFile = File.createTempFile("android", name);
//             device.pullFile(path + name, tempFile);
//             tempFile.deleteOnExit();
//             return tempFile;
//         } catch (IOException ex) {
//             throw new IORuntimeException(ex);
//         }
//     }
// 
//     @Override
//     public String toString() {
//         return name;
//     }
// }
// 
// Path: src/main/java/com/github/xsavikx/androidscreencast/exception/AndroidScreenCastRuntimeException.java
// public class AndroidScreenCastRuntimeException extends RuntimeException {
// 
//     private String additionalInformation;
// 
//     public AndroidScreenCastRuntimeException() {
//     }
// 
//     public AndroidScreenCastRuntimeException(String message) {
//         super(message);
//     }
// 
// 
//     public AndroidScreenCastRuntimeException(String message, String additionalInformation) {
//         super(message);
//         this.additionalInformation = additionalInformation;
//     }
// 
//     public AndroidScreenCastRuntimeException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public AndroidScreenCastRuntimeException(Throwable cause) {
//         super(cause);
//     }
// 
//     public AndroidScreenCastRuntimeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
//         super(message, cause, enableSuppression, writableStackTrace);
//     }
// 
//     public String getAdditionalInformation() {
//         return additionalInformation;
//     }
// }


// Path: src/main/java/com/github/xsavikx/androidscreencast/ui/explorer/JFrameExplorer.java
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.github.xsavikx.androidscreencast.api.AndroidDevice;
import com.github.xsavikx.androidscreencast.api.file.FileInfo;
import com.github.xsavikx.androidscreencast.exception.AndroidScreenCastRuntimeException;
import javax.inject.Inject;
import javax.swing.*;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.File;

/*
 * Copyright 2020 Yurii Serhiichuk
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.github.xsavikx.androidscreencast.ui.explorer;



public final class JFrameExplorer extends JFrame {

    private static final long serialVersionUID = -5209265873286028854L;
    private final AndroidDevice androidDevice;