Author: kaiyi4
Date: Tue Aug 26 15:49:00 2008
New Revision: 2616
Modified:
trunk/src/ca/sqlpower/architect/swingui/olap/HierarchyEditPanel.java
Log:
Fixed a minor problem, that all level name would always be (All).
Modified:
trunk/src/ca/sqlpower/architect/swingui/olap/HierarchyEditPanel.java
==============================================================================
--- trunk/src/ca/sqlpower/architect/swingui/olap/HierarchyEditPanel.java
(original)
+++ trunk/src/ca/sqlpower/architect/swingui/olap/HierarchyEditPanel.java
Tue Aug 26 15:49:00 2008
@@ -78,7 +78,7 @@
builder.append("Caption", captionField = new
JTextField(hierarchy.getCaption()));
builder.append("Has All", hasAll = new JCheckBox("Has All",
hierarchy.getHasAll() != null ? hierarchy.getHasAll() : true));
builder.append("Table", tableChooser = new JComboBox(new
Vector<SQLTable>(tables)));
- builder.append("All Level Name", allLevelName = new
JTextField("(All)"));
+ builder.append("All Level Name", allLevelName = new
JTextField(hierarchy.getAllLevelName() != null ?
hierarchy.getAllLevelName() : "(All)"));
tableChooser.setSelectedItem(OLAPUtil.tableForHierarchy(hierarchy)); // XXX
this isn't quite right.. it would set the default as the local value
handler = new FormValidationHandler(status);