Skip to content

Commit

Permalink
Add RxKotlin library
Browse files Browse the repository at this point in the history
  • Loading branch information
y0ung3r committed Jan 24, 2024
1 parent 3e7aba8 commit 4ff6cbd
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

# Changelog

## [Unreleased]
## [0.1.0]
### Added
- Detect changes in the Git hooks folder

### Changed
- Make the main tool window immediately available during project reindexing

## [0.0.2]
### Fixed
Expand All @@ -13,4 +18,5 @@
- Git version handling

## [0.0.1]
### Added
- Initial release
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ repositories {
// Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog
dependencies {
// implementation(libs.annotations)
implementation(libs.rxkotlin)
}

// Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+.
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[versions]
# libraries
annotations = "24.1.0"
rxkotlin = "3.0.1"

# plugins
kotlin = "1.9.21"
Expand All @@ -11,6 +12,7 @@ kover = "0.7.5"

[libraries]
annotations = { group = "org.jetbrains", name = "annotations", version.ref = "annotations" }
rxkotlin = { group = "io.reactivex.rxjava3", name = "rxkotlin", version.ref = "rxkotlin" }

[plugins]
changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.intellij.ui.dsl.builder.Align
import com.intellij.ui.dsl.builder.panel
import javax.swing.JComponent

class GitGlobalHooksLocatorWindow(toolWindow: ToolWindow) {
class LocatorWindow(toolWindow: ToolWindow) {
private val hooksFolder: HooksFolder
= HooksFolder(Git.instance)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package com.github.y0ung3r.gitglobalhookslocator.ui.toolWindow

import com.intellij.openapi.project.DumbAware
import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.ToolWindow
import com.intellij.openapi.wm.ToolWindowFactory
import com.intellij.ui.content.ContentFactory

class GitGlobalHooksLocatorWindowFactory : ToolWindowFactory {
class LocatorWindowFactory : ToolWindowFactory, DumbAware {
override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) {
val locatorWindow = GitGlobalHooksLocatorWindow(toolWindow)
val locatorWindow = LocatorWindow(toolWindow)

val content = ContentFactory
.getInstance()
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 @@ -9,6 +9,6 @@
<resource-bundle>messages.LocatorBundle</resource-bundle>

<extensions defaultExtensionNs="com.intellij">
<toolWindow factoryClass="com.github.y0ung3r.gitglobalhookslocator.ui.toolWindow.GitGlobalHooksLocatorWindowFactory" id="Git Global Hooks Locator" icon="AllIcons.General.Locate" />
<toolWindow factoryClass="com.github.y0ung3r.gitglobalhookslocator.ui.toolWindow.LocatorWindowFactory" id="Git Global Hooks Locator" icon="AllIcons.General.Locate" />
</extensions>
</idea-plugin>

0 comments on commit 4ff6cbd

Please sign in to comment.