File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed 
plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/dynamodb/editor/actions Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 33
44package  software.aws.toolkits.jetbrains.services.dynamodb.editor.actions 
55
6- import  com.intellij.openapi.actionSystem.ActionManager 
76import  com.intellij.openapi.actionSystem.ActionUpdateThread 
8- import  com.intellij.openapi.actionSystem.AnAction 
97import  com.intellij.openapi.actionSystem.AnActionEvent 
10- import  com.intellij.openapi.actionSystem.ComputableActionGroup  
8+ import  com.intellij.openapi.actionSystem.DefaultActionGroup  
119import  com.intellij.openapi.actionSystem.DataContext 
1210import  com.intellij.openapi.actionSystem.PlatformDataKeys 
1311import  com.intellij.openapi.actionSystem.ToggleAction 
1412import  com.intellij.openapi.project.DumbAware 
1513import  software.aws.toolkits.jetbrains.services.dynamodb.editor.DynamoDbTableEditor 
1614
17- class  ConfigureMaxResultsAction  : ComputableActionGroup .Simple (/*  popup */   true ) {
18-     override  fun  computeChildren (manager :  ActionManager ): Array <AnAction > =  DynamoDbTableEditor .MAX_RESULTS_OPTIONS 
19-         .map { (ChangeMaxResults (it)) }.toTypedArray()
15+ class  ConfigureMaxResultsAction  : DefaultActionGroup (), DumbAware {
16+     init  {
17+         isPopup =  true 
18+         DynamoDbTableEditor .MAX_RESULTS_OPTIONS .forEach { 
19+             add(ChangeMaxResults (it))
20+         }
21+     }
2022
2123    private  class  ChangeMaxResults (private  val  choice :  Int ) : ToggleAction(choice.toString()), DumbAware {
2224        override  fun  getActionUpdateThread () =  ActionUpdateThread .BGT 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments