Skip to content

Commit

Permalink
#25 - Use specific icon (green) for .ml4 files
Browse files Browse the repository at this point in the history
  • Loading branch information
giraud committed Jan 11, 2018
1 parent c82275c commit 0e6e88e
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 30 deletions.
2 changes: 0 additions & 2 deletions resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@

<!-- Specifies semicolon-separated list of paths which should be added to the classpath of the compile server -->
<!--<compileServer.plugin classpath="reason-jps-plugin.jar"/>-->

<iconProvider implementation="com.reason.icons.IconProvider"/>
</extensions>

<actions>
Expand Down
Binary file added resources/icons/ocaml-file-green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 0 additions & 24 deletions src/main/java/com/reason/icons/IconProvider.java

This file was deleted.

3 changes: 1 addition & 2 deletions src/main/java/com/reason/icons/Icons.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.reason.icons;

import com.intellij.openapi.util.IconLoader;

import javax.swing.*;

import static com.intellij.openapi.util.IconLoader.getIcon;
Expand All @@ -15,6 +13,7 @@ public class Icons {

public static final Icon OCL_FILE = getIcon("/icons/ocaml-file.png");
public static final Icon OCL_BLUE_FILE = getIcon("/icons/ocaml-file-blue.png");
public static final Icon OCL_GREEN_FILE = getIcon("/icons/ocaml-file-green.png");

// From jetbrains ide
public static final Icon MODULE = getIcon("/nodes/method.png");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/reason/ide/files/Ml4FileType.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ public String getDefaultExtension() {
@Nullable
@Override
public Icon getIcon() {
return Icons.OCL_FILE;
return Icons.OCL_GREEN_FILE;
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/reason/lang/ocaml/OclP4Language.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ public class OclP4Language extends Language {
public static final OclP4Language INSTANCE = new OclP4Language();

private OclP4Language() {
super("Ml4");
super("OcamlP4");
}
}

0 comments on commit 0e6e88e

Please sign in to comment.