Skip to content

Commit

Permalink
move icons to api, also add impl getIcon method for future usage
Browse files Browse the repository at this point in the history
  • Loading branch information
VISTALL committed Jan 29, 2025
1 parent 18351d4 commit b3c63ae
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions gradle-api/src/main/java/consulo/gradle/GradleConstants.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package consulo.gradle;

import consulo.externalSystem.model.ProjectSystemId;
import consulo.gradle.icon.GradleIconGroup;
import consulo.gradle.localize.GradleLocalize;

import consulo.ui.image.Image;
import jakarta.annotation.Nonnull;

/**
Expand All @@ -13,7 +14,11 @@
*/
public class GradleConstants {
@Nonnull
public static final ProjectSystemId SYSTEM_ID = new ProjectSystemId("GRADLE", GradleLocalize.gradleName());
public static final ProjectSystemId SYSTEM_ID = new ProjectSystemId("GRADLE", GradleLocalize.gradleName()) {
public Image getIcon() {
return GradleIconGroup.gradle();
}
};

public static final String EXTENSION = "gradle";
public static final String DEFAULT_SCRIPT_NAME = "build.gradle";
Expand Down
1 change: 1 addition & 0 deletions gradle-api/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

exports consulo.gradle;
exports consulo.gradle.localize;
exports consulo.gradle.icon;
exports org.jetbrains.plugins.gradle.model.data;
exports consulo.gradle.service.project;
exports consulo.gradle.setting;
Expand Down

0 comments on commit b3c63ae

Please sign in to comment.