| [news.eclipse.platform.swt] Re: Problems with TreeViewer and java.io.File.listRoots() |
Karl Sand wrote:
Running my code on a Windows 2000 system i always get the "javaw.exe, no disk, no disk in floppy found" popup-window. when i click cancel or continue the popup-window disappears. I tracked this behaviour down to the use of listRoots(). But when i use java.io.File.listRoots() outside my SWT-app in a Swing application everything works as it should and there is no popup-window.
public boolean hasChildren(Object arg0) { // Get the children Object[] obj = getChildren(arg0);
// Return whether the parent has children return obj == null ? false : obj.length > 0; }
-- Stefan Zeiger - Developer of Novocode Application Framework Build SWT-based MVC GUIs via XML: http://www.novocode.com/naf/