modifiedContents = new ArrayList<>();
diff --git a/src/main/java/com/devoxx/genie/ui/renderer/FileListCellRenderer.java b/src/main/java/com/devoxx/genie/ui/renderer/FileListCellRenderer.java
deleted file mode 100644
index b622fed8..00000000
--- a/src/main/java/com/devoxx/genie/ui/renderer/FileListCellRenderer.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package com.devoxx.genie.ui.renderer;
-
-import com.intellij.openapi.project.Project;
-import com.intellij.openapi.vfs.VirtualFile;
-
-import javax.swing.*;
-import java.awt.*;
-
-public class FileListCellRenderer extends DefaultListCellRenderer {
-
- private final Project project;
-
- public FileListCellRenderer(Project project) {
- this.project = project;
- }
-
- @Override
- public Component getListCellRendererComponent(JList> list,
- Object value,
- int index,
- boolean isSelected,
- boolean cellHasFocus) {
- JLabel label = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
-
- if (value instanceof VirtualFile file) {
- // label.setIcon(FileTypeIconUtil.getFileTypeIcon(project, file));
- label.setText(file.getName());
- }
-
- return label;
- }
-}
diff --git a/src/main/java/com/devoxx/genie/ui/settings/DevoxxGenieStateService.java b/src/main/java/com/devoxx/genie/ui/settings/DevoxxGenieStateService.java
index 0b4412a5..2688336c 100644
--- a/src/main/java/com/devoxx/genie/ui/settings/DevoxxGenieStateService.java
+++ b/src/main/java/com/devoxx/genie/ui/settings/DevoxxGenieStateService.java
@@ -43,7 +43,6 @@ public static DevoxxGenieStateService getInstance() {
private Boolean showExecutionTime = true;
// Git Diff features
- private Boolean useDiffMerge = false;
private Boolean useSimpleDiff = false;
// Local LLM URL fields
diff --git a/src/main/java/com/devoxx/genie/ui/settings/gitmerge/GitDiffMode.java b/src/main/java/com/devoxx/genie/ui/settings/gitmerge/GitDiffMode.java
index b749a572..0e4d2bcb 100644
--- a/src/main/java/com/devoxx/genie/ui/settings/gitmerge/GitDiffMode.java
+++ b/src/main/java/com/devoxx/genie/ui/settings/gitmerge/GitDiffMode.java
@@ -2,39 +2,6 @@
public enum GitDiffMode {
DISABLED("Disabled", "", ""),
- DIFF_MERGE("Git Diff Merge", "/images/diff_merge.jpg",
- """
-
-
-
-
-
- Three-panel comparison
-
Shows three-way comparison between original, suggested, and merged changes
-
- - Left panel: Original file labeled "Original code"
- - Center panel: Merge result labeled "Merged"
- - Right panel: LLM's modified version labeled "LLM suggested"
-
-
- """),
SIMPLE_DIFF("Simple Git Diff", "/images/simple_diff.jpg",
"""
diff --git a/src/main/java/com/devoxx/genie/ui/settings/gitmerge/GitMergeSettingsComponent.java b/src/main/java/com/devoxx/genie/ui/settings/gitmerge/GitMergeSettingsComponent.java
index a4ef9a67..5a3d330c 100644
--- a/src/main/java/com/devoxx/genie/ui/settings/gitmerge/GitMergeSettingsComponent.java
+++ b/src/main/java/com/devoxx/genie/ui/settings/gitmerge/GitMergeSettingsComponent.java
@@ -52,9 +52,7 @@ public Component getListCellRendererComponent(JList> list, Object value,
}
private GitDiffMode determineCurrentMode() {
- if (stateService.getUseDiffMerge()) {
- return GitDiffMode.DIFF_MERGE;
- } else if (stateService.getUseSimpleDiff()) {
+ if (stateService.getUseSimpleDiff()) {
return GitDiffMode.SIMPLE_DIFF;
}
return GitDiffMode.DISABLED;
diff --git a/src/main/java/com/devoxx/genie/ui/settings/gitmerge/GitMergeSettingsConfigurable.java b/src/main/java/com/devoxx/genie/ui/settings/gitmerge/GitMergeSettingsConfigurable.java
index 88d66f87..62fc8406 100644
--- a/src/main/java/com/devoxx/genie/ui/settings/gitmerge/GitMergeSettingsConfigurable.java
+++ b/src/main/java/com/devoxx/genie/ui/settings/gitmerge/GitMergeSettingsConfigurable.java
@@ -49,7 +49,6 @@ public void apply() {
DevoxxGenieStateService stateService = DevoxxGenieStateService.getInstance();
GitDiffMode selectedMode = (GitDiffMode) diffSettingsComponent.getGitDiffModeComboBox().getSelectedItem();
- stateService.setUseDiffMerge(selectedMode == GitDiffMode.DIFF_MERGE);
stateService.setUseSimpleDiff(selectedMode == GitDiffMode.SIMPLE_DIFF);
}
@@ -61,9 +60,7 @@ public void reset() {
}
private GitDiffMode determineCurrentMode(@NotNull DevoxxGenieStateService stateService) {
- if (stateService.getUseDiffMerge()) {
- return GitDiffMode.DIFF_MERGE;
- } else if (stateService.getUseSimpleDiff()) {
+ if (stateService.getUseSimpleDiff()) {
return GitDiffMode.SIMPLE_DIFF;
}
return GitDiffMode.DISABLED;
diff --git a/src/main/java/com/devoxx/genie/ui/util/SettingsDialogUtil.java b/src/main/java/com/devoxx/genie/ui/util/SettingsDialogUtil.java
index 2fa2ed03..e139ca96 100644
--- a/src/main/java/com/devoxx/genie/ui/util/SettingsDialogUtil.java
+++ b/src/main/java/com/devoxx/genie/ui/util/SettingsDialogUtil.java
@@ -5,9 +5,6 @@
public class SettingsDialogUtil {
- /**
- * Show the settings dialog.
- */
public static void showSettingsDialog(Project project) {
ShowSettingsUtil.getInstance().showSettingsDialog(project, "DevoxxGenie");
}
diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml
index 4d4ae2ce..e05bb4d8 100644
--- a/src/main/resources/META-INF/plugin.xml
+++ b/src/main/resources/META-INF/plugin.xml
@@ -35,6 +35,10 @@
]]>
v0.3.1
+
+ - Feature #339: Use simple Git Diff using com.intellij.diff.DiffManagerEx
+
v0.3.0
- Feature #339: Git Merge Diff
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index cd4109b7..d9526910 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -1,2 +1,2 @@
-#Mon Dec 02 18:40:46 CET 2024
-version=0.2.30
+#Wed Dec 04 16:52:16 CET 2024
+version=0.3.1