Search in sources :

Example 1 with DartQuickAssistIntention

use of com.jetbrains.lang.dart.assists.DartQuickAssistIntention in project intellij-plugins by JetBrains.

the class DartAnalysisServerService method registerQuickAssistIntentions.

/**
   * see {@link DartQuickAssistIntention}
   */
private static void registerQuickAssistIntentions() {
    final IntentionManager intentionManager = IntentionManager.getInstance();
    final QuickAssistSet quickAssistSet = new QuickAssistSet();
    for (int i = 0; i < 20; i++) {
        final DartQuickAssistIntention intention = new DartQuickAssistIntention(quickAssistSet, i);
        intentionManager.addAction(intention);
    }
}
Also used : IntentionManager(com.intellij.codeInsight.intention.IntentionManager) QuickAssistSet(com.jetbrains.lang.dart.assists.QuickAssistSet) DartQuickAssistIntention(com.jetbrains.lang.dart.assists.DartQuickAssistIntention)

Aggregations

IntentionManager (com.intellij.codeInsight.intention.IntentionManager)1 DartQuickAssistIntention (com.jetbrains.lang.dart.assists.DartQuickAssistIntention)1 QuickAssistSet (com.jetbrains.lang.dart.assists.QuickAssistSet)1