avoid OutOfBoundsException and break of format action, when marker positions are...
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / view / bookmark / EntityNode.java
index 9d59f71..b45d6b8 100644 (file)
@@ -126,8 +126,15 @@ public class EntityNode extends TreeNode implements EntityHolder {
         } else if (isView()) {
             return "view.gif";
         } else {
-            return (this.entity.exists() == null || this.entity.exists().booleanValue()) 
-                ? "bigtable.gif" : "missingtable.gif";
+            if (this.entity.exists() == null || this.entity.exists().booleanValue()){
+               if (this.entity.isSynonym())
+                       return "big_syn_table.gif";
+               else
+                       return "bigtable.gif";
+            } else
+               return "missingtable.gif";
+   
+   
         }
     }