Devkit: navigate to language class

This commit is contained in:
Alexander Zolotov
2015-10-20 18:43:11 +03:00
parent d685ab93f6
commit 7e2ba8b821
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2015 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 org.jetbrains.idea.devkit.dom.impl;
import com.intellij.codeInsight.lookup.LookupElement;
import com.intellij.codeInsight.lookup.LookupElementBuilder;
import com.intellij.openapi.util.Condition;
import com.intellij.psi.PsiElement;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.util.xml.ConvertContext;
import com.intellij.util.xml.ResolvingConverter;
@@ -55,6 +56,12 @@ class LanguageResolvingConverter extends ResolvingConverter<LanguageResolvingUti
});
}
@Nullable
@Override
public PsiElement getPsiElement(@Nullable LanguageResolvingUtil.LanguageDefinition resolvedValue) {
return resolvedValue != null ? resolvedValue.clazz : null;
}
@Nullable
@Override
public String toString(@Nullable LanguageResolvingUtil.LanguageDefinition o, ConvertContext context) {