-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Provide a language servers console like vscode (#838)
Fixes #838 Signed-off-by: azerr <[email protected]>
- Loading branch information
1 parent
6dcb518
commit 27703d6
Showing
45 changed files
with
2,128 additions
and
337 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
10 changes: 10 additions & 0 deletions
10
src/main/java/com/redhat/devtools/intellij/microprofile/lang/MicroProfileIcons.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,10 @@ | ||
package com.redhat.devtools.intellij.microprofile.lang; | ||
|
||
import com.intellij.openapi.util.IconLoader; | ||
|
||
import javax.swing.*; | ||
|
||
public class MicroProfileIcons { | ||
|
||
public static final Icon MicroProfile = IconLoader.findIcon("/microprofile_icon_rgb_16px_default.png", MicroProfileIcons.class); | ||
} |
13 changes: 13 additions & 0 deletions
13
...n/java/com/redhat/devtools/intellij/microprofile/lang/MicroProfileServerIconProvider.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,13 @@ | ||
package com.redhat.devtools.intellij.microprofile.lang; | ||
|
||
import com.redhat.devtools.intellij.quarkus.lsp4ij.ServerIconProvider; | ||
|
||
import javax.swing.*; | ||
|
||
public class MicroProfileServerIconProvider implements ServerIconProvider { | ||
|
||
@Override | ||
public Icon getIcon() { | ||
return MicroProfileIcons.MicroProfile; | ||
} | ||
} |
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
src/main/java/com/redhat/devtools/intellij/quarkus/lang/QuarkusServerIconProvider.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,14 @@ | ||
package com.redhat.devtools.intellij.quarkus.lang; | ||
|
||
import com.redhat.devtools.intellij.microprofile.lang.MicroProfileIcons; | ||
import com.redhat.devtools.intellij.quarkus.lsp4ij.ServerIconProvider; | ||
|
||
import javax.swing.*; | ||
|
||
public class QuarkusServerIconProvider implements ServerIconProvider { | ||
|
||
@Override | ||
public Icon getIcon() { | ||
return QuarkusIconProvider.QUARKUS_ICON; | ||
} | ||
} |
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
16 changes: 16 additions & 0 deletions
16
...ava/com/redhat/devtools/intellij/quarkus/lsp4ij/LanguageServerIconProviderDefinition.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,16 @@ | ||
package com.redhat.devtools.intellij.quarkus.lsp4ij; | ||
|
||
import javax.swing.*; | ||
|
||
public class LanguageServerIconProviderDefinition { | ||
|
||
private final ServerIconProviderExtensionPointBean extension; | ||
|
||
public LanguageServerIconProviderDefinition(ServerIconProviderExtensionPointBean extension) { | ||
this.extension = extension; | ||
} | ||
|
||
public Icon getIcon() { | ||
return extension.getInstance().getIcon(); | ||
} | ||
} |
Oops, something went wrong.