mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
* switch to 242, update gh-ic links * fix link * fix link * fix link * fix link * regen EP lists still some diff between 242 and EAP8 * convert gh-ic-master links * GH code-samples: update PV IDE versions * code samples: adjust target IDE&since/until values * regen EP lists from release branch * intellij_community_plugins_extension_point_list.md: fix duplicate heading * intellij_community_plugins_extension_point_list.md: fix DevKit.lang.visitorProviderForRBCInspection EP * GH: update PV versions * 2024.2 GA
Maximum Open Projects Sample 
Reference: Plugin Services in IntelliJ SDK Docs
Quickstart
Maximum Open Projects Sample implements a StartupActivity
extension point to run on project open as well as a
ProjectManagerListener
for tracking projects being closed.
Both use ProjectCountingService
application-level light service.
It provides methods to increase and decrease the counter of currently opened projects in the IDE.
When opening more projects than the maximum allowed (3), a message dialog is shown.
Extension Points
Name | Implementation | Extension Point Class |
---|---|---|
com.intellij.postStartupActivity |
ProjectOpenStartupActivity | StartupActivity |
Application Listeners
Name | Implementation | Listener Class |
---|---|---|
listener | ProjectOpenCloseListener | ProjectManagerListener |
Reference: Plugin Listeners in IntelliJ SDK Docs