Author: [EMAIL PROTECTED]
Date: Wed Oct  1 08:47:35 2008
New Revision: 2740

Modified:
   trunk/src/ca/sqlpower/architect/swingui/DBTree.java

Log:
Fixed a UI glitch where the right-click popup menu for an exception node would have two menu separators in a row.

Modified: trunk/src/ca/sqlpower/architect/swingui/DBTree.java
==============================================================================
--- trunk/src/ca/sqlpower/architect/swingui/DBTree.java (original)
+++ trunk/src/ca/sqlpower/architect/swingui/DBTree.java Wed Oct 1 08:47:35 2008
@@ -488,6 +488,7 @@
                 newMenu.add(setAsDB);

                 newMenu.add(new JMenuItem(removeDBCSAction));
+                newMenu.addSeparator();
             } else if (p.getLastPathComponent() instanceof SQLSchema){
                 //a new action is needed to maintain the schema variable
CompareToCurrentAction compareToCurrentAction = new CompareToCurrentAction();
@@ -497,6 +498,7 @@

JMenuItem profile = new JMenuItem(session.getArchitectFrame().getProfileAction());
                 newMenu.add(profile);
+                newMenu.addSeparator();
             } else if (p.getLastPathComponent() instanceof SQLCatalog) {
                 SQLCatalog catalog = (SQLCatalog)p.getLastPathComponent();
                 try {
@@ -515,14 +517,15 @@

JMenuItem profile = new JMenuItem(session.getArchitectFrame().getProfileAction());
                 newMenu.add(profile);
+                newMenu.addSeparator();
             } else if (p.getLastPathComponent() instanceof SQLTable) {
JMenuItem profile = new JMenuItem(session.getArchitectFrame().getProfileAction());
                 newMenu.add(profile);
JMenuItem selectAllChildTables = new JMenuItem(this.selectAllChildTablesAction);
                 newMenu.add(selectAllChildTables);
+                newMenu.addSeparator();
             }
-
-                       newMenu.addSeparator();
+                       
JMenuItem popupProperties = new JMenuItem(dbcsPropertiesAction);
             newMenu.add(popupProperties);
                }

Reply via email to