This commit is contained in:
Alexey Kudravtsev
2014-09-24 17:51:19 +04:00
parent c26e733e45
commit ed9d68585a
5 changed files with 13 additions and 5 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
package com.intellij.lang.java;
import com.intellij.lang.Language;
import org.jetbrains.annotations.NotNull;
/**
* @author max
@@ -28,6 +29,7 @@ public class JavaLanguage extends Language {
super("JAVA", "text/java", "application/x-java", "text/x-java");
}
@NotNull
@Override
public String getDisplayName() {
return "Java";
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
package com.intellij.openapi.fileTypes;
import com.intellij.lang.Language;
import org.jetbrains.annotations.NotNull;
/**
* @author Maxim.Mossienko
@@ -29,6 +30,7 @@ public class PlainTextLanguage extends Language {
super("TEXT", "text/plain");
}
@NotNull
@Override
public String getDisplayName() {
return "Plain text";
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -59,6 +59,7 @@ public abstract class Injectable implements Comparable<Injectable> {
public Language toLanguage() {
return getLanguage() == null ? new Language(getId(), false) {
@NotNull
@Override
public String getDisplayName() {
return Injectable.this.getDisplayName();
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@ package com.jetbrains.rest;
import com.intellij.lang.Language;
import com.intellij.psi.templateLanguages.TemplateLanguage;
import com.jetbrains.rest.validation.*;
import org.jetbrains.annotations.NotNull;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArraySet;
@@ -32,6 +33,7 @@ public class RestLanguage extends Language implements TemplateLanguage {
super("ReST");
}
@NotNull
@Override
public String getDisplayName() {
return "Rest language";
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -37,6 +37,7 @@ public class BuildoutCfgLanguage extends Language {
});
}
@NotNull
@Override
public String getDisplayName() {
return "Buildout config";