⁠
luna: Access widener improvements (#1899 )
* go-to support for access widener descriptor elements
* method entries in AWs: use descs to disambiguate
* add "copy AW entry" action
* add "duplicate AW entry" inspection
* imports
* better balloon position
* fix formatting, share balloon code
* "Copy AW entry" fix for inaccessible references in fabric projects
* cleanup: remove (pre-existing) redundant AwTypedHandlerDelegate.kt
* fix formatting in BNF
* enable copy AW action in Sponge projects
* go-to support for access widener descriptor elements
* method entries in AWs: use descs to disambiguate
* add "copy AW entry" action
* add "duplicate AW entry" inspection
* imports
* better balloon position
* fix formatting, share balloon code
* "Copy AW entry" fix for inaccessible references in fabric projects
* cleanup: remove (pre-existing) redundant AwTypedHandlerDelegate.kt
* fix formatting in BNF
* enable copy AW action in Sponge projects
- /*
- * Minecraft Dev for IntelliJ
- *
- * https://minecraftdev.org
- *
- * Copyright (c) 2022 minecraft-dev
- *
- * MIT License
- */
- package com.demonwav.mcdev.platform.mcp.aw
- import com.intellij.codeInsight.editorActions.TypedHandlerDelegate
- import com.intellij.openapi.editor.Editor
- import com.intellij.openapi.project.Project
- import com.intellij.psi.PsiFile
- class AwTypedHandlerDelegate : TypedHandlerDelegate() {
- override fun checkAutoPopup(charTyped: Char, project: Project, editor: Editor, file: PsiFile): Result {
- if (file.language == AwLanguage && charTyped == '$') {
- return Result.CONTINUE
- }
- return super.checkAutoPopup(charTyped, project, editor, file)
- }
- }