Skip to content

Commit

Permalink
Bump IDE compatibility and prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
FWDekker committed Dec 8, 2023
1 parent 55a870b commit 76f4446
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 27 deletions.
3 changes: 2 additions & 1 deletion .github/RELEASE_CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
1. "Color Reduction" to 64 colours
2. "Optimize Transparency" with 2% fuzz
3. "Lossy GIF" with compression level 30
* Ensure documentation generates without errors, and push the documentation to the `gh-pages` branch.
* Ensure documentation generates without errors.
After the release, run the `cd.yml` workflow to update the `gh-pages` branch.

## Verification
* Run tests and static analysis one more time.
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changelog
## Unreleased
## 3.1.0 -- 2023-12-08
### Added
* Added ability to generate non-matching strings.
([#447](https://github.com/FWDekker/intellij-randomness/issues/447))
Expand All @@ -8,6 +8,9 @@
* When inserting arrays at multiple carets, the number of elements per array is now independently chosen for each array.
([#450](https://github.com/FWDekker/intellij-randomness/issues/450))

### Deprecated
* Minimum IDE version has been increased to 2023.1.


## 3.0.0 -- 2023-11-17
This release brings a major overhaul of how data is generated, allowing you to create your own data types such as IP
Expand Down
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
group=com.fwdekker
# Version number should also be updated in `com.fwdekker.randomness.PersistentSettings.Companion.CURRENT_VERSION`.
version=3.0.0-next
version=3.1.0

# Compatibility
# * `pluginSinceBuild`:
Expand All @@ -11,9 +11,9 @@ version=3.0.0-next
# * `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.
pluginSinceBuild=223.0
intellijVersion=2022.3
pluginVerifierIdeVersions=IC-2022.3.3, IC-2023.1.5, IC-2023.2.5, CL-2022.3.3, CL-2023.1.5, CL-2023.2.2
pluginSinceBuild=231.0
intellijVersion=2023.1
pluginVerifierIdeVersions=IC-2023.1.5, IC-2023.2.5, IC-2023.3, CL-2023.1.5, CL-2023.2.2, CL-2023.3

# Targets
# * Java:
Expand All @@ -25,8 +25,8 @@ pluginVerifierIdeVersions=IC-2022.3.3, IC-2023.1.5, IC-2023.2.5, CL-2022.3.3, CL
# * Kotlin version should be bundled stdlib version of oldest supported IntelliJ version. See also
# https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#kotlin-standard-library.
javaVersion=17
kotlinVersion=1.7
kotlinApiVersion=1.7
kotlinVersion=1.8
kotlinApiVersion=1.8

# Dependencies
# * Detekt should also be updated in `plugins` block.
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/fwdekker/randomness/Settings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,6 @@ class PersistentSettings : PersistentStateComponent<Element> {
/**
* The currently-running version of Randomness.
*/
const val CURRENT_VERSION: String = "3.0.0-next" // Synchronize this with the version in `gradle.properties`
const val CURRENT_VERSION: String = "3.1.0" // Synchronize this with the version in `gradle.properties`
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import com.fwdekker.randomness.ui.bindDateTimeLongValue
import com.fwdekker.randomness.ui.toLocalDateTime
import com.fwdekker.randomness.ui.withFixedWidth
import com.fwdekker.randomness.ui.withName
import com.intellij.ui.dsl.builder.AlignX
import com.intellij.ui.dsl.builder.BottomGap
import com.intellij.ui.dsl.builder.bindText
import com.intellij.ui.dsl.builder.panel
import com.intellij.ui.dsl.gridLayout.HorizontalAlign


/**
Expand Down Expand Up @@ -61,7 +61,7 @@ class DateTimeSchemeEditor(scheme: DateTimeScheme = DateTimeScheme()) : SchemeEd
row {
ArrayDecoratorEditor(scheme.arrayDecorator)
.also { decoratorEditors += it }
.let { cell(it.rootComponent).horizontalAlign(HorizontalAlign.FILL) }
.let { cell(it.rootComponent).align(AlignX.FILL) }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import com.fwdekker.randomness.ui.withFilter
import com.fwdekker.randomness.ui.withFixedWidth
import com.fwdekker.randomness.ui.withName
import com.intellij.openapi.ui.ComboBox
import com.intellij.ui.dsl.builder.AlignX
import com.intellij.ui.dsl.builder.Cell
import com.intellij.ui.dsl.builder.bindSelected
import com.intellij.ui.dsl.builder.bindValue
import com.intellij.ui.dsl.builder.panel
import com.intellij.ui.dsl.builder.selected
import com.intellij.ui.dsl.gridLayout.HorizontalAlign
import javax.swing.JCheckBox


Expand Down Expand Up @@ -113,7 +113,7 @@ class DecimalSchemeEditor(scheme: DecimalScheme = DecimalScheme()) : SchemeEdito
row {
ArrayDecoratorEditor(scheme.arrayDecorator)
.also { decoratorEditors += it }
.let { cell(it.rootComponent).horizontalAlign(HorizontalAlign.FILL) }
.let { cell(it.rootComponent).align(AlignX.FILL) }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import com.fwdekker.randomness.ui.withFilter
import com.fwdekker.randomness.ui.withFixedWidth
import com.fwdekker.randomness.ui.withName
import com.intellij.openapi.ui.ComboBox
import com.intellij.ui.dsl.builder.AlignX
import com.intellij.ui.dsl.builder.bindSelected
import com.intellij.ui.dsl.builder.panel
import com.intellij.ui.dsl.gridLayout.HorizontalAlign
import com.intellij.ui.layout.and
import com.intellij.ui.layout.selected
import javax.swing.JCheckBox
Expand Down Expand Up @@ -107,13 +107,13 @@ class IntegerSchemeEditor(scheme: IntegerScheme = IntegerScheme()) : SchemeEdito
row {
FixedLengthDecoratorEditor(scheme.fixedLengthDecorator)
.also { decoratorEditors += it }
.let { cell(it.rootComponent).horizontalAlign(HorizontalAlign.FILL) }
.let { cell(it.rootComponent).align(AlignX.FILL) }
}

row {
ArrayDecoratorEditor(scheme.arrayDecorator)
.also { decoratorEditors += it }
.let { cell(it.rootComponent).horizontalAlign(HorizontalAlign.FILL) }
.let { cell(it.rootComponent).align(AlignX.FILL) }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import com.fwdekker.randomness.ui.withFixedWidth
import com.fwdekker.randomness.ui.withName
import com.fwdekker.randomness.ui.withSimpleRenderer
import com.intellij.openapi.ui.ComboBox
import com.intellij.ui.dsl.builder.AlignX
import com.intellij.ui.dsl.builder.BottomGap
import com.intellij.ui.dsl.builder.bindItem
import com.intellij.ui.dsl.builder.bindSelected
import com.intellij.ui.dsl.builder.bindText
import com.intellij.ui.dsl.builder.panel
import com.intellij.ui.dsl.builder.toNullableProperty
import com.intellij.ui.dsl.gridLayout.HorizontalAlign
import com.intellij.ui.layout.selected
import javax.swing.JCheckBox

Expand Down Expand Up @@ -75,7 +75,7 @@ class StringSchemeEditor(scheme: StringScheme = StringScheme()) : SchemeEditor<S
row {
ArrayDecoratorEditor(scheme.arrayDecorator)
.also { decoratorEditors += it }
.let { cell(it.rootComponent).horizontalAlign(HorizontalAlign.FILL) }
.let { cell(it.rootComponent).align(AlignX.FILL) }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ import com.intellij.ui.LayeredIcon
import com.intellij.ui.RowsDnDSupport.RefinedDropSupport.Position
import com.intellij.ui.SimpleTextAttributes
import com.intellij.ui.ToolbarDecorator
import com.intellij.ui.TreeSpeedSearch
import com.intellij.ui.TreeUIHelper
import com.intellij.ui.treeStructure.Tree
import com.intellij.util.ui.JBUI
import javax.swing.JPanel
import javax.swing.JTree
import javax.swing.tree.TreePath
import javax.swing.tree.TreeSelectionModel
import kotlin.math.min

Expand Down Expand Up @@ -139,7 +140,8 @@ class TemplateJTree(


init {
TreeSpeedSearch(this, true) { path -> path.path.filterIsInstance<Scheme>().joinToString { it.name } }
val converter = { path: TreePath -> path.path.filterIsInstance<Scheme>().joinToString { it.name } }
TreeUIHelper.getInstance().installTreeSpeedSearch(this, converter, true)

emptyText.text = Bundle("template_list.ui.empty")
isRootVisible = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import com.fwdekker.randomness.ui.withName
import com.fwdekker.randomness.ui.withSimpleRenderer
import com.intellij.openapi.ui.ComboBox
import com.intellij.ui.ColoredListCellRenderer
import com.intellij.ui.dsl.builder.AlignX
import com.intellij.ui.dsl.builder.bindItem
import com.intellij.ui.dsl.builder.panel
import com.intellij.ui.dsl.builder.toNullableProperty
import com.intellij.ui.dsl.gridLayout.HorizontalAlign
import javax.swing.JList


Expand Down Expand Up @@ -57,7 +57,7 @@ class TemplateReferenceEditor(scheme: TemplateReference) : SchemeEditor<Template
row {
ArrayDecoratorEditor(scheme.arrayDecorator)
.also { decoratorEditors += it }
.let { cell(it.rootComponent).horizontalAlign(HorizontalAlign.FILL) }
.let { cell(it.rootComponent).align(AlignX.FILL) }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import com.fwdekker.randomness.array.ArrayDecoratorEditor
import com.fwdekker.randomness.ui.loadMnemonic
import com.fwdekker.randomness.ui.withName
import com.fwdekker.randomness.uuid.UuidScheme.Companion.PRESET_AFFIX_DECORATOR_DESCRIPTORS
import com.intellij.ui.dsl.builder.AlignX
import com.intellij.ui.dsl.builder.BottomGap
import com.intellij.ui.dsl.builder.bind
import com.intellij.ui.dsl.builder.bindSelected
import com.intellij.ui.dsl.builder.panel
import com.intellij.ui.dsl.gridLayout.HorizontalAlign


/**
Expand Down Expand Up @@ -55,7 +55,7 @@ class UuidSchemeEditor(scheme: UuidScheme = UuidScheme()) : SchemeEditor<UuidSch
row {
ArrayDecoratorEditor(scheme.arrayDecorator)
.also { decoratorEditors += it }
.let { cell(it.rootComponent).horizontalAlign(HorizontalAlign.FILL) }
.let { cell(it.rootComponent).align(AlignX.FILL) }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import com.intellij.openapi.editor.Editor
import com.intellij.openapi.editor.EditorFactory
import com.intellij.openapi.ui.ComboBox
import com.intellij.openapi.util.Disposer
import com.intellij.ui.dsl.builder.AlignX
import com.intellij.ui.dsl.builder.bindItem
import com.intellij.ui.dsl.builder.panel
import com.intellij.ui.dsl.builder.toMutableProperty
import com.intellij.ui.dsl.builder.toNullableProperty
import com.intellij.ui.dsl.gridLayout.HorizontalAlign
import java.awt.event.ItemEvent


Expand Down Expand Up @@ -75,7 +75,7 @@ class WordSchemeEditor(scheme: WordScheme = WordScheme()) : SchemeEditor<WordSch
Disposer.register(this@WordSchemeEditor, factory.wrapDisposable(wordListEditor))
cell(wordListEditor.component)
.onReset { document.resetUndoHistory() }
.horizontalAlign(HorizontalAlign.FILL)
.align(AlignX.FILL)
.withFixedHeight(UIConstants.SIZE_VERY_LARGE)
.bind(
{ document.getWordList() },
Expand Down Expand Up @@ -103,7 +103,7 @@ class WordSchemeEditor(scheme: WordScheme = WordScheme()) : SchemeEditor<WordSch
row {
ArrayDecoratorEditor(scheme.arrayDecorator)
.also { decoratorEditors += it }
.let { cell(it.rootComponent).horizontalAlign(HorizontalAlign.FILL) }
.let { cell(it.rootComponent).align(AlignX.FILL) }
}
}

Expand Down

0 comments on commit 76f4446

Please sign in to comment.