Created On:  2 August 2010

Problem:

Using the StarTeam SDK it appears that using the isDeleted() method on the Items object does not return any information regarding the deleted objects.

Resolution:

The correct SDK class to use is the “RecycleBin” class. Refer to

http://techpubs.borland.com/starteam/2009/en/SDK_Documentation/api/com/starbase/starteam/RecycleBin.html

For example:

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);
Incident #2462956