Changeset 10611 for trunk/Padre/lib/Padre/Wx/Main.pm
- Timestamp:
- 02/08/10 00:07:56 (2 years ago)
- File:
-
- 1 edited
-
trunk/Padre/lib/Padre/Wx/Main.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Wx/Main.pm
r10606 r10611 3667 3667 =head3 C<on_open_with_default_system_editor> 3668 3668 3669 $main->on_open_with_default_system_editor ;3670 3671 Opens the current documentin the default system editor3669 $main->on_open_with_default_system_editor($filename); 3670 3671 Opens C<$filename> in the default system editor 3672 3672 3673 3673 =cut 3674 3674 3675 3675 sub on_open_with_default_system_editor { 3676 my $self = shift; 3677 my $document = $self->current->document or return; 3678 my $filename = $document->filename; 3679 3680 unless( $filename ) { 3681 $self->error( Wx::gettext("No filename") ); 3682 return; 3683 } 3684 3685 if(Padre::Constant::WIN32) { 3686 # Win32 3687 require Padre::Util::Win32; 3688 Padre::Util::Win32::ExecuteProcessAndWait( 3689 directory => $self->{cwd}, 3690 file => $document->filename, 3691 parameters => '', 3692 show => 1); 3693 } else { 3694 #TODO please implement for other platforms 3695 $self->error(Wx::gettext("Not implemented!")); 3696 } 3676 my ( $self, $filename ) = @_; 3677 3678 require Padre::Wx::Directory::OpenInFileBrowserAction; 3679 Padre::Wx::Directory::OpenInFileBrowserAction->new->open_with_default_system_editor($filename); 3697 3680 } 3698 3681
Note: See TracChangeset
for help on using the changeset viewer.
