Skip to content

Commit

Permalink
Version 1.24.5: Compatibility with IntelliJ 2023.1.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueBoxWare committed Apr 28, 2023
1 parent 97568e8 commit bef05ba
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 1.24.5
# Compatibility with IntelliJ 2023.1.1.

### 1.24.4
* Fix [#35](https://github.com/BlueBoxWare/LibGDXPlugin/issues/35): "No documentation found" on Ctrl+Q when plugin is enabled.

Expand Down
9 changes: 4 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
pluginGroup = com.gmail.blueboxware
pluginName = LibGDX Plugin
pluginVersion = 1.24.4
pluginVersion = 1.24.5

pluginSinceBuild = 231.8109.175
pluginSinceBuild = 231.8770.53
pluginUntilBuild =

# See https://www.jetbrains.com/intellij-repository/snapshots/ for available build versions.
pluginVerifierIdeVersions = 231.8109.175
pluginVerifierIdeVersions = 231.8770.53

platformType = IC
#platformVersion = 223.8214.52
platformVersion = 231.8109.175
platformVersion = 231.8770-EAP-CANDIDATE-SNAPSHOT
platformDownloadSources = true

platformPlugins = java, Kotlin, Groovy, properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ import com.gmail.blueboxware.libgdxplugin.utils.PROPERTY_NAME_TINTED_DRAWABLE_NA
import com.gmail.blueboxware.libgdxplugin.utils.TINTED_DRAWABLE_CLASS_NAME
import com.gmail.blueboxware.libgdxplugin.utils.tint
import com.intellij.model.Pointer
import com.intellij.navigation.TargetPresentation
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.util.SystemInfo
import com.intellij.openapi.util.io.FileUtil
import com.intellij.openapi.util.text.HtmlBuilder
import com.intellij.openapi.util.text.HtmlChunk
import com.intellij.platform.backend.documentation.DocumentationTarget
import com.intellij.platform.backend.presentation.TargetPresentation
import com.intellij.psi.PsiElement
import com.intellij.util.ui.ImageUtil
import org.jetbrains.kotlin.psi.psiUtil.createSmartPointer
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<change-notes><![CDATA[
<ul>
<li>Fix #35: "No documentation found" on Ctrl+Q when plugin is enabled.</li>
<li>Compatibility with IntelliJ 2023.1.1.</li>
</ul>
]]>
</change-notes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,17 @@ class TestTextTextureRegionPreview : LibGDXCodeInsightFixtureTestCase() {
fun doTest(fileName: String, tinted: Boolean = true, width: Int = 50, height: Int = 50) {
configureByFile(fileName)
val element = file.findElementAt(myFixture.caretOffset) ?: throw AssertionError()
val preview: String =

@Suppress("OverrideOnly") val preview: String =
ImagePreviewPsiDocumentationTargetProvider().documentationTarget(element, element)
?.computeDocumentationHint() ?: throw AssertionError()

val imageFile = Regex("""src="([^"]+)"""").find(preview)?.groupValues?.get(1) ?: throw AssertionError()
val image = ImageIO.read(URL(imageFile))
assertEquals(width, image.width)
assertEquals(height, image.height)
if (tinted) {
@Suppress("UseJBColor")
assertEquals(Color.YELLOW, Color(image.getRGB(1, 1)))
@Suppress("UseJBColor") assertEquals(Color.YELLOW, Color(image.getRGB(1, 1)))
}
}

Expand Down

0 comments on commit bef05ba

Please sign in to comment.