How to get icon of column or table in new Database plugin implementation?
In current EAP version Database plugin had changed a lot.
Now, this code does not work:
if (field instanceof DasColumn) {
if (column instanceof DbColumnImpl)
builder = builder.withIcon(((DbColumnImpl) column).getIcon());
}
}
How to get an icon of column/table in the new version?
请先登录再写评论。
Hi Oleg! Thanks for the question.
Turns out there's no way currently to get the icon for a raw non-PSI DB model object.
In 2017.3 one will be able to use TypePresentationService for that.
I.e.
It's already in master branch and hopefully will be ported to 173 branch before the next 2017.3 EAP.