Skip to content

Commit

Permalink
revert formatting changes (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
MxEh-TT committed Feb 2, 2024
1 parent 3543e4b commit 2b5cb37
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions src/main/java/de/tracetronic/jenkins/plugins/ecutest/ETPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public class ETPlugin {
public static final ToolVersion ATX_MIN_VERSION = new ToolVersion(1, 65, 0);

/**
* Defines the test.guide version that the provided ATX configuration is based
* on.
* Defines the test.guide version that the provided ATX configuration is based on.
*/
public static final ToolVersion ATX_CONFIG_VERSION = new ToolVersion(1, 129, 0);

Expand Down Expand Up @@ -84,7 +83,7 @@ public static String getIconFileName(final String iconClassName, final String ic
@Initializer(after = InitMilestone.PLUGINS_STARTED)
public void syncATXConfiguration() {
final ATXInstallation.DescriptorImpl descriptor = Jenkins.get()
.getDescriptorByType(ATXInstallation.DescriptorImpl.class);
.getDescriptorByType(ATXInstallation.DescriptorImpl.class);
if (descriptor != null) {
descriptor.syncWithDefaultConfig();
descriptor.save();
Expand All @@ -96,43 +95,47 @@ public void syncATXConfiguration() {
*/
@Initializer(after = InitMilestone.JOB_LOADED)
public void registerIcons() {
for (final String name : new String[] {
"atx-report",
"atx-trend",
"ecu-test",
"ecu-test-pkg",
"ecu-test-prj",
"report-generator",
"test-guide",
"test-param",
"tool-param",
"trf-report",
"trace-check",
"trace-report"
for (final String name : new String[]{
"atx-report",
"atx-trend",
"ecu-test",
"ecu-test-pkg",
"ecu-test-prj",
"report-generator",
"test-guide",
"test-param",
"tool-param",
"trf-report",
"trace-check",
"trace-report"
}) {
// Register small (16x16) icons
IconSet.icons.addIcon(new Icon(
String.format("icon-ecutest-%s icon-sm", name),
String.format("ecutest/icons/16x16/%s.png", name),
Icon.ICON_SMALL_STYLE, IconType.PLUGIN));
Icon.ICON_SMALL_STYLE, IconType.PLUGIN)
);

// Register medium (24x24) icons
IconSet.icons.addIcon(new Icon(
String.format("icon-ecutest-%s icon-md", name),
String.format("ecutest/icons/24x24/%s.png", name),
Icon.ICON_MEDIUM_STYLE, IconType.PLUGIN));
Icon.ICON_MEDIUM_STYLE, IconType.PLUGIN)
);

// Register large (32x32) icons
IconSet.icons.addIcon(new Icon(
String.format("icon-ecutest-%s icon-lg", name),
String.format("ecutest/icons/32x32/%s.png", name),
Icon.ICON_LARGE_STYLE, IconType.PLUGIN));
Icon.ICON_LARGE_STYLE, IconType.PLUGIN)
);

// Register x-large (48x48) icons
IconSet.icons.addIcon(new Icon(
String.format("icon-ecutest-%s icon-xlg", name),
String.format("ecutest/icons/48x48/%s.png", name),
Icon.ICON_XLARGE_STYLE, IconType.PLUGIN));
Icon.ICON_XLARGE_STYLE, IconType.PLUGIN)
);
}
}
}

0 comments on commit 2b5cb37

Please sign in to comment.