|
13 | 13 | * See the License for the specific language governing permissions and |
14 | 14 | * limitations under the License. |
15 | 15 | */ |
16 | | - |
17 | 16 | package com.intellij.gwt.jakartaee.run; |
18 | 17 |
|
19 | 18 | import consulo.annotation.component.ExtensionImpl; |
| 19 | +import consulo.application.Application; |
20 | 20 | import consulo.execution.configuration.ConfigurationFactory; |
21 | 21 | import consulo.execution.configuration.ConfigurationType; |
22 | 22 | import consulo.google.gwt.base.icon.GwtIconGroup; |
|
28 | 28 | import jakarta.annotation.Nonnull; |
29 | 29 |
|
30 | 30 | @ExtensionImpl |
31 | | -public class GwtRunConfigurationType implements ConfigurationType |
32 | | -{ |
33 | | - @Nonnull |
34 | | - public static GwtRunConfigurationType getInstance() |
35 | | - { |
36 | | - return EP_NAME.findExtensionOrFail(GwtRunConfigurationType.class); |
37 | | - } |
| 31 | +public class GwtRunConfigurationType implements ConfigurationType { |
| 32 | + @Nonnull |
| 33 | + public static GwtRunConfigurationType getInstance() { |
| 34 | + return Application.get().getExtensionPoint(ConfigurationType.class) |
| 35 | + .findExtensionOrFail(GwtRunConfigurationType.class); |
| 36 | + } |
38 | 37 |
|
39 | | - private GwtRunConfigurationFactory myConfigurationFactory; |
| 38 | + private GwtRunConfigurationFactory myConfigurationFactory; |
40 | 39 |
|
41 | | - @Inject |
42 | | - GwtRunConfigurationType() |
43 | | - { |
44 | | - myConfigurationFactory = new GwtRunConfigurationFactory(this); |
45 | | - } |
| 40 | + @Inject |
| 41 | + GwtRunConfigurationType() { |
| 42 | + myConfigurationFactory = new GwtRunConfigurationFactory(this); |
| 43 | + } |
46 | 44 |
|
47 | | - @Override |
48 | | - public LocalizeValue getDisplayName() |
49 | | - { |
50 | | - return GwtLocalize.runGwtConfigurationDisplayName(); |
51 | | - } |
| 45 | + @Nonnull |
| 46 | + @Override |
| 47 | + public LocalizeValue getDisplayName() { |
| 48 | + return GwtLocalize.runGwtConfigurationDisplayName(); |
| 49 | + } |
52 | 50 |
|
53 | | - @Override |
54 | | - public LocalizeValue getConfigurationTypeDescription() |
55 | | - { |
56 | | - return GwtLocalize.runGwtConfigurationDescription(); |
57 | | - } |
| 51 | + @Nonnull |
| 52 | + @Override |
| 53 | + public LocalizeValue getConfigurationTypeDescription() { |
| 54 | + return GwtLocalize.runGwtConfigurationDescription(); |
| 55 | + } |
58 | 56 |
|
59 | | - @Override |
60 | | - public Image getIcon() |
61 | | - { |
62 | | - return GwtIconGroup.gwt(); |
63 | | - } |
| 57 | + @Override |
| 58 | + public Image getIcon() { |
| 59 | + return GwtIconGroup.gwt(); |
| 60 | + } |
64 | 61 |
|
65 | | - @Override |
66 | | - public ConfigurationFactory[] getConfigurationFactories() |
67 | | - { |
68 | | - return new ConfigurationFactory[]{myConfigurationFactory}; |
69 | | - } |
| 62 | + @Override |
| 63 | + public ConfigurationFactory[] getConfigurationFactories() { |
| 64 | + return new ConfigurationFactory[]{myConfigurationFactory}; |
| 65 | + } |
70 | 66 |
|
71 | | - @Override |
72 | | - @Nonnull |
73 | | - public String getId() |
74 | | - { |
75 | | - return "GWT.ConfigurationType"; |
76 | | - } |
| 67 | + @Override |
| 68 | + @Nonnull |
| 69 | + public String getId() { |
| 70 | + return "GWT.ConfigurationType"; |
| 71 | + } |
77 | 72 | } |
78 | 73 |
|
0 commit comments