From 5ffee3d59ee01be7253d3f5ca48fcc58aa578059 Mon Sep 17 00:00:00 2001 From: Fred Bricon Date: Tue, 5 Sep 2023 15:20:49 +0200 Subject: [PATCH] fix: disambiguate Quarkus launch config Signed-off-by: Fred Bricon --- .../quarkus/run/QuarkusRunConfiguration.java | 9 +++++---- .../quarkus/run/QuarkusRunConfigurationType.java | 4 ++-- src/main/resources/META-INF/pluginIcon_dark.svg | 1 + .../quarkus_icon_rgb_16px_default_dark.png | Bin 0 -> 474 bytes .../quarkus_icon_rgb_32px_default_dark.png | Bin 0 -> 852 bytes 5 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 src/main/resources/META-INF/pluginIcon_dark.svg create mode 100644 src/main/resources/quarkus_icon_rgb_16px_default_dark.png create mode 100644 src/main/resources/quarkus_icon_rgb_32px_default_dark.png diff --git a/src/main/java/com/redhat/devtools/intellij/quarkus/run/QuarkusRunConfiguration.java b/src/main/java/com/redhat/devtools/intellij/quarkus/run/QuarkusRunConfiguration.java index 58cb77198..17e39a556 100644 --- a/src/main/java/com/redhat/devtools/intellij/quarkus/run/QuarkusRunConfiguration.java +++ b/src/main/java/com/redhat/devtools/intellij/quarkus/run/QuarkusRunConfiguration.java @@ -61,6 +61,7 @@ public class QuarkusRunConfiguration extends ModuleBasedConfiguration { private final static Logger LOGGER = LoggerFactory.getLogger(QuarkusRunConfiguration.class); + private static final String QUARKUS_CONFIGURATION = "Quarkus Configuration"; private int port = 5005; @@ -91,15 +92,15 @@ protected QuarkusRunConfigurationOptions getOptions() { @Override public void checkConfiguration() throws RuntimeConfigurationException { if (getModule() == null) { - throw new RuntimeConfigurationException("No module selected", "Quarkus configuration"); + throw new RuntimeConfigurationException("No module selected", QUARKUS_CONFIGURATION); } Module module = getModule(); if (!QuarkusModuleUtil.isQuarkusModule(module)) { - throw new RuntimeConfigurationException("Not a Quarkus module", "Quarkus configuration"); + throw new RuntimeConfigurationException("Not a Quarkus module", QUARKUS_CONFIGURATION); } ToolDelegate delegate = ToolDelegate.getDelegate(module); if (delegate == null) { - throw new RuntimeConfigurationException("Can't find a tool to process the module", "Quarkus configuration"); + throw new RuntimeConfigurationException("Can't find a tool to process the module", QUARKUS_CONFIGURATION); } } @@ -145,7 +146,7 @@ public RunProfileState getState(@NotNull Executor executor, @NotNull ExecutionEn } telemetry.send(); if (executor.getId() == DefaultDebugExecutor.EXECUTOR_ID) { - ProgressManager.getInstance().run(new Task.Backgroundable(getProject(), "Quarkus configuration", false) { + ProgressManager.getInstance().run(new Task.Backgroundable(getProject(), QUARKUS_CONFIGURATION, false) { @Override public void run(@NotNull ProgressIndicator indicator) { createRemoteConfiguration(indicator); diff --git a/src/main/java/com/redhat/devtools/intellij/quarkus/run/QuarkusRunConfigurationType.java b/src/main/java/com/redhat/devtools/intellij/quarkus/run/QuarkusRunConfigurationType.java index 00d22be70..843f5a4f0 100644 --- a/src/main/java/com/redhat/devtools/intellij/quarkus/run/QuarkusRunConfigurationType.java +++ b/src/main/java/com/redhat/devtools/intellij/quarkus/run/QuarkusRunConfigurationType.java @@ -24,13 +24,13 @@ public class QuarkusRunConfigurationType implements ConfigurationType { @NotNull @Override public String getDisplayName() { - return "Quarkus"; + return "Quarkus Dev Mode"; } @Nls @Override public String getConfigurationTypeDescription() { - return "Quarkus run configuration"; + return "Quarkus Dev mode run configuration"; } @Override diff --git a/src/main/resources/META-INF/pluginIcon_dark.svg b/src/main/resources/META-INF/pluginIcon_dark.svg new file mode 100644 index 000000000..1969e1e88 --- /dev/null +++ b/src/main/resources/META-INF/pluginIcon_dark.svg @@ -0,0 +1 @@ +quarkus_icon_rgb_1024px_reverse \ No newline at end of file diff --git a/src/main/resources/quarkus_icon_rgb_16px_default_dark.png b/src/main/resources/quarkus_icon_rgb_16px_default_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..498ddf08fc8e0c85f448fb02689dc9555292848a GIT binary patch literal 474 zcmV<00VV#4P)LQ$0(=P!v5WK}1^Y5J#aMbP`e=q)yf;Lxxrybaa$- zsfZxD6hZ1J4%x&wITnW$;?&JSgs4BDEk$T0(#96Q3O;%9MdjHKp%*Uiz4OjJ$xY4` z2q73IL|Uup&KiJ20OSAEasgy4O)^9V_{BE>ngfc%0AyBUh>Gq+{9;R!Vje|M=^6tu zjbCqQTbg9Ev&}>hur#U6l$+dBPLSNQvxO(y+kau;xgxs7+;k8-D|IB}au&d4>Aik- z{T%E@4e)@XJE@D)gB+6anvcy#M`}mys~iM1)mK2#odkgVOXnlRdTg(Qh8t%9pRsg{-Ts>y Qvj6}907*qoM6N<$f<7P26#xJL literal 0 HcmV?d00001 diff --git a/src/main/resources/quarkus_icon_rgb_32px_default_dark.png b/src/main/resources/quarkus_icon_rgb_32px_default_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..376be9ae8c6735f5f6e34a04bd04cbc0a1331441 GIT binary patch literal 852 zcmV-a1FQUrP) z;txs=Ha9ChG&u-`UV>miD%yxr6p>tV*i*NnSFs=nf}{$9;8wGc8Un?Y+007%y1U6s zYx}{n``*r*Z+70yn_0!OEbJtL4!2q~1^{IFivA~?OaKMCv`nl<6SfDKTnBJ;o1C!( zAW239cp|%v;JLBMg-9S${mRU>aeatQc3XJGbL82x>rzFkTvn~a2? zUfOFMInXDqPA&#s+yTxWqoKOMg{@QbE=A7bUP2=Er2?Su&4$gV!sRTrtv-i3s6!edp&21lmTkd zNONkr6{ZosKj8Zf4>e?X8cK>%w(KV0xdmD#R_24l&D{RNcSN3HGqvE_tQ3% z{Ny}Pve#OboS#s~Af%G1WnyChM*n>H@}radx9<&-8HH6Lx7Rw!cYO|MnV23J%EWQ~ zUIV}C8@8q1w9JBDZ(Mn`8i!TUyVWaO3xJ1O7%$(1F>%hs)sq8eBm(VY(|rE!ceLJ= zZ|~#{AkU#YIFRX9-d+hG7j_8~j6TLDIA zMVbROXTOuo7`ZK=$X*X3t?_|Hfx2w>2@>eJ9IHixh!WIbszqbCS3SM=1Ff%jAU3s| zG9cUOi?~iC+NRR{Z{fFQ*v(KU227z_)xDZahfo+tdG8BMMx|IR$6{Ms{_*y)7GP8!Sl@ib(L6JK5mZ9WSjjfPWNeF&!p;<+l^sQ_xOL0i>Ha?EgZV e*xBE60Dl3}tNJ8oamd900000