commit 0c09a2004bd580dedbeca06a6dbce92466dc72a3 Author: Anna Bulenkova Date: Wed Dec 3 16:43:01 2014 +0100 Dummy plugin stub to illustrate plugin.xml diff --git a/plugin_sample/META-INF/plugin.xml b/plugin_sample/META-INF/plugin.xml new file mode 100644 index 000000000..ea08927bd --- /dev/null +++ b/plugin_sample/META-INF/plugin.xml @@ -0,0 +1,90 @@ + + Tutorial + Basic plugin example + 1.0 + JetBrains + Samples + JetBrains + + most HTML tags may be used + ]]> + + most HTML tags may be used + ]]> + + + + + + + + com.intellij.modules.lang + + + + + + + + + + + org.jetbrains.plugins.sample.PluginSampleBundle + + + + + + org.jetbrains.plugins.sample.DummyApplicationComponent + + org.jetbrains.plugins.sample.DummyApplicationComponentImpl + + + + + + + + org.jetbrains.plugins.sample.DummyProjectComponent + org.jetbrains.plugins.sample.DummyProjectComponentImpl + + + + + + + + + org.jetbrains.plugins.sample.DummyModuleComponent + org.jetbrains.plugins.sample.DummyModuleComponentImpl + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugin_sample/PluginSample.iml b/plugin_sample/PluginSample.iml new file mode 100644 index 000000000..493dcb361 --- /dev/null +++ b/plugin_sample/PluginSample.iml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugin_sample/resources/org.jetbrains.plugins.sample/PluginSampleBundle.properties b/plugin_sample/resources/org.jetbrains.plugins.sample/PluginSampleBundle.properties new file mode 100644 index 000000000..4b1033298 --- /dev/null +++ b/plugin_sample/resources/org.jetbrains.plugins.sample/PluginSampleBundle.properties @@ -0,0 +1 @@ +key=value \ No newline at end of file diff --git a/plugin_sample/src/org/jetbrains/plugins/sample/DummyApplicationComponent.java b/plugin_sample/src/org/jetbrains/plugins/sample/DummyApplicationComponent.java new file mode 100644 index 000000000..6b112948d --- /dev/null +++ b/plugin_sample/src/org/jetbrains/plugins/sample/DummyApplicationComponent.java @@ -0,0 +1,9 @@ +package org.jetbrains.plugins.sample; + +import com.intellij.openapi.components.ApplicationComponent; + +/** + * @author Anna Bulenkova + */ +interface DummyApplicationComponent extends ApplicationComponent{ +} diff --git a/plugin_sample/src/org/jetbrains/plugins/sample/DummyApplicationComponentImpl.java b/plugin_sample/src/org/jetbrains/plugins/sample/DummyApplicationComponentImpl.java new file mode 100644 index 000000000..0069f88f6 --- /dev/null +++ b/plugin_sample/src/org/jetbrains/plugins/sample/DummyApplicationComponentImpl.java @@ -0,0 +1,24 @@ +package org.jetbrains.plugins.sample; + +import org.jetbrains.annotations.NotNull; + +/** + * @author Anna Bulenkova + */ +public class DummyApplicationComponentImpl implements DummyApplicationComponent { + @Override + public void initComponent() { + + } + + @Override + public void disposeComponent() { + + } + + @NotNull + @Override + public String getComponentName() { + return null; + } +} diff --git a/plugin_sample/src/org/jetbrains/plugins/sample/DummyModuleComponent.java b/plugin_sample/src/org/jetbrains/plugins/sample/DummyModuleComponent.java new file mode 100644 index 000000000..68f1e9fbe --- /dev/null +++ b/plugin_sample/src/org/jetbrains/plugins/sample/DummyModuleComponent.java @@ -0,0 +1,9 @@ +package org.jetbrains.plugins.sample; + +import com.intellij.openapi.module.ModuleComponent; + +/** + * @author Anna Bulenkova + */ +public interface DummyModuleComponent extends ModuleComponent{ +} diff --git a/plugin_sample/src/org/jetbrains/plugins/sample/DummyModuleComponentImpl.java b/plugin_sample/src/org/jetbrains/plugins/sample/DummyModuleComponentImpl.java new file mode 100644 index 000000000..9305c5acc --- /dev/null +++ b/plugin_sample/src/org/jetbrains/plugins/sample/DummyModuleComponentImpl.java @@ -0,0 +1,39 @@ +package org.jetbrains.plugins.sample; + +import org.jetbrains.annotations.NotNull; + +/** + * @author Anna Bulenkova + */ +public class DummyModuleComponentImpl implements DummyModuleComponent { + @Override + public void projectOpened() { + + } + + @Override + public void projectClosed() { + + } + + @Override + public void moduleAdded() { + + } + + @Override + public void initComponent() { + + } + + @Override + public void disposeComponent() { + + } + + @NotNull + @Override + public String getComponentName() { + return null; + } +} diff --git a/plugin_sample/src/org/jetbrains/plugins/sample/DummyProjectComponent.java b/plugin_sample/src/org/jetbrains/plugins/sample/DummyProjectComponent.java new file mode 100644 index 000000000..fba925eeb --- /dev/null +++ b/plugin_sample/src/org/jetbrains/plugins/sample/DummyProjectComponent.java @@ -0,0 +1,9 @@ +package org.jetbrains.plugins.sample; + +import com.intellij.openapi.components.ProjectComponent; + +/** + * @author Anna Bulenkova + */ +public interface DummyProjectComponent extends ProjectComponent{ +} diff --git a/plugin_sample/src/org/jetbrains/plugins/sample/DummyProjectComponentImpl.java b/plugin_sample/src/org/jetbrains/plugins/sample/DummyProjectComponentImpl.java new file mode 100644 index 000000000..488509e3c --- /dev/null +++ b/plugin_sample/src/org/jetbrains/plugins/sample/DummyProjectComponentImpl.java @@ -0,0 +1,34 @@ +package org.jetbrains.plugins.sample; + +import org.jetbrains.annotations.NotNull; + +/** + * @author Anna Bulenkova + */ +public class DummyProjectComponentImpl implements DummyProjectComponent { + @Override + public void projectOpened() { + + } + + @Override + public void projectClosed() { + + } + + @Override + public void initComponent() { + + } + + @Override + public void disposeComponent() { + + } + + @NotNull + @Override + public String getComponentName() { + return null; + } +} diff --git a/plugin_sample/src/org/jetbrains/plugins/sample/SimpleAction.java b/plugin_sample/src/org/jetbrains/plugins/sample/SimpleAction.java new file mode 100644 index 000000000..d955582f4 --- /dev/null +++ b/plugin_sample/src/org/jetbrains/plugins/sample/SimpleAction.java @@ -0,0 +1,14 @@ +package org.jetbrains.plugins.sample; + +import com.intellij.openapi.actionSystem.AnAction; +import com.intellij.openapi.actionSystem.AnActionEvent; + +/** + * @author Anna Bulenkova + */ +public class SimpleAction extends AnAction { + @Override + public void actionPerformed(AnActionEvent anActionEvent) { + + } +}