Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: FWDekker/intellij-randomness
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: FWDekker/intellij-randomness
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: delegate-action
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 1 commit
  • 4 files changed
  • 1 contributor

Commits on Oct 31, 2024

  1. Invoke delegated actions using built-in method

    The compatibility checker noticed that I was doing it wrong in 2024.3, and presumably therefore also in older versions.
    FWDekker committed Oct 31, 2024
    Copy the full SHA
    d3ff6cd View commit details
Showing with 20 additions and 6 deletions.
  1. +5 −0 CHANGELOG.md
  2. +4 −1 build.gradle.kts
  3. +1 −0 gradle.properties
  4. +10 −5 src/main/kotlin/com/fwdekker/randomness/template/TemplateActions.kt
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Changelog
## 9.9.9-unreleased
### Fixed
* Change delegate action invocations to use built-in utility method instead.


## 3.3.3 -- 2024-10-16
### Changed
* In template icons, change the order of scheme colors to be clockwise starting from the top, instead of counterclockwise starting on the right.
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -69,7 +69,10 @@ dependencies {
dokkaHtmlPlugin("org.jetbrains.dokka", "versioning-plugin", properties("dokkaVersion"))

intellijPlatform {
intellijIdeaCommunity(properties("intellijVersion"))
intellijIdeaCommunity(
properties("intellijVersion"),
useInstaller = !properties("intellijVersion").endsWith("EAP-SNAPSHOT")
)

pluginVerifier()
zipSigner()
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ version=3.3.3
# 2019.4 (aka 2020.1).
# * `intellijVersion`:
# Use the oldest supported version, because that's what the plugin will be compiled against.
# If you want to test the EAP version of, say, IntelliJ 2024.3, use version number `243-EAP-SNAPSHOT`.
# * `pluginVerifierIdeVersions`:
# For every supported version minor release, include both the IC and the CL release with the highest patch version
# See also https://data.services.jetbrains.com/products?fields=name,releases.version,releases.build&code=IC,CL.
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ import com.fwdekker.randomness.ui.PreviewPanel
import com.intellij.openapi.Disposable
import com.intellij.openapi.actionSystem.ActionGroup
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.ActionWrapperUtil
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.options.Configurable
@@ -63,11 +64,15 @@ class TemplateGroupAction(private val template: Template) :
* @param event carries contextual information
*/
override fun actionPerformed(event: AnActionEvent) =
getActionByModifier(
array = event.inputEvent?.isShiftDown ?: false,
repeat = event.inputEvent?.isAltDown ?: false,
settings = event.inputEvent?.isControlDown ?: false
).actionPerformed(event)
ActionWrapperUtil.actionPerformed(
event,
this,
getActionByModifier(
array = event.inputEvent?.isShiftDown ?: false,
repeat = event.inputEvent?.isAltDown ?: false,
settings = event.inputEvent?.isControlDown ?: false
)
)

/**
* Returns variant actions for the main insertion action.