-
-
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.
feat(preview panel): render updated file
- Loading branch information
Showing
8 changed files
with
64 additions
and
208 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
12 changes: 12 additions & 0 deletions
12
src/main/kotlin/com/asyncapi/plugin/idea/extensions/editor/ui/AsyncAPIHtmlPanel.kt
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,12 @@ | ||
package com.asyncapi.plugin.idea.extensions.editor.ui | ||
|
||
import com.intellij.openapi.Disposable | ||
import javax.swing.JComponent | ||
|
||
interface AsyncAPIHtmlPanel: Disposable { | ||
|
||
fun getComponent(): JComponent | ||
|
||
fun setHtml(html: String) | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
src/main/kotlin/com/asyncapi/plugin/idea/extensions/editor/ui/AsyncAPIJCEFHtmlPanel.kt
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,17 @@ | ||
package com.asyncapi.plugin.idea.extensions.editor.ui | ||
|
||
import com.intellij.openapi.editor.Editor | ||
import com.intellij.ui.jcef.JCEFHtmlPanel | ||
import javax.swing.JComponent | ||
|
||
class AsyncAPIJCEFHtmlPanel( | ||
var editor: Editor?, | ||
): AsyncAPIHtmlPanel, JCEFHtmlPanel(null) { | ||
|
||
override fun getComponent(): JComponent = super.getComponent() | ||
|
||
override fun setHtml(html: String) { | ||
loadHTML(html, cefBrowser.url) | ||
} | ||
|
||
} |
19 changes: 0 additions & 19 deletions
19
src/main/kotlin/com/asyncapi/plugin/idea/extensions/ui/AsyncAPIHtmlPanel.kt
This file was deleted.
Oops, something went wrong.
102 changes: 0 additions & 102 deletions
102
src/main/kotlin/com/asyncapi/plugin/idea/extensions/ui/AsyncAPIHtmlPanelProvider.kt
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
src/main/kotlin/com/asyncapi/plugin/idea/extensions/ui/preview/jcef/AsyncAPIJCEFHtmlPanel.kt
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...tlin/com/asyncapi/plugin/idea/extensions/ui/preview/jcef/AsyncAPIJCEFHtmlPanelProvider.kt
This file was deleted.
Oops, something went wrong.