osmorc/resources/META-INF/plugin.xml (4 lines of code) (raw):

<!-- ~ Copyright (c) 2007-2009, Osmorc Development Team ~ All rights reserved. ~ ~ Redistribution and use in source and binary forms, with or without modification, ~ are permitted provided that the following conditions are met: ~ * Redistributions of source code must retain the above copyright notice, this list ~ of conditions and the following disclaimer. ~ * Redistributions in binary form must reproduce the above copyright notice, this ~ list of conditions and the following disclaimer in the documentation and/or other ~ materials provided with the distribution. ~ * Neither the name of 'Osmorc Development Team' nor the names of its contributors may be ~ used to endorse or promote products derived from this software without specific ~ prior written permission. ~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY ~ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ~ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ~ THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ~ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT ~ OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ~ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR ~ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, ~ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> <idea-plugin> <id>Osmorc</id> <name>OSGi</name> <description><![CDATA[ <p>Adds support for the development of OSGi-based applications.</p> <ol> <li>Open <b>Settings | OSGI | IDE Settings | Framework Definitions</b>.</li> <li>Add the OSGi framework that you want to work with (Equinox, Felix, etc.).</li> <li>Add the OSGi facet to any module that should be an OSGi bundle.</li> <li>You can either write your own manifest or let the plugin calculate the manifest for you.</li> </ol> <p> To run an OSGi bundle, create a new OSGi run configuration and select the framework that you set up in the first step. Then add the bundles you want to run. The plugin will run all dependencies automatically, so you don't need to manually add them. Finally run the newly created run configuration. If you chose to enable the OSGi console, you can then send commands to the OSGi container and start/stop bundles. </p> ]]></description> <category>JVM Frameworks</category> <vendor>JetBrains</vendor> <dependencies> <plugin id="com.intellij.java"/> <!-- region Generated dependencies - run `Generate Product Layouts` to regenerate --> <module name="intellij.libraries.plexus.utils"/> <!-- endregion --> </dependencies> <content namespace="jetbrains"> <module name="intellij.osgi/javaee"/> </content> <depends optional="true" config-file="osgi-maven-support.xml">org.jetbrains.idea.maven</depends> <resource-bundle>messages.OsmorcBundle</resource-bundle> <extensionPoints> <extensionPoint name="frameworkIntegrator" interface="org.osmorc.frameworkintegration.FrameworkIntegrator" dynamic="true"/> </extensionPoints> <extensions defaultExtensionNs="com.intellij"> <postStartupActivity implementation="org.jetbrains.osgi.bnd.imp.ReimportPostStartupActivity"/> <vfs.asyncListener implementation="org.jetbrains.osgi.bnd.imp.ReimportPostStartupActivity$FileListener"/> <projectImportProvider implementation="org.jetbrains.osgi.bnd.imp.BndProjectImportProvider"/> <projectImportProvider implementation="org.jetbrains.osgi.bnd.imp.BndModuleImportProvider"/> <fileType name="bnd" implementationClass="org.jetbrains.osgi.bnd.BndFileType" fieldName="INSTANCE" extensions="bnd" language="bnd"/> <applicationService serviceImplementation="org.osmorc.settings.ApplicationSettings"/> <applicationService serviceImplementation="org.osmorc.frameworkintegration.FrameworkIntegratorRegistry"/> <applicationService serviceImplementation="org.jetbrains.osgi.project.BundleManifestCache"/> <moduleService serviceImplementation="org.osmorc.impl.AdditionalJARContentsWatcherManager"/> <manifest.parser.provider implementation="org.osmorc.manifest.lang.header.OsgiManifestHeaderParsers"/> <manifest.parser.provider implementation="org.osmorc.manifest.lang.header.BndManifestHeaderParsers"/> <manifest.parser.provider implementation="org.osmorc.manifest.lang.header.EquinoxManifestHeaderParsers"/> <colorSettingsPage implementation="org.osmorc.manifest.lang.OsgiManifestColorsAndFontsPage"/> <annotator language="Manifest" implementationClass="org.osmorc.manifest.lang.OsgiManifestHighlightingAnnotator"/> <completion.contributor language="Manifest" implementationClass="org.osmorc.manifest.completion.OsgiManifestCompletionContributor"/> <configurationType implementation="org.osmorc.run.OsgiConfigurationType"/> <configurationType implementation="org.jetbrains.osgi.bnd.run.BndRunConfigurationType"/> <runConfigurationProducer implementation="org.jetbrains.osgi.bnd.run.BndRunConfigurationProducer$Launch"/> <runConfigurationProducer implementation="org.jetbrains.osgi.bnd.run.BndRunConfigurationProducer$Test"/> <stacktrace.fold substring="at aQute.launcher."/> <stacktrace.fold substring="at aQute.junit."/> <localInspection bundle="messages.OsmorcBundle" key="UnregisteredActivatorInspection.name" groupBundle="messages.OsmorcBundle" groupKey="inspection.group" enabledByDefault="true" level="ERROR" implementationClass="org.osmorc.inspection.UnregisteredActivatorInspection"/> <localInspection bundle="messages.OsmorcBundle" key="ClassInDefaultPackageInspection.name" groupBundle="messages.OsmorcBundle" groupKey="inspection.group" enabledByDefault="true" level="ERROR" implementationClass="org.osmorc.inspection.ClassInDefaultPackageInspection"/> <localInspection bundle="messages.OsmorcBundle" key="PackageAccessibilityInspection.name" groupBundle="messages.OsmorcBundle" groupKey="inspection.group" enabledByDefault="true" level="ERROR" implementationClass="org.osmorc.inspection.PackageAccessibilityInspection"/> <localInspection bundle="messages.OsmorcBundle" key="WrongImportPackageInspection.name" groupBundle="messages.OsmorcBundle" groupKey="inspection.group" language="Manifest" enabledByDefault="true" level="ERROR" implementationClass="org.osmorc.inspection.WrongImportPackageInspection"/> <deadCode implementation="org.jetbrains.osgi.highlighting.OsgiEntryPoint"/> <facetType implementation="org.osmorc.facet.OsmorcFacetType"/> <framework.detector implementation="org.osmorc.facet.OsmorcFrameworkDetector"/> <framework.detector implementation="org.osmorc.facet.BndOsmorcFrameworkDetector"/> <frameworkSupport implementation="org.osmorc.facet.OsgiFrameworkSupportProvider"/> <library.type implementation="org.osmorc.facet.OsgiCoreLibraryType"/> <library.dependencyScopeSuggester implementation="org.osmorc.facet.OsgiLibraryDependencyScopeSuggester"/> <standardResourceProvider implementation="org.jetbrains.osgi.xml.OsgiResourceProvider"/> <compileServer.plugin classpath="osgi-jps.jar;biz.aQute.bndlib-5.3.0.jar;biz.aQute.repository-5.3.0.jar;biz.aQute.resolve-5.3.0.jar;bundlor-all.jar"/> <refactoring.elementListenerProvider implementation="org.osmorc.facet.OsmorcFacetRefactoringListenerProvider"/> <projectConfigurable groupId="language" id="reference.settings.project.osgi.project.settings" bundle="messages.OsmorcBundle" key="settings.project" instance="org.osmorc.settings.ProjectSettingsEditor"/> <applicationConfigurable groupId="language" id="osmorc.ide.settings" bundle="messages.OsmorcBundle" key="settings.application" instance="org.osmorc.settings.ApplicationSettingsEditor"> <configurable id="reference.settings.project.osgi.library.bundling" bundle="messages.OsmorcBundle" key="settings.application.bundling" instance="org.osmorc.settings.LibraryBundlingEditor"/> </applicationConfigurable> <notificationGroup id="OSGi" displayType="BALLOON" bundle="messages.OsmorcBundle" key="notification.group.main"/> <notificationGroup id="OSGi-important" displayType="STICKY_BALLOON" bundle="messages.OsmorcBundle" key="notification.group.important"/> <notificationGroup id="OSGi-bnd" displayType="STICKY_BALLOON" bundle="messages.OsmorcBundle" key="notification.group.bnd" /> </extensions> <extensions defaultExtensionNs="Osmorc"> <frameworkIntegrator implementation="org.osmorc.frameworkintegration.impl.equinox.EquinoxIntegrator"/> <frameworkIntegrator implementation="org.osmorc.frameworkintegration.impl.knopflerfish.KnopflerfishIntegrator"/> <frameworkIntegrator implementation="org.osmorc.frameworkintegration.impl.felix.FelixIntegrator"/> <frameworkIntegrator implementation="org.osmorc.frameworkintegration.impl.concierge.ConciergeIntegrator"/> </extensions> <projectListeners> <listener class="org.osmorc.run.OsmorcModuleRenameHandler" topic="com.intellij.openapi.project.ModuleListener"/> <listener class="org.osmorc.run.OsmorcFrameworkDefinitionListener" topic="org.osmorc.settings.FrameworkDefinitionListener"/> <listener class="org.osmorc.impl.AdditionalJARContentsWatcherManager$FacetListener" topic="com.intellij.facet.FacetManagerListener"/> <listener class="org.osmorc.impl.AdditionalJARContentsWatcherManager$ProjectListener" topic="com.intellij.openapi.project.ProjectCloseListener"/> </projectListeners> <actions> <action id="osgi.bnd.reimport" icon="OsmorcIdeaIcons.Bnd" class="org.jetbrains.osgi.bnd.imp.ReimportProjectsAction"> <add-to-group group-id="ProjectViewPopupMenu" anchor="last"/> </action> <action id="osgi.bnd.reimport.all" icon="OsmorcIdeaIcons.Bnd" class="org.jetbrains.osgi.bnd.imp.ReimportWorkspaceAction"> <add-to-group group-id="ProjectViewPopupMenu" anchor="last"/> </action> <action id="osgi.bnd.resolve.bndrun" icon="OsmorcIdeaIcons.Bnd" class="org.jetbrains.osgi.bnd.resolve.ResolveAction"> <add-to-group group-id="ProjectViewPopupMenu" anchor="last"/> <add-to-group group-id="EditorPopupMenu" anchor="last"/> </action> <group id="osmorc.viewGeneratedManifests" popup="true" class="org.osmorc.make.ViewGeneratedManifestGroup"> <add-to-group group-id="ToolsMenu" anchor="last"/> </group> </actions> </idea-plugin>