PropertyImpl: use getElementIcon() to allow customizing

This commit is contained in:
Yann Cébron
2016-06-15 17:53:12 +02:00
parent 480301679f
commit 77edf02edc
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2016 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.
@@ -26,7 +26,6 @@ import com.intellij.lang.properties.psi.PropertyStub;
import com.intellij.navigation.ItemPresentation;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.TextRange;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.psi.*;
import com.intellij.psi.search.GlobalSearchScope;
import com.intellij.psi.search.SearchScope;
@@ -359,7 +358,9 @@ public class PropertyImpl extends PropertiesStubElementImpl<PropertyStub> implem
return unescape(getKey());
}
public Icon getIcon(int flags) {
@Nullable
@Override
protected Icon getElementIcon(@IconFlags int flags) {
return PlatformIcons.PROPERTY_ICON;
}