![]() It’s possible to run and debug a plugin directly from the IntelliJ IDEA. Then define a class or an interface with icon constants in a top-level package called icons: The recommended way to organize icons is to put them to a dedicated icons source root marked as Resources Root, let’s say icons under resources. svg files must be placed in the META-INF folder of the plugin distribution file.įor further details see the official documentation - Plugin Logo / IntelliJ Platform SDK DevGuide Action iconĪlso to make it easier to visually recognize the desired action add an icon to it: pluginIcon_dark.svg is an optional, alternative Plugin Logo for use solely with dark IDE UI Themes.If a separate Logo file for dark UI Themes exists in the plugin, then this file is used solely for light UI Themes, pluginIcon.svg is the default Plugin Logo.Plugin Logo Requirements Naming conventionĪll the Plugin Logo images must be in SVG format and adhere to the following naming convention: Whether online or in the product UI, a Plugin Logo helps users to identify a plugin more quickly in a list. They also appear in the Settings/Preferences Plugin Manager UI in IntelliJ Platform-based IDEs. The plugin Logos are shown in Plugins RepositoryĪnd in Marketplace. This is supported beginning in version 2019.1. This is the code executed when the user triggers the action:įor the configuration via code possibility and further details check the Register actions official docs Plugin icon More details about how to use actions to access caret placed in a document open in an editor. When an action is disabled AnAction.actionPerformed() will not be called. ![]() Package import import import .AnAction import .AnActionEvent import .CommonDataKeys import .PlatformDataKeys import .Editor import .Project import .VirtualFile import import java.io.UnsupportedEncodingException import public class SaveToCodeverAction extends AnAction Let’s see the main class and then split into pieces and explain it individually:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |