mirror of
https://github.com/revanced/smali.git
synced 2025-05-19 23:47:06 +02:00
Associate the smali icon with the SmaliClass object
This ensures that the icon is shown next to the class in the project view
This commit is contained in:
parent
698b799e4f
commit
343ec04252
@ -48,11 +48,13 @@ import com.sun.jdi.ReferenceType;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jf.smalidea.SmaliIcons;
|
||||
import org.jf.smalidea.psi.SmaliElementTypes;
|
||||
import org.jf.smalidea.psi.iface.SmaliModifierListOwner;
|
||||
import org.jf.smalidea.psi.stub.SmaliClassStub;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.swing.*;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
@ -330,4 +332,8 @@ public class SmaliClass extends SmaliStubBasedPsiElement<SmaliClassStub> impleme
|
||||
return PsiClassImplUtil.processDeclarationsInClass(this, processor, state, null, lastParent, place,
|
||||
PsiUtil.getLanguageLevel(place), false);
|
||||
}
|
||||
|
||||
@Nullable @Override protected Icon getElementIcon(@IconFlags int flags) {
|
||||
return SmaliIcons.SmaliIcon;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user