check file icon in project tree using SWT Bot eclipse
-
24-06-2021 - |
Pergunta
I m testing a eclipse plugin using swt bot.but I cant find a way to check the icon of a file in the tree in project explorer.How can this be done
please help
Solução
What about using this ?
tree.display.asyncExec(new Runnable() {
@Override
public void run() {
Image i = treeItem.widget.getImage();
}
});
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow