Skip to content

Commit

Permalink
Merge pull request #1 from Shan1024/file-action
Browse files Browse the repository at this point in the history
Initial plugin implementation
  • Loading branch information
sameerajayasoma authored Jan 27, 2017
2 parents bca204a + 1400087 commit 6e8bec1
Show file tree
Hide file tree
Showing 213 changed files with 15,342 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

/out/
/.idea/
/ballerina-idea-plugin.iml
*.*~
10 changes: 10 additions & 0 deletions .idea/checkstyle-idea.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
# plugin-intellij
# Ballerina plugin for IntelliJ IDEA

## Building from the source

1. Clone the repository.
2. Make sure that the bundled Plugin DevKit plugin is enabled in IDEA.
3. Open the project in IDEA.
4. Configure a common JDK and an IntelliJ Platform SDK.

This can be done in **File -> Project Structure -> SDKs**.

For the IntelliJ Platform SDK, you may need to specify the directory containing the installed version of IntelliJ IDEA. By default it should offer the directory of the currently running version of IntelliJ IDEA.
5. Build the project using **Build -> Build Project**.
6. Run **Build -> Prepare Plugin Module 'ballerina-idea-plugin' For Deployment**.
7. In the project root directory, **ballerina-idea-plugin.jar** will be created.

## Installing the plugin to IDEA
1. Go to **File -> Settings** and select **Plugins**.
2. Click **Install plugin from disc** button and select the deployed plugin jar file.
3. Restart IDEA.

## Running the plugin without building
1. Follow the first 4 steps in the [Building from the source](#building-from-the-source) section.
2. Go to **Run -> Edit Configurations**.
3. Add a new **plugin** configuration.
4. Now you can run or debug the plugin directly from the IDEA.

## How to contribute
Pull requests are highly encouraged and we recommend you to create a GitHub issue to discuss the issue or feature that you are contributing to.

## License
Ballerina IDEA plugin is available under the Apache 2.0 License.

## Copyright
Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
14 changes: 14 additions & 0 deletions ballerina-idea-plugin.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PLUGIN_MODULE" version="4">
<component name="DevKit.ModuleBuildProperties" url="file://$MODULE_DIR$/resources/META-INF/plugin.xml" />
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
Loading

0 comments on commit 6e8bec1

Please sign in to comment.