Skip to content

Commit 0504fd1

Browse files
committed
provide icons
1 parent 6d96b42 commit 0504fd1

File tree

8 files changed

+218
-20
lines changed

8 files changed

+218
-20
lines changed

files/icons/vue_js_toolbox.svg

+96
Loading
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
package de.espend.idea.vuejs;
22

3+
import com.intellij.openapi.util.IconLoader;
4+
5+
import javax.swing.*;
6+
37
/**
48
* @author Daniel Espendiller <[email protected]>
59
*/
610
public class VueJsIcons {
11+
public static final Icon VUE_JS_TOOLBOX = IconLoader.getIcon("/icons/vue_js_toolbox_linemarker.png", VueJsIcons.class);
712
}

src/main/java/de/espend/idea/vuejs/linemarker/ComponentUsageLineMarker.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.intellij.psi.PsiManager;
1313
import com.intellij.psi.search.GlobalSearchScope;
1414
import com.intellij.util.indexing.FileBasedIndex;
15+
import de.espend.idea.vuejs.VueJsIcons;
1516
import de.espend.idea.vuejs.index.ComponentUsageIndex;
1617
import de.espend.idea.vuejs.utils.VueJsUtil;
1718
import org.jetbrains.annotations.Nls;
@@ -50,8 +51,8 @@ public void collectSlowLineMarkers(@NotNull List<? extends PsiElement> psiElemen
5051
return;
5152
}
5253

53-
NavigationGutterIconBuilder<PsiElement> builder = NavigationGutterIconBuilder.create(VuejsIcons.Vue)
54-
.setTooltipText("Navigate to Usages")
54+
NavigationGutterIconBuilder<PsiElement> builder = NavigationGutterIconBuilder.create(VueJsIcons.VUE_JS_TOOLBOX)
55+
.setTooltipText("Vue.js Toolbox: Navigate to Usages")
5556
.setTargetRenderer(MyFileReferencePsiElementListCellRenderer::new)
5657
.setTargets(NotNullLazyValue.lazy(() -> {
5758
Collection<PsiElement> elements = new ArrayList<>();

src/main/java/de/espend/idea/vuejs/linemarker/TemplateComponentLineMarker.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
import com.intellij.psi.PsiFile;
99
import com.intellij.psi.xml.XmlTag;
1010
import com.intellij.psi.xml.XmlTokenType;
11+
import de.espend.idea.vuejs.VueJsIcons;
1112
import de.espend.idea.vuejs.target.LocalFileComponentTargetSupplier;
1213
import de.espend.idea.vuejs.utils.VueJsUtil;
1314
import org.jetbrains.annotations.NotNull;
1415
import org.jetbrains.annotations.Nullable;
15-
import org.jetbrains.vuejs.VuejsIcons;
1616

1717
import java.util.Collection;
1818
import java.util.List;
@@ -47,8 +47,8 @@ public void collectSlowLineMarkers(@NotNull List<? extends PsiElement> psiElemen
4747

4848
String componentTag = xmlTag.getName();
4949
if (components.containsKey(componentTag)) {
50-
NavigationGutterIconBuilder<PsiElement> builder = NavigationGutterIconBuilder.create(VuejsIcons.Vue)
51-
.setTooltipText("Navigate to Vue.js file")
50+
NavigationGutterIconBuilder<PsiElement> builder = NavigationGutterIconBuilder.create(VueJsIcons.VUE_JS_TOOLBOX)
51+
.setTooltipText("Vue.js Toolbox: Navigate to Vue.js file")
5252
.setTargets(NotNullLazyValue.lazy(new LocalFileComponentTargetSupplier(components, componentTag, psiElement)));
5353

5454
lineMarkerInfos.add(builder.createLineMarkerInfo(psiElement));

src/main/resources/META-INF/plugin.xml

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
<!-- Plugin Configuration File. Read more: https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html -->
22
<idea-plugin>
3-
<!-- Unique identifier of the plugin. It should be FQN. It cannot be changed between the plugin versions. -->
43
<id>de.espend.idea.vuejs</id>
5-
6-
<!-- Public plugin name should be written in Title Case.
7-
Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-name -->
84
<name>Vue.js Toolbox</name>
9-
10-
<!-- A displayed Vendor name or Organization ID displayed on the Plugins Page. -->
115
<vendor email="[email protected]" url="http://espend.de?p=de.espend.idea.vuejs">espend_de</vendor>
126

137
<!-- Description of the plugin displayed on the Plugin Page and IDE Plugin Manager.
148
Simple HTML elements (text formatting, paragraphs, and lists) can be added inside of <![CDATA[ ]]> tag.
159
Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-description -->
1610
<description><![CDATA[
17-
Enter short description for your plugin here.<br>
18-
<em>most HTML tags may be used</em>
19-
]]></description>
11+
<p>Provides additional <a href="https://vuejs.org/">Vue.js</a> support to all JetBrains IDEs that
12+
<a href="https://www.jetbrains.com/products/#lang=js&type=ide">support JavaScript</a>.</p>
13+
14+
<h2>Features</h2>
15+
<ul>
16+
<li>LineMarker of components usages file</li>
17+
<li>LineMarker for vue.js application entrypoint</li>
18+
<li>LineMarker for vue.js application entrypoints</li>
19+
</ul>
20+
21+
<h2>Getting started</h2>
22+
<p>For information on getting started, head over to the <a href="https://www.jetbrains.com/help/">documentation</a> for your IDE.
23+
For WebStorm, you can check out this section in the <a href="https://www.jetbrains.com/help/webstorm/vue-js.html">documentation</a>.</p>
24+
]]></description>
25+
<category>JavaScript Frameworks and Tools</category>
2026

2127
<!-- Product and plugin compatibility requirements.
2228
Read more: https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html -->
+96-6
Loading
Loading
1.46 KB
Loading

0 commit comments

Comments
 (0)