Exemplo n.º 1
0
 @Override
 public Branch getBranch(IAtsVersion version) {
   Branch branch = null;
   long branchUuid = getBranchId(version);
   if (branchUuid > 0) {
     branch = BranchManager.getBranch(branchUuid);
   }
   return branch;
 }
 /** Reads a resource from the given stream. */
 private Artifact readArtifact(DataInputStream dataIn) throws OseeCoreException, IOException {
   int artID = dataIn.readInt();
   int branchId = dataIn.readInt();
   return ArtifactQuery.getArtifactFromId(artID, BranchManager.getBranch(branchId));
 }