Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit f6bbb93

Browse files
committed
Issue #176: Add icon for Projects (Local) element in Codewind Explorer view
1 parent cd2eb48 commit f6bbb93

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
368 Bytes
Loading

dev/org.eclipse.codewind.ui/src/org/eclipse/codewind/ui/CodewindUIPlugin.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ public class CodewindUIPlugin extends AbstractUIPlugin {
5757
NODE_ICON = "obj16/nodejs.png",
5858
PYTHON_ICON = "obj16/python.png",
5959
SPRING_ICON = "obj16/spring.png",
60-
SWIFT_ICON = "obj16/swift.png";
60+
SWIFT_ICON = "obj16/swift.png",
61+
PROJECTS_ICON = "obj16/projects.png";
6162

6263
// The shared instance
6364
private static CodewindUIPlugin plugin;
@@ -136,6 +137,7 @@ protected ImageRegistry createImageRegistry() {
136137
registerImage(registry, PYTHON_ICON, ICON_BASE_URL + PYTHON_ICON);
137138
registerImage(registry, SPRING_ICON, ICON_BASE_URL + SPRING_ICON);
138139
registerImage(registry, SWIFT_ICON, ICON_BASE_URL + SWIFT_ICON);
140+
registerImage(registry, PROJECTS_ICON, ICON_BASE_URL + PROJECTS_ICON);
139141

140142
return registry;
141143
}

dev/org.eclipse.codewind.ui/src/org/eclipse/codewind/ui/internal/views/CodewindNavigatorLabelProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public Image getImage(Object element) {
210210
if (element instanceof CodewindManager) {
211211
return CodewindUIPlugin.getImage(CodewindUIPlugin.CODEWIND_ICON);
212212
} else if (element instanceof CodewindConnection) {
213-
return CodewindUIPlugin.getImage(CodewindUIPlugin.CODEWIND_ICON);
213+
return CodewindUIPlugin.getImage(CodewindUIPlugin.PROJECTS_ICON);
214214
} else if (element instanceof CodewindApplication) {
215215
ProjectType type = ((CodewindApplication)element).projectType;
216216
switch (type) {

0 commit comments

Comments
 (0)