Skip to content

Commit

Permalink
Fixed #140 - Support *.plantuml by default
Browse files Browse the repository at this point in the history
  • Loading branch information
krasa committed Mar 30, 2017
1 parent 3f53625 commit a6a5f52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<ul>
<li>NPE fix for AndroidStudio</li>
<li>PlantUml library upgrade to v2017.08</li>
<li>Added support for *.plantuml file extension</li>
</ul>
<p>2.5</p>
<ul>
Expand Down
1 change: 1 addition & 0 deletions src/org/plantuml/idea/lang/PlantUmlFileType.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class PlantUmlFileType extends LanguageFileType {
public static final PlantUmlFileType PLANTUML_FILE_TYPE = new PlantUmlFileType();

public static final String PLANTUML_EXT = "puml";
public static final String PLANTUML_EXT_2 = "plantuml";

public static final Icon PLANTUML_ICON = IconLoader.getIcon("/images/uml.png");

Expand Down
3 changes: 3 additions & 0 deletions src/org/plantuml/idea/lang/PlantUmlTypeFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public void createFileTypes(@NotNull FileTypeConsumer consumer) {
consumer.consume(
PlantUmlFileType.PLANTUML_FILE_TYPE,
PlantUmlFileType.PLANTUML_EXT);
consumer.consume(
PlantUmlFileType.PLANTUML_FILE_TYPE,
PlantUmlFileType.PLANTUML_EXT_2);
consumer.consume(
PlantIUmlFileType.PLANTUML_FILE_TYPE,
PlantIUmlFileType.PLANTUML_EXT);
Expand Down

0 comments on commit a6a5f52

Please sign in to comment.