示例#1
0
 public static Image getCoverageItemUserImage(ICoverage coverageItem) {
   try {
     if (coverageItem.isAssignable() && Strings.isValid(coverageItem.getAssignees())) {
       return FrameworkArtifactImageProvider.getUserImage(
           UsersByIds.getUsers(coverageItem.getAssignees()));
     }
   } catch (OseeCoreException ex) {
     OseeLog.log(Activator.class, Level.SEVERE, ex);
   }
   return null;
 }
示例#2
0
 public static Image getAssigneeImage(Artifact artifact) throws OseeCoreException {
   if (artifact.isDeleted()) {
     return null;
   }
   if (artifact instanceof AbstractWorkflowArtifact) {
     return FrameworkArtifactImageProvider.getUserImage(
         AtsClientService.get()
             .getUserServiceClient()
             .getOseeUsers(((AbstractWorkflowArtifact) artifact).getStateMgr().getAssignees()));
   }
   if (artifact.isOfType(AtsArtifactTypes.Action)) {
     for (TeamWorkFlowArtifact team : ActionManager.getTeams(artifact)) {
       Image image = AssigneeColumnUI.getAssigneeImage(team);
       if (image != null) {
         return image;
       }
     }
   }
   return null;
 }