Skip to content

Commit 53c100e

Browse files
HeikoKlareBeckerWdf
andcommitted
Add restore welcome page icon as SVG to org.eclipse.ui.intro
This adds the SVG version of the icon for restoring the welcome page after the workbench has been opened from it. Co-authored-by: Matthias Becker <[email protected]>
1 parent 127d70a commit 53c100e

File tree

2 files changed

+124
-7
lines changed

2 files changed

+124
-7
lines changed
Lines changed: 118 additions & 0 deletions
Loading

ua/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
import java.util.List;
1717
import java.util.Map;
1818

19-
import jakarta.annotation.PostConstruct;
20-
import jakarta.annotation.PreDestroy;
21-
import jakarta.inject.Inject;
22-
2319
import org.eclipse.e4.core.di.annotations.Optional;
2420
import org.eclipse.e4.ui.model.application.MApplication;
2521
import org.eclipse.e4.ui.model.application.ui.MElementContainer;
@@ -64,6 +60,10 @@
6460
import org.eclipse.ui.intro.config.IntroURLFactory;
6561
import org.osgi.framework.FrameworkUtil;
6662

63+
import jakarta.annotation.PostConstruct;
64+
import jakarta.annotation.PreDestroy;
65+
import jakarta.inject.Inject;
66+
6767
/**
6868
* This class is responsible for creating the intro launch bar in the provided parent. It creates
6969
* 'restore' and 'close' actions, as well as actions for each shortcut element contributed in the
@@ -393,15 +393,14 @@ public void run() {
393393
}
394394
};
395395
action.setToolTipText(Messages.IntroLaunchBar_restore_tooltip);
396-
action.setImageDescriptor(ImageUtil.createImageDescriptor("full/etool16/restore_welcome.png")); //$NON-NLS-1$
396+
action.setImageDescriptor(ImageUtil.createImageDescriptor("full/etool16/restore_welcome.svg")); //$NON-NLS-1$
397397
// toolBarManager.add(closeAction);
398398
toolBarManager.add(action);
399399
toolBarManager.add(new Separator());
400400
if (element == null)
401401
return;
402402
IntroLaunchBarShortcut[] shortcuts = element.getShortcuts();
403-
for (int i = 0; i < shortcuts.length; i++) {
404-
IntroLaunchBarShortcut shortcut = shortcuts[i];
403+
for (IntroLaunchBarShortcut shortcut : shortcuts) {
405404
addShortcut(shortcut, toolBarManager);
406405
}
407406
}

0 commit comments

Comments
 (0)