* @return The trim that the given trim is 'before'
*/
private IWindowTrim getInsertBefore(int areaId, IWindowTrim trim) {
List tDescs = layout.getTrimArea(areaId).getDescriptors();
for (Iterator iter = tDescs.iterator(); iter.hasNext();) {
TrimDescriptor desc = (TrimDescriptor) iter.next();
if (desc.getTrim() == trim) {
if (iter.hasNext()) {
desc = (TrimDescriptor) iter.next();
return desc.getTrim();
}
return null;
}
}