Changeset 110

Show
Ignore:
Timestamp:
10/20/08 13:29:12 (5 years ago)
Author:
samuraraujo
Message:
 
Location:
Explorator/trunk/lib
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • Explorator/trunk/lib/libs.rb

    r23 r110  
    99adapter.title='Explorator' 
    1010 
    11 Application.clear 
  • Explorator/trunk/lib/query_builder.rb

    r86 r110  
    2727    if s == nil 
    2828      Array.new  
    29     elsif Application.is_set?(s) 
    30       Application.get(s).resources 
     29    elsif Thread.current[:application].is_set?(s) 
     30      Thread.current[:application].get(s).resources 
    3131    else 
    3232      Array.new << s  
     
    9999    elsif s.instance_of? Array        
    100100      @result = @result | s  
    101     elsif Application.is_set?(s) 
     101    elsif Thread.current[:application].is_set?(s) 
    102102      #returns all set of resources 
    103       @result = @result | Application.get(s).elements 
     103      @result = @result | Thread.current[:application].get(s).elements 
    104104      #Union method, passed as parameter a triple expression 
    105105    else 
     
    121121      tmp =  s       
    122122      #Intersection, Intersection and Difference are operation over sets.       
    123     elsif Application.is_set?(s) 
     123    elsif Thread.current[:application].is_set?(s) 
    124124      #returns all set of resources 
    125       tmp =  Application.get(s).elements 
     125      tmp =  Thread.current[:application].get(s).elements 
    126126      #Intersection method, passed as parameter a triple expression 
    127127    else 
     
    145145      tmp =  s  
    146146      #Difference, Intersection and Difference are operation over sets. 
    147     elsif Application.is_set?(s) 
     147    elsif Thread.current[:application].is_set?(s) 
    148148      #returns all set of resources 
    149       tmp = Application.get(s).elements 
     149      tmp = Thread.current[:application].get(s).elements 
    150150      #Difference method, passed as parameter a triple expression 
    151151    else