mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 14:25:37 +02:00
Cosmetics.
This commit is contained in:
parent
dd14bdd42e
commit
b414e5add0
1 changed files with 3 additions and 0 deletions
|
@ -233,12 +233,15 @@ public class FileTemplateContextType extends TemplateContextType {
|
|||
public static String contextTypeIdForContentType(IContentType contentType) {
|
||||
return contentType.getId() + CONTEXTTYPE_SUFFIX;
|
||||
}
|
||||
|
||||
public static boolean isFileTemplateContextType(String contextTypeId) {
|
||||
return contextTypeId.endsWith(CONTEXTTYPE_SUFFIX);
|
||||
}
|
||||
|
||||
public static boolean isContextTypeForContentType(String contextTypeId, String contentTypeId) {
|
||||
return contextTypeId.endsWith(CONTEXTTYPE_SUFFIX) && contextTypeId.startsWith(contentTypeId);
|
||||
}
|
||||
|
||||
public static String contentTypeIdForContextType(String contextTypeId) {
|
||||
return contextTypeId.substring(0, contextTypeId.length() - CONTEXTTYPE_SUFFIX.length());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue