-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from lipiridi/feature/2024.3-compatibility
Feature/2024.3 compatibility
- Loading branch information
Showing
11 changed files
with
51 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...java/com/github/lipiridi/spotless/applier/trigger/SpotlessApplierCheckinHandlerState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.github.lipiridi.spotless.applier.trigger; | ||
|
||
import com.intellij.openapi.components.*; | ||
import com.intellij.openapi.project.Project; | ||
import com.intellij.util.xmlb.XmlSerializerUtil; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
@Service(Service.Level.PROJECT) | ||
@State(name = "SpotlessApplierCheckinHandler", storages = @Storage(StoragePathMacros.WORKSPACE_FILE)) | ||
public final class SpotlessApplierCheckinHandlerState | ||
implements PersistentStateComponent<SpotlessApplierCheckinHandlerState> { | ||
|
||
public boolean preCommitSpotlessFormating; | ||
|
||
public static SpotlessApplierCheckinHandlerState getInstance(Project project) { | ||
return project.getService(SpotlessApplierCheckinHandlerState.class); | ||
} | ||
|
||
@Override | ||
public SpotlessApplierCheckinHandlerState getState() { | ||
return this; | ||
} | ||
|
||
@Override | ||
public void loadState(@NotNull SpotlessApplierCheckinHandlerState state) { | ||
XmlSerializerUtil.copyBean(state, this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters