Created On:  04 October 2011

Problem:

Retrieving details of files that have been deleted is not straight-forward. Item Object methods such as .isDeleted() only returns information on the status of the files.

Resolution:

Use the ‘RecycleBin’class methods to retrieve the required information.

com.starbase.starteam.File fl = null;
...
RecycleBin bin = myView.getRecycleBin();
Folder root = bin.getRootFolder();
fllist = “”;
Item[] files = root.getItems(myView.getServer().getTypeNames().FILE);
for (int i = 0; i < files.length; i ) {
  if (files.isDeleted()) {
    fl = (com.starbase.starteam.File)files;
    fllist = fllist “ “;
  }
}
System.out.println(“**” fllist);

- See Class ReCycleBin com.starbase.starteam for more information.
Incident #2462956