-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
23 changed files
with
169 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
## 0.0.2 | ||
|
||
- Fixed plugin crash when JavaFX is not present | ||
- Added player controls (play, pause, loop) | ||
- Updated bodymovin to 4.5.7 | ||
|
||
## 0.0.1 | ||
|
||
- Initial release |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package net.olegg.bodylookin | ||
|
||
import com.intellij.openapi.components.ApplicationComponent | ||
|
||
/** | ||
* Created by olegg on 2/15/17. | ||
*/ | ||
class BodylookinPlugin : ApplicationComponent { | ||
|
||
override fun getComponentName() = javaClass.name | ||
|
||
val hasJavafx: Boolean by lazy { | ||
try { | ||
Class.forName("javafx.application.Platform") | ||
return@lazy true | ||
} catch (e: Exception) { | ||
return@lazy false | ||
} | ||
} | ||
|
||
override fun initComponent() { } | ||
|
||
override fun disposeComponent() { } | ||
} |
This file was deleted.
Oops, something went wrong.
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 net.olegg.bodylookin | ||
|
||
import com.intellij.openapi.util.IconLoader | ||
|
||
/** | ||
* Created by olegg on 2/19/17. | ||
*/ | ||
object Icons { | ||
fun load(path: String) = IconLoader.getIcon(path) | ||
|
||
val LOAD = load("/icons/wiggle.png") | ||
val OPEN = load("/icons/in.png") | ||
val PLAY = load("/icons/play.png") | ||
val PAUSE = load("/icons/pause.png") | ||
val LOOP = load("/icons/repeat.png") | ||
} |
This file was deleted.
Oops, something went wrong.
15 changes: 13 additions & 2 deletions
15
src/main/kotlin/net/olegg/bodylookin/toolwindow/BodylookinFactory.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 |
---|---|---|
@@ -1,19 +1,30 @@ | ||
package net.olegg.bodylookin.toolwindow | ||
|
||
import com.intellij.openapi.application.ApplicationManager | ||
import com.intellij.openapi.project.Project | ||
import com.intellij.openapi.wm.ToolWindow | ||
import com.intellij.openapi.wm.ToolWindowFactory | ||
import com.intellij.ui.components.JBLabel | ||
import com.intellij.ui.content.ContentFactory | ||
import com.intellij.util.ui.UIUtil | ||
import net.olegg.bodylookin.BodylookinPlugin | ||
import javax.swing.JComponent | ||
|
||
/** | ||
* Created by olegg on 2/12/17. | ||
*/ | ||
class BodylookinFactory: ToolWindowFactory { | ||
|
||
override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) { | ||
val view = BodylookinView() | ||
val view : JComponent = if (ApplicationManager.getApplication().getComponent(BodylookinPlugin::class.java).hasJavafx) { | ||
BodylookinView() | ||
} else { | ||
JBLabel("""<html>Unable to instantiate JavaFX. | ||
<br/><br/> | ||
Please launch IDE using JDK with JavaFX bundled.</html>""", UIUtil.ComponentStyle.LARGE) | ||
} | ||
|
||
val content = ContentFactory.SERVICE.getInstance().createContent(view, null, false) | ||
toolWindow.contentManager.addContent(content) | ||
//val json = javaClass.classLoader.getResource("/data.json").readText() | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
<idea-plugin> | ||
<id>net.olegg.bodylookin</id> | ||
<name>bodylookin</name> | ||
<version>0.0.1</version> | ||
<vendor email="[email protected]">Oleg Godovykh</vendor> | ||
|
||
<description><![CDATA[ | ||
|
@@ -10,6 +9,12 @@ | |
</description> | ||
|
||
<change-notes><![CDATA[ | ||
<b>0.0.2</b> | ||
<ul> | ||
<li>Fixed plugin crash when JavaFX is not present</li> | ||
<li>Added player controls (play, pause, loop)</li> | ||
<li>Updated bodymovin to 4.5.7</li> | ||
</ul> | ||
<b>0.0.1</b> | ||
<ul> | ||
<li>Initial release</li> | ||
|
@@ -20,25 +25,19 @@ | |
<depends>com.intellij.modules.lang</depends> | ||
<idea-version since-build="145"/> | ||
|
||
<application-components> | ||
<component> | ||
<implementation-class>net.olegg.bodylookin.BodylookinPlugin</implementation-class> | ||
</component> | ||
</application-components> | ||
|
||
<extensions defaultExtensionNs="com.intellij"> | ||
<toolWindow | ||
id="bodylookin" | ||
anchor="right" | ||
secondary="true" | ||
icon="/icons/wave.png" | ||
factoryClass="net.olegg.bodylookin.toolwindow.BodylookinFactory" | ||
/> | ||
</extensions> | ||
|
||
<actions> | ||
<group id="bodylookin.ActionGroup"> | ||
<action | ||
class="net.olegg.bodylookin.action.LookAction" | ||
id="bodylookin.LookAction" | ||
text="bodylookin" | ||
icon="/icons/wave.png" | ||
/> | ||
<add-to-group group-id="ToolsMenu" anchor="last"/> | ||
</group> | ||
</actions> | ||
|
||
</idea-plugin> |
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.