Grails: Bug fix: attributes must be at top in completing popup.

This commit is contained in:
Sergey Evdokimov
2012-02-13 14:42:36 +04:00
parent 3d73f7cc7e
commit 9721969128
@@ -4,7 +4,6 @@ import com.intellij.openapi.util.Key;
import com.intellij.openapi.util.Pair;
import com.intellij.openapi.util.UserDataHolderEx;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -75,7 +74,7 @@ public class LightCacheKey<T> {
return new LightCacheKey<T>() {
@Override
protected long getModificationCount(PsiElement holder) {
return ((PsiFile)holder).getModificationStamp();
return holder.getContainingFile().getModificationStamp();
}
};
}