Use correct path to resources.

The 'best practices' recommends putting in subdirectory of resources, and the image actually shows the items in /resources/icons.
This commit is contained in:
Flamenco 2018-01-01 08:54:46 -05:00 committed by GitHub
parent a6d7b0204f
commit 54a1f7ab22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,9 +14,9 @@ The `getIcon()` method of [`com.intellij.openapi.util.IconLoader`](upsource:///p
```java
public interface DemoPluginIcons {
Icon STRUCTURE_TOOL_WINDOW = IconLoader.getIcon("/toolWindowStructure.png");
Icon MY_LANG_FILE_TYPE = IconLoader.getIcon("/myLangFileType.png");
Icon DEMO_ACTION = IconLoader.getIcon("/demoAction.png");
Icon STRUCTURE_TOOL_WINDOW = IconLoader.getIcon("/icons/toolWindowStructure.png");
Icon MY_LANG_FILE_TYPE = IconLoader.getIcon("/icons/myLangFileType.png");
Icon DEMO_ACTION = IconLoader.getIcon("/icons/demoAction.png");
}
```