diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..f5c65ef --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +hello-world-plugin \ No newline at end of file diff --git a/.idea/csv-editor.xml b/.idea/csv-editor.xml new file mode 100644 index 0000000..27079a8 --- /dev/null +++ b/.idea/csv-editor.xml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..14746e7 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..6204840 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..fe0b0da --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml index d843f34..94a25f7 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,4 +1,6 @@ - + + + \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 9e2624d..0000000 --- a/README.md +++ /dev/null @@ -1,61 +0,0 @@ -# Hello World JetBrains Plugin Template - -This is a simple Hello World template for a JetBrains plugin that will work with any of their IDEs. It demonstrates the basic structure and components needed for a JetBrains plugin. - -## Project Structure - -- `build.gradle`: Gradle build configuration for the plugin -- `settings.gradle`: Gradle settings for the project -- `src/main/java/org/example/HelloWorldAction.java`: The action class that displays a "Hello World" message -- `src/main/resources/META-INF/plugin.xml`: Plugin configuration file - -## Features - -- Adds a "Hello World" action to the Tools menu -- Provides a keyboard shortcut (Ctrl+Alt+H) to trigger the action -- Displays a simple message dialog when the action is triggered - -## Building the Plugin - -To build the plugin, run: - -```bash -./gradlew build -``` - -This will create a plugin ZIP file in the `build/distributions` directory. - -## Installing the Plugin - -1. Open any JetBrains IDE (IntelliJ IDEA, PyCharm, WebStorm, etc.) -2. Go to Settings/Preferences > Plugins -3. Click on the gear icon and select "Install Plugin from Disk..." -4. Navigate to the `build/distributions` directory and select the ZIP file -5. Restart the IDE when prompted - -## Using the Plugin - -After installing the plugin: - -1. Go to the Tools menu and click on "Hello World", or -2. Use the keyboard shortcut Ctrl+Alt+H - -A message dialog will appear with the text "Hello, World!". - -## Customizing the Plugin - -To customize the plugin: - -1. Update the plugin metadata in `plugin.xml` -2. Modify the `HelloWorldAction` class to change the behavior -3. Add more actions or extensions as needed - -## Requirements - -- Java 11 or later -- Gradle 7.0 or later -- Any JetBrains IDE for testing - -## License - -This template is available under the MIT License. \ No newline at end of file diff --git a/build.gradle b/build.gradle index fd08985..1c61fd1 100644 --- a/build.gradle +++ b/build.gradle @@ -3,8 +3,8 @@ plugins { id 'org.jetbrains.intellij' version '1.17.1' } -group = 'org.example' -version = '1.0-SNAPSHOT' +group = 'org.cobalyte' +version = '1.0.0' repositories { mavenCentral() diff --git a/settings.gradle b/settings.gradle index d9d0d36..9299ad5 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -rootProject.name = 'hello-world-plugin' \ No newline at end of file +rootProject.name = 'commit-message-prefixer' \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts deleted file mode 100644 index 356a1ca..0000000 --- a/settings.gradle.kts +++ /dev/null @@ -1,2 +0,0 @@ -rootProject.name = "untitled" - diff --git a/src/main/java/org/example/AddCommitPrefixAction.java b/src/main/java/org/cobalyte/AddCommitPrefixAction.java similarity index 90% rename from src/main/java/org/example/AddCommitPrefixAction.java rename to src/main/java/org/cobalyte/AddCommitPrefixAction.java index 274fc7c..9896e2d 100644 --- a/src/main/java/org/example/AddCommitPrefixAction.java +++ b/src/main/java/org/cobalyte/AddCommitPrefixAction.java @@ -1,18 +1,13 @@ -package org.example; +package org.cobalyte; import com.intellij.icons.AllIcons; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnActionEvent; -import com.intellij.openapi.actionSystem.Presentation; import com.intellij.openapi.project.Project; import com.intellij.openapi.vcs.CheckinProjectPanel; import com.intellij.openapi.vcs.ui.Refreshable; -import com.intellij.openapi.util.IconLoader; import org.jetbrains.annotations.NotNull; -import javax.swing.*; -import java.io.File; - /** * An action that adds a prefix to the commit message based on the current branch name. * This action is added to the commit dialog toolbar for easy access. @@ -28,7 +23,7 @@ public class AddCommitPrefixAction extends AnAction { } // Get the settings - CommitPrefixerSettings settings = CommitPrefixerSettings.getInstance(project); + org.cobalyte.CommitPrefixerSettings settings = CommitPrefixerSettings.getInstance(project); // Only show the button if the plugin is enabled and prefixing mode is MANUAL boolean visible = settings.isEnabled() && settings.getPrefixingMode() == CommitPrefixerSettings.PrefixingMode.MANUAL; diff --git a/src/main/java/org/example/CommitPrefixerCheckinHandlerFactory.java b/src/main/java/org/cobalyte/CommitPrefixerCheckinHandlerFactory.java similarity index 99% rename from src/main/java/org/example/CommitPrefixerCheckinHandlerFactory.java rename to src/main/java/org/cobalyte/CommitPrefixerCheckinHandlerFactory.java index ef3fcce..69b7740 100644 --- a/src/main/java/org/example/CommitPrefixerCheckinHandlerFactory.java +++ b/src/main/java/org/cobalyte/CommitPrefixerCheckinHandlerFactory.java @@ -1,4 +1,4 @@ -package org.example; +package org.cobalyte; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.project.Project; diff --git a/src/main/java/org/example/CommitPrefixerConfigurable.java b/src/main/java/org/cobalyte/CommitPrefixerConfigurable.java similarity index 99% rename from src/main/java/org/example/CommitPrefixerConfigurable.java rename to src/main/java/org/cobalyte/CommitPrefixerConfigurable.java index 6e8d58c..a55d1b0 100644 --- a/src/main/java/org/example/CommitPrefixerConfigurable.java +++ b/src/main/java/org/cobalyte/CommitPrefixerConfigurable.java @@ -1,4 +1,4 @@ -package org.example; +package org.cobalyte; import com.intellij.openapi.options.Configurable; import com.intellij.openapi.options.ConfigurationException; diff --git a/src/main/java/org/example/CommitPrefixerSettings.java b/src/main/java/org/cobalyte/CommitPrefixerSettings.java similarity index 99% rename from src/main/java/org/example/CommitPrefixerSettings.java rename to src/main/java/org/cobalyte/CommitPrefixerSettings.java index 62eb50c..6978545 100644 --- a/src/main/java/org/example/CommitPrefixerSettings.java +++ b/src/main/java/org/cobalyte/CommitPrefixerSettings.java @@ -1,4 +1,4 @@ -package org.example; +package org.cobalyte; import com.intellij.openapi.components.*; import com.intellij.openapi.project.Project; diff --git a/src/main/java/org/example/CommitPrefixerUtil.java b/src/main/java/org/cobalyte/CommitPrefixerUtil.java similarity index 99% rename from src/main/java/org/example/CommitPrefixerUtil.java rename to src/main/java/org/cobalyte/CommitPrefixerUtil.java index e89a0d8..2234ec3 100644 --- a/src/main/java/org/example/CommitPrefixerUtil.java +++ b/src/main/java/org/cobalyte/CommitPrefixerUtil.java @@ -1,4 +1,4 @@ -package org.example; +package org.cobalyte; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.project.Project; diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 3534b5e..365a90f 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -1,7 +1,7 @@ - org.example.commit-prefixer + org.cobalyte.commit-prefixer Commit Message Prefixer - Example Vendor + Cobalyte - + - + -