(DIMENSION_SETTING_NAME,
frameWidth + "," + frameHeight + "," + dividerLocation);
}
void applyFilter () {
PropertyKey selectedKey = null, defectLogKey = null;
PropertyKey key = null;
DefaultMutableTreeNode selected = getSelectedNode();
String extraPathFilter = null;
if (selected != null) {
key = selectedKey = treeModel.getPropKey (useProps, selected.getPath());
if (key != null) {
String selectedPath = key.path();
DefectLogID logid = useProps.defectLog(key, "unimportant");
if (logid != null) {
defectLogKey = logid.path;
if (logid.path != key) {
key = logid.path;
String defectLogPath = key.path();
extraPathFilter = selectedPath.substring(defectLogPath.length()+1);
} else {
PropertyKey currPhase = dashboard.getCurrentPhase();
if (currPhase != null && currPhase.getParent().equals(selectedKey))
selectedKey = currPhase;
}
}
}
}
updateImportActions(selectedKey, defectLogKey);
// apply the filter and load the vector (and the table)
VTableModel model = (VTableModel)table.table.getModel();
Object[] row = new Object [11];
DefectListID dli;
DefectListEntry dle;
PropertyKey pk;
currentLog.removeAllElements();
model.setNumRows (0);
Enumeration dlList = defectLogs.keys ();
while (dlList.hasMoreElements()) {
pk = (PropertyKey) dlList.nextElement();
if (key != null) {
if ( !pk.key().equals(key.key()) &&
(!pk.isChildOf (key)))
continue; // this one filtered
}
dli = (DefectListID) defectLogs.get (pk);
for (int ii = 0; ii < dli.defects.length; ii++) {
dle = new DefectListEntry (dli, ii);