newest quantum CVS sources
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / view / subset / SubsetContentProvider.java
index dd8133b..4608543 100644 (file)
@@ -1,8 +1,10 @@
 package com.quantum.view.subset;
 
+import java.sql.SQLException;
 import java.util.Vector;
 
 import com.quantum.Messages;
+import com.quantum.model.NotConnectedException;
 import com.quantum.sql.metadata.MetaDataXMLInterface;
 import com.quantum.view.bookmark.ColumnNode;
 import com.quantum.view.bookmark.TreeNode;
@@ -63,7 +65,11 @@ public class SubsetContentProvider implements ITreeContentProvider {
                        return subsets.toArray();
                } else if (parentElement instanceof TreeNode) {
                        TreeNode node = (TreeNode) parentElement;
-                       return node.getChildren();
+                       try {
+                               return node.getChildren();
+                       } catch (NotConnectedException e) {
+                       } catch (SQLException e) {
+                       }
                }
                return SubsetRoot.EMPTY_ARRAY;
        }