Changeset 4191


Ignore:
Timestamp:
04/28/09 08:13:06 (3 years ago)
Author:
jquelin
Message:

storing plugin reference

Location:
trunk/Padre-Plugin-SpellCheck/lib/Padre/Plugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre-Plugin-SpellCheck/lib/Padre/Plugin/SpellCheck.pm

    r4183 r4191  
    6767 
    6868    my $main   = Padre::Current->main; 
    69     my $engine = Padre::Plugin::SpellCheck::Engine->new; 
     69    my $engine = Padre::Plugin::SpellCheck::Engine->new($self); 
    7070 
    7171    # fetch text to check 
  • trunk/Padre-Plugin-SpellCheck/lib/Padre/Plugin/SpellCheck/Engine.pm

    r4146 r4191  
    1515use Class::XSAccessor accessors => { 
    1616    _ignore  => '_ignore', 
     17    _plugin  => '_plugin',      # ref to spellecheck plugin 
    1718    _speller => '_speller', 
    1819}; 
     
    2324 
    2425sub new { 
    25     my ($class) = @_; 
     26    my ($class, $plugin) = @_; 
    2627 
    2728    my $self = bless { 
    2829        _ignore => {}, 
     30        _plugin => $plugin, 
    2931    }, $class; 
    3032 
Note: See TracChangeset for help on using the changeset viewer.