Re: [SourceJammer-devel] Status of a file?
Brought to you by:
robertmacgrogan
From: Robert M. <rob...@ya...> - 2006-04-26 14:39:17
|
No really easy way. But here's how it's done: Project folder = SimpleInterface.getInstance().getProjectObj(parentFolderId); NodeInfo fileNode = (NodeInfo)folder.getNode(fileName); fileNode.isCheckedOut(); fileNode.getCheckedOutToUser(); For the "diff from local" status, well, that's a bit more complex. Unfortunately I never created a simply utility to test for this. To see how this is done, take a look at the method rebuildDisplayList() in ProjectTreeNode. Hopefully this will point you in the right direction. --Rob --- "Gupta, Karan" <kar...@tr...> wrote: > Hi, > > Is there a method somewhere in the SJ source code to do the following: > > String status = SimpleInterface.getInstance().getStatus(fileID); > where status could be "checked out", "diffFromLocal", "checked out to user 'username' ", etc.. > > Thanks, > Karan Gupta > Software Engineer > TransCore, San Diego > (858) 736 - 8246 > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |