@Override
public void run(IAction action) {
if (this.selection != null && !this.selection.isEmpty()) {
IStructuredSelection sSelection = (IStructuredSelection) this.selection;
if (targetPart instanceof ProjectExplorer) {
ProjectExplorer pe = (ProjectExplorer) targetPart;
@SuppressWarnings("rawtypes")
Iterator itr = sSelection.iterator();
while (itr.hasNext()) {
Object object = itr.next();
if (logger.isDebugEnabled())
logger.debug("Refreshing: " + object);
pe.getCommonViewer().refresh(object, true);
}
}
}
}