Cyberduck Mountain Duck CLI

Ticket #999: cyberduck-t999.patch

File cyberduck-t999.patch, 2.7 KB (added by CompiledMonkey, on May 30, 2007 at 12:56:23 AM)
Line 
1*** /tmp/PB.374/XCSCMTopOfTrunkRevision-CDBrowserController.java/CDBrowserController.java       Tue May 29 20:53:52 2007
2--- CDBrowserController.java    Tue May 29 20:48:53 2007
3*************** import com.enterprisedt.net.ftp.FTPConne
4*** 22,27 ****
5--- 22,28 ----
6 
7  import ch.cyberduck.core.*;
8  import ch.cyberduck.core.ftps.FTPSSession;
9+ import ch.cyberduck.ui.cocoa.CDGotoController;
10  import ch.cyberduck.ui.cocoa.delegate.EditMenuDelegate;
11  import ch.cyberduck.ui.cocoa.delegate.HistoryMenuDelegate;
12  import ch.cyberduck.ui.cocoa.growl.Growl;
13*************** public class CDBrowserController extends
14*** 3635,3640 ****
15--- 3636,3644 ----
16          if(identifier.equals("interruptButtonClicked:")) {
17              return this.isBusy();
18          }
19+         if(identifier.equals("gotofolderButtonClicked:")) {
20+             return this.isMounted();
21+         }             
22          this.validateNavigationButtons();
23          return true; // by default everything is enabled
24      }
25*************** public class CDBrowserController extends
26*** 3692,3697 ****
27--- 3696,3702 ----
28      private static final String TOOLBAR_GET_INFO = "Get Info";
29      private static final String TOOLBAR_DISCONNECT = "Disconnect";
30      private static final String TOOLBAR_INTERRUPT = "Stop";
31+       private static final String TOOLBAR_GO_TO_FOLDER = "Go to Folder";
32 
33      /**
34       *
35*************** public class CDBrowserController extends
36*** 3920,3925 ****
37--- 3925,3939 ----
38              item.setAction(new NSSelector("disconnectButtonClicked", new Class[]{Object.class}));
39              return item;
40          }
41+         if(itemIdentifier.equals(TOOLBAR_GO_TO_FOLDER)) {
42+             item.setLabel(NSBundle.localizedString(TOOLBAR_GO_TO_FOLDER, "Toolbar item"));
43+             item.setPaletteLabel(NSBundle.localizedString(TOOLBAR_GO_TO_FOLDER, "Toolbar item"));
44+             item.setToolTip(NSBundle.localizedString("Go to Folder", "Toolbar item tooltip"));
45+             item.setImage(NSImage.imageNamed("symlink.tiff"));
46+             item.setTarget(this);
47+             item.setAction(new NSSelector("gotoButtonClicked", new Class[]{Object.class}));
48+             return item;
49+         }
50          // itemIdent refered to a toolbar item that is not provide or supported by us or cocoa.
51          // Returning null will inform the toolbar this kind of item is not supported.
52          return null;
53*************** public class CDBrowserController extends
54*** 3968,3973 ****
55--- 3982,3988 ----
56                  TOOLBAR_NEW_FOLDER,
57                  TOOLBAR_GET_INFO,
58                  TOOLBAR_DISCONNECT,
59+                               TOOLBAR_GO_TO_FOLDER,
60                  NSToolbarItem.CustomizeToolbarItemIdentifier,
61                  NSToolbarItem.SpaceItemIdentifier,
62                  NSToolbarItem.SeparatorItemIdentifier,
swiss made software