-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d44ab8
commit 37c6063
Showing
38 changed files
with
218 additions
and
199 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
src/main/java/com/github/damiano1996/intellijplugin/incoder/InCoderIcons.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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
|
||
package com.github.damiano1996.intellijplugin.incoder; | ||
|
||
import com.intellij.openapi.util.IconLoader; | ||
import javax.swing.*; | ||
|
||
/** | ||
* This class provides access to icons used in the InCoder plugin. | ||
*/ | ||
public class InCoderIcons { | ||
/** | ||
* The icon representing the InCoder plugin. It is loaded from the resource file located at /META-INF/pluginIcon.svg. | ||
*/ | ||
public static Icon PLUGIN_ICON = | ||
IconLoader.getIcon("/META-INF/pluginIcon.svg", InCoderIcons.class); | ||
} |
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
14 changes: 14 additions & 0 deletions
14
...java/com/github/damiano1996/intellijplugin/incoder/completion/CodeCompletionListener.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 |
---|---|---|
@@ -1,8 +1,22 @@ | ||
|
||
package com.github.damiano1996.intellijplugin.incoder.completion; | ||
|
||
/** | ||
* Interface for handling code completion events in the InCoder plugin. | ||
*/ | ||
public interface CodeCompletionListener { | ||
|
||
/** | ||
* Called when a code completion prediction is available. | ||
* | ||
* @param prediction The predicted code snippet or suggestion. | ||
*/ | ||
void onCodeCompletionPrediction(String prediction); | ||
|
||
/** | ||
* Called when an error occurs during code completion processing. | ||
* | ||
* @param throwable The exception that caused the error. | ||
*/ | ||
void onCodeCompletionError(Throwable throwable); | ||
} |
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
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
Oops, something went wrong.