Revision: 3822
Author: [email protected]
Date: Fri Jul 30 11:44:11 2010
Log: Removing the types collection node from the dbTree unless it is an
enterprise session as the types are not used in the community edition at
current.
We may need to enable the types in the tree when we have a stand-alone
enterprise edition.
http://code.google.com/p/power-architect/source/detail?r=3822
Modified:
/trunk/src/main/java/ca/sqlpower/architect/swingui/DBTree.java
=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/DBTree.java Fri Jul
30 07:49:27 2010
+++ /trunk/src/main/java/ca/sqlpower/architect/swingui/DBTree.java Fri Jul
30 11:44:11 2010
@@ -144,7 +144,11 @@
public DBTree(final ArchitectSwingSession session) {
this.session = session;
- treeModel = new DBTreeModel(session.getRootObject(), this,
session.getWorkspace());
+ if (session.isEnterpriseSession()) {
+ treeModel = new DBTreeModel(session.getRootObject(), this,
session.getWorkspace());
+ } else {
+ treeModel = new DBTreeModel(session.getRootObject(), this);
+ }
setModel(treeModel);
setUI(new MultiDragTreeUI());
setRootVisible(false);