Changeset 2271


Ignore:
Timestamp:
12/30/08 01:21:57 (3 years ago)
Author:
szabgab
Message:

move the "Lexically replace variable" out from experimental mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Wx/Menu/Perl.pm

    r2184 r2271  
    4646    ); 
    4747 
    48     if ( Padre->ide->config->{experimental} ) { 
    49         Wx::Event::EVT_MENU( $main, 
    50             $self->Append( -1, Wx::gettext("Lexically replace variable") ), 
    51             sub { 
    52                 my $doc = Padre::Documents->current; 
    53                 return unless Params::Util::_INSTANCE($doc, 'Padre::Document::Perl'); 
    54                 my $dialog = Padre::Wx::History::TextDialog->new( 
    55                     $_[0], 
    56                     Wx::gettext("Replacement"), 
    57                     Wx::gettext("Replacement"), 
    58                     '$foo', 
    59                 ); 
    60                 if ( $dialog->ShowModal == Wx::wxID_CANCEL ) { 
    61                     return; 
    62                 } 
    63                 my $replacement = $dialog->GetValue; 
    64                 $dialog->Destroy; 
    65                 return unless defined $replacement; 
     48    Wx::Event::EVT_MENU( $main, 
     49        $self->Append( -1, Wx::gettext("Lexically replace variable") ), 
     50        sub { 
     51            my $doc = Padre::Documents->current; 
     52            return unless Params::Util::_INSTANCE($doc, 'Padre::Document::Perl'); 
     53            my $dialog = Padre::Wx::History::TextDialog->new( 
     54                $_[0], 
     55                Wx::gettext("Replacement"), 
     56                Wx::gettext("Replacement"), 
     57                '$foo', 
     58            ); 
     59            if ( $dialog->ShowModal == Wx::wxID_CANCEL ) { 
     60                return; 
     61            } 
     62            my $replacement = $dialog->GetValue; 
     63            $dialog->Destroy; 
     64            return unless defined $replacement; 
    6665 
    67                 $doc->lexical_variable_replacement($replacement); 
    68             }, 
    69         ); 
    70     } 
     66            $doc->lexical_variable_replacement($replacement); 
     67        }, 
     68    ); 
    7169 
    7270    return $self; 
Note: See TracChangeset for help on using the changeset viewer.