Changeset 10624
- Timestamp:
- 02/08/10 12:51:11 (4 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Wx/Directory/OpenInFileBrowserAction.pm
r10623 r10624 1 1 package Padre::Wx::Directory::OpenInFileBrowserAction; 2 3 =head1 NAME 4 5 Padre::Wx::Directory::OpenInFileBrowserAction - Open in file browser action 6 7 =head1 DESCRIPTION 8 9 For the current saved Padre document, open the platform's file manager/browser and 10 tries to select it if possible. On win32, opens the containing folder and 11 selects the file in its explorer. On Linux KDE/GNOME, opens the containing folder 12 for it. 13 14 =head1 FUNCTIONS 15 16 =cut 2 17 3 18 use 5.008; … … 51 66 } 52 67 53 # 54 # Opens the provided filename in the File browser: 55 # On win32, selects it in Windows Explorer 56 # On linux, opens the containing folder for it 57 # 68 =head2 C<open_in_file_browser> 69 70 $action->open_in_file_browser($filename); 71 72 Opens the provided C<$filename> in the file browser 73 On win32, selects it in Windows Explorer 74 On UNIX, opens the containing folder for it using either KDE or GNOME 75 76 =cut 77 58 78 sub open_in_file_browser { 59 79 my ( $self, $filename ) = @_; … … 87 107 } 88 108 89 # 90 # Open with default system editor 91 # 109 =head2 C<open_with_default_system_editor> 110 111 $action->open_in_file_browser($filename); 112 113 Opens the provided C<$filename> using the default system editor 114 115 =cut 116 92 117 sub open_with_default_system_editor { 93 118 my ( $self, $filename ) = @_; … … 128 153 129 154 # 130 # Tryto execute a file in KDE or GNOME155 # Private method to execute a file in KDE or GNOME 131 156 # 132 157 sub _execute_unix { … … 155 180 __END__ 156 181 157 =head1 NAME 158 159 Padre::Wx::Directory::OpenInFileBrowserAction - Open in file browser action 160 161 =head1 DESCRIPTION 162 163 =head2 Open in File Browser 164 165 For the current saved Padre document, open the platform's file manager/browser and 166 tries to select it if possible. On win32, opens the containing folder and 167 selects the file in its explorer. On Linux KDE/GNOME, opens the containing folder 168 for it. 169 170 =head1 AUTHOR 171 172 Ahmad M. Zawawi C<< <ahmad.zawawi at gmail.com> >> 182 =pod 173 183 174 184 =head1 COPYRIGHT & LICENSE
