mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
[md] plugin plugin dependencies section extracted
This commit is contained in:
parent
8de50ffce6
commit
aab4789918
@ -20,7 +20,7 @@
|
||||
* [Plugin Actions](plugin_actions.html)
|
||||
* [Plugin Services](plugin_services.html)
|
||||
* [Plugin Configuration File](plugin_configuration_file.html)
|
||||
* [Plugin Dependencies](TODO)
|
||||
* [Plugin Dependencies](plugin_dependencies.html)
|
||||
* [Architectural Overview](architectural_overview.html)
|
||||
* [Structure of Project](project_structure.html)
|
||||
* [Action System](action_system.html)
|
||||
|
19
plugin_dependencies.md
Normal file
19
plugin_dependencies.md
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
layout: editable
|
||||
title: Plugin Dependencies
|
||||
---
|
||||
|
||||
In your plugin, you may depend on classes from other plugins, either bundled, third-party or your own.
|
||||
In order to do so, you need to perform the following two steps:
|
||||
|
||||
* Add the jars of the plugin you're depending on to the classpath of your IntelliJ IDEA SDK.
|
||||
(**Note**: Don't add the plugin jars as a library: this will fail at runtime because IntelliJ IDEA will load two separate copies of the dependency plugin classes.)
|
||||
|
||||
* Add a <depends> tag to your plugin.xml, adding the ID of the plugin you're depending on as the contents of the tag.
|
||||
For example:
|
||||
|
||||
```xml
|
||||
<depends>org.jetbrains.idea.maven</depends>
|
||||
```
|
||||
|
||||
To find out the ID of the plugin you're depending on, locate the META-INF/plugin.xml file inside its jar and check the contents of the <id> tag.
|
@ -31,22 +31,4 @@ The following subjects are covered:
|
||||
|
||||
* [Plugin Configuration File](plugin_configuration_file.html)
|
||||
|
||||
* [Plugin Dependencies](TODO)
|
||||
|
||||
|
||||
# Plugin Dependencies
|
||||
|
||||
In your plugin, you may depend on classes from other plugins, either bundled, third-party or your own.
|
||||
In order to do so, you need to perform the following two steps:
|
||||
|
||||
* Add the jars of the plugin you're depending on to the classpath of your IntelliJ IDEA SDK.
|
||||
(**Note**: Don't add the plugin jars as a library: this will fail at runtime because IntelliJ IDEA will load two separate copies of the dependency plugin classes.)
|
||||
|
||||
* Add a <depends> tag to your plugin.xml, adding the ID of the plugin you're depending on as the contents of the tag.
|
||||
For example:
|
||||
|
||||
```xml
|
||||
<depends>org.jetbrains.idea.maven</depends>
|
||||
```
|
||||
|
||||
To find out the ID of the plugin you're depending on, locate the META-INF/plugin.xml file inside its jar and check the contents of the <id> tag.
|
||||
* [Plugin Dependencies](plugin_dependencies.html)
|
Loading…
x
Reference in New Issue
Block a user