Compare commits
6 Commits
07e158377e
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
7fd2d214fd | ||
|
f354a5358c | ||
5ad25bad2e | |||
ee26516928 | |||
50a42227b6 | |||
79391f30e3 |
@@ -17,7 +17,7 @@
|
|||||||
- [ ] Click the <kbd>Watch</kbd> button on the top of the [IntelliJ Platform Plugin Template][template] to be notified about releases containing new features and fixes.
|
- [ ] Click the <kbd>Watch</kbd> button on the top of the [IntelliJ Platform Plugin Template][template] to be notified about releases containing new features and fixes.
|
||||||
|
|
||||||
<!-- Plugin description -->
|
<!-- Plugin description -->
|
||||||
A WeChat Reading plugin supporting IDEA.
|
A WeChat Reading plugin support IDEA.
|
||||||
|
|
||||||
Full WeChat Reading functionality is available, allowing navigation using the arrow keys for reading. Please adjust the window to a suitable size before use.
|
Full WeChat Reading functionality is available, allowing navigation using the arrow keys for reading. Please adjust the window to a suitable size before use.
|
||||||
<!-- Plugin description end -->
|
<!-- Plugin description end -->
|
||||||
@@ -26,7 +26,7 @@ Full WeChat Reading functionality is available, allowing navigation using the ar
|
|||||||
|
|
||||||
- Using the IDE built-in plugin system:
|
- Using the IDE built-in plugin system:
|
||||||
|
|
||||||
<kbd>Settings/Preferences</kbd> > <kbd>Plugins</kbd> > <kbd>Marketplace</kbd> > <kbd>Search for "wxreader-Jetbrains-Plugin"</kbd> >
|
<kbd>Settings/Preferences</kbd> > <kbd>Plugins</kbd> > <kbd>Marketplace</kbd> > <kbd>Search for "WeRead-Jetbrains-Plugin"</kbd> >
|
||||||
<kbd>Install</kbd>
|
<kbd>Install</kbd>
|
||||||
|
|
||||||
- Manually:
|
- Manually:
|
||||||
|
@@ -5,11 +5,11 @@ pluginGroup = com.github.cirry.wereadjetbrainsplugin
|
|||||||
pluginName = Weread
|
pluginName = Weread
|
||||||
pluginRepositoryUrl = https://github.com/cirry/wxreader-Jetbrains-Plugin
|
pluginRepositoryUrl = https://github.com/cirry/wxreader-Jetbrains-Plugin
|
||||||
# SemVer format -> https://semver.org
|
# SemVer format -> https://semver.org
|
||||||
pluginVersion = 0.0.1
|
pluginVersion = 0.0.4
|
||||||
|
|
||||||
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
|
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
|
||||||
pluginSinceBuild = 223
|
pluginSinceBuild = 223
|
||||||
pluginUntilBuild = 233.*
|
pluginUntilBuild = 242.*
|
||||||
|
|
||||||
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
|
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
|
||||||
platformType = IC
|
platformType = IC
|
||||||
|
@@ -20,19 +20,19 @@ class MyToolWindowFactory : ToolWindowFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) {
|
override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) {
|
||||||
val myToolWindow = MyToolWindow(toolWindow)
|
val myToolWindow = MyToolWindow()
|
||||||
val content = ContentFactory.getInstance().createContent(myToolWindow.getContent(), "", false)
|
val content = ContentFactory.getInstance().createContent(myToolWindow.getContent(), "", false)
|
||||||
toolWindow.contentManager.addContent(content)
|
toolWindow.contentManager.addContent(content)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun shouldBeAvailable(project: Project) = true
|
override fun shouldBeAvailable(project: Project) = true
|
||||||
|
|
||||||
class MyToolWindow(toolWindow: ToolWindow) {
|
class MyToolWindow() {
|
||||||
fun getContent() = JBPanel<JBPanel<*>>().apply {
|
fun getContent() = JBPanel<JBPanel<*>>().apply {
|
||||||
val noSupportLabel = JBLabel(MyBundle.message("noSupport"))
|
val noSupportLabel = JBLabel(MyBundle.message("noSupport"))
|
||||||
if (JBCefApp.isSupported()) {
|
if (JBCefApp.isSupported()) {
|
||||||
val jbcef = JBCefBrowser()
|
val jbcef = JBCefBrowser()
|
||||||
jbcef.component.preferredSize = Dimension(800,900)
|
jbcef.component.preferredSize = Dimension(900,900)
|
||||||
add(jbcef.component, BorderLayout.CENTER)
|
add(jbcef.component, BorderLayout.CENTER)
|
||||||
jbcef.loadURL("https://weread.qq.com/")
|
jbcef.loadURL("https://weread.qq.com/")
|
||||||
} else {
|
} else {
|
@@ -1,6 +1,6 @@
|
|||||||
<!-- Plugin Configuration File. Read more: https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html -->
|
<!-- Plugin Configuration File. Read more: https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html -->
|
||||||
<idea-plugin>
|
<idea-plugin>
|
||||||
<id>com.github.cirry.wereadjetbrainsplugin</id>
|
<id>com.github.cirry.wxreaderjetbrainsplugin</id>
|
||||||
|
|
||||||
<name>Weread</name>
|
<name>Weread</name>
|
||||||
|
|
||||||
|
@@ -1 +1,2 @@
|
|||||||
noSupport=Your IDEA doesn't support it, please enable JCEF.
|
noSupport=Your IDEA doesn't support it, please enable JCEF.
|
||||||
|
projectService=Project service: {0}
|
||||||
|
@@ -29,11 +29,11 @@ class MyPluginTest : BasePlatformTestCase() {
|
|||||||
// myFixture.testRename("foo.xml", "foo_after.xml", "a2")
|
// myFixture.testRename("foo.xml", "foo_after.xml", "a2")
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// fun testProjectService() {
|
fun testProjectService() {
|
||||||
// val projectService = project.service<MyProjectService>()
|
val projectService = project.service<MyProjectService>()
|
||||||
//
|
|
||||||
// assertNotSame(projectService.getRandomNumber(), projectService.getRandomNumber())
|
assertNotSame(projectService.getRandomNumber(), projectService.getRandomNumber())
|
||||||
// }
|
}
|
||||||
|
|
||||||
override fun getTestDataPath() = "src/test/testData/rename"
|
override fun getTestDataPath() = "src/test/testData/rename"
|
||||||
}
|
}
|
Reference in New Issue
Block a user