Changeset 5019
- Timestamp:
- 07/23/08 02:42:17 (6 months ago)
- Files:
-
- openmrs-modules/patientmatching/src/org/regenstrief/linkage/gui/RecMatch.java (modified) (7 diffs)
- openmrs-modules/patientmatching/src/org/regenstrief/linkage/gui/RecentFile.java (modified) (2 diffs)
- openmrs-modules/patientmatching/web/src/org/openmrs/module/patientmatching/web/ConfigSimpleFormController.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs-modules/patientmatching/src/org/regenstrief/linkage/gui/RecMatch.java
r4983 r5019 1 1 package org.regenstrief.linkage.gui; 2 2 3 import java.awt.BorderLayout; 3 4 import java.awt.Container; 5 import java.awt.FlowLayout; 4 6 import java.awt.GridBagConstraints; 5 7 import java.awt.GridLayout; … … 129 131 gridBagConstraints.insets = new Insets(0, 0, 0, 50); 130 132 panelConfig.add(dedupeCheckBox, gridBagConstraints); 131 133 132 134 // add tabs to main_window 133 135 JPanel panelMatching = new JPanel(); … … 148 150 149 151 Container c = main_window.getContentPane(); 150 c.setLayout(new Bo xLayout(c, BoxLayout.PAGE_AXIS));151 c.add(panelConfig );152 c.add(panelMatching );152 c.setLayout(new BorderLayout()); 153 c.add(panelConfig, BorderLayout.NORTH); 154 c.add(panelMatching, BorderLayout.CENTER); 153 155 main_window.pack(); 154 156 main_window.setVisible(true); … … 258 260 recentFileMenu.add(menuItem); 259 261 } 262 saveHistoryEntries(); 260 263 } 261 264 … … 274 277 275 278 private void exitProgram(){ 279 saveHistoryEntries(); 280 System.exit(0); 281 } 282 283 private void saveHistoryEntries() { 276 284 RecentFileEntry[] entries = recentFile.getEntries(); 277 285 RecentFile.persistEntries(entries, new File(RECENT_FILE_PATH)); 278 System.exit(0); 279 } 286 } 280 287 281 288 private void saveConfig(){ … … 433 440 } 434 441 } 442 saveHistoryEntries(); 435 443 updateCheckBox(); 436 444 } … … 551 559 } 552 560 dpanel.clearTable(dupedDataSource); 561 doneCheckBox.setSelected(false); 553 562 doneCheckBox.setEnabled(false); 554 563 rm_conf.setDeduplication(false); openmrs-modules/patientmatching/src/org/regenstrief/linkage/gui/RecentFile.java
r4745 r5019 12 12 import java.io.IOException; 13 13 import java.util.ArrayList; 14 import java.util.Arrays; 15 import java.util.Collections; 14 16 import java.util.Hashtable; 15 17 import java.util.LinkedList; … … 136 138 entriesList.add(entry); 137 139 } 140 Collections.reverse(entriesList); 138 141 entries = entriesList.toArray(new RecentFileEntry[entriesList.size()]); 139 142 } catch (FileNotFoundException e) { openmrs-modules/patientmatching/web/src/org/openmrs/module/patientmatching/web/ConfigSimpleFormController.java
r4935 r5019 179 179 break; 180 180 } 181 if (excludedProperty.trim(). isEmpty()) {181 if (excludedProperty.trim().length() == 0) { 182 182 break; 183 183 }