- Timestamp:
- Apr 11, 2011, 2:07:57 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.17-stable/src/clients/web/net/sf/basedb/clients/web/taglib/Select.java
r5384 r5604 30 30 import net.sf.basedb.clients.web.util.HTML; 31 31 import net.sf.basedb.core.BasicItem; 32 import net.sf.basedb.core.Directory; 32 33 import net.sf.basedb.core.Nameable; 33 34 import net.sf.basedb.core.Removable; … … 307 308 */ 308 309 private String unselectedText = "- none -"; 310 311 private boolean tryGetDirectoryPath; 312 309 313 /* 310 314 Taglib initialization methods … … 452 456 // Page page = (Page)findAncestorWithClass(this, Page.class); 453 457 458 tryGetDirectoryPath = true; 454 459 455 460 StringBuilder sb = new StringBuilder(); … … 558 563 if (item instanceof Nameable) 559 564 { 560 name = ((Nameable)item).getName(); 565 if (tryGetDirectoryPath && item instanceof Directory) 566 { 567 try 568 { 569 name = ((Directory)item).getPath().toString(); 570 } 571 catch (Exception ex) 572 { 573 tryGetDirectoryPath = false; 574 } 575 } 576 if (name == null) name = ((Nameable)item).getName(); 561 577 } 562 578 else
Note: See TracChangeset
for help on using the changeset viewer.