Changeset 5593 for trunk/gli/src/org/greenstone/gatherer/mem
- Timestamp:
- 2003-10-07T15:35:23+13:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/mem
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/mem/MEMNode.java
r5564 r5593 161 161 } 162 162 v = null; 163 164 children.add(new MEMNode(PROFILER, Dictionary. newget("MEM.Profiles"), this));163 // Add the profile set. 164 children.add(new MEMNode(PROFILER, Dictionary.get("MEM.Profiles"), this)); 165 165 break; 166 166 case SET: // Add the elements as children -
trunk/gli/src/org/greenstone/gatherer/mem/MetadataEditorManager.java
r5590 r5593 143 143 this.self = this; 144 144 145 dialog_options[0] = Dictionary. newget("General.OK");146 dialog_options[1] = Dictionary. newget("General.Cancel");145 dialog_options[0] = Dictionary.get("General.OK"); 146 dialog_options[1] = Dictionary.get("General.Cancel"); 147 147 148 148 // Creation … … 386 386 set_attributes_scroll.setViewportView(set_attributes); 387 387 388 set_attributes_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary. newget("MEM.Attributes")), BorderFactory.createEmptyBorder(2,2,2,2)));388 set_attributes_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("MEM.Attributes")), BorderFactory.createEmptyBorder(2,2,2,2))); 389 389 set_attributes_pane.setLayout(new BorderLayout()); 390 390 set_attributes_pane.add(set_attributes_scroll, BorderLayout.CENTER); 391 391 392 set_details_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary. newget("MEM.Set_Details")), BorderFactory.createEmptyBorder(2,2,2,2)));392 set_details_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("MEM.Set_Details")), BorderFactory.createEmptyBorder(2,2,2,2))); 393 393 set_details_pane.setLayout(new BorderLayout()); 394 394 //set_details_pane.add(set_name_pane, BorderLayout.NORTH); … … 401 401 element_attributes_scroll.setViewportView(element_attributes); 402 402 403 element_attributes_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary. newget("MEM.Attributes")), BorderFactory.createEmptyBorder(2,2,2,2)));403 element_attributes_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("MEM.Attributes")), BorderFactory.createEmptyBorder(2,2,2,2))); 404 404 element_attributes_pane.setLayout(new BorderLayout()); 405 405 element_attributes_pane.add(element_attributes_scroll, BorderLayout.CENTER); 406 406 407 element_values_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary. newget("MEM.Values")), BorderFactory.createEmptyBorder(2,2,2,2)));407 element_values_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("MEM.Values")), BorderFactory.createEmptyBorder(2,2,2,2))); 408 408 //element_values_pane.setLayout(new BorderLayout()); 409 409 //element_values_pane.add(new JScrollPane(element_values), BorderLayout.CENTER); … … 416 416 element_inner_pane.add(element_values_pane); 417 417 418 element_details_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary. newget("MEM.Element_Details")), BorderFactory.createEmptyBorder(2,2,2,2)));418 element_details_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("MEM.Element_Details")), BorderFactory.createEmptyBorder(2,2,2,2))); 419 419 element_details_pane.setLayout(new BorderLayout()); 420 420 //element_details_pane.add(element_name_pane, BorderLayout.NORTH); … … 427 427 profile_attributes_scroll.setViewportView(profile_attributes); 428 428 429 profile_attributes_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary. newget("MEM.Profiles")), BorderFactory.createEmptyBorder(2,2,2,2)));429 profile_attributes_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("MEM.Profiles")), BorderFactory.createEmptyBorder(2,2,2,2))); 430 430 profile_attributes_pane.setLayout(new BorderLayout()); 431 431 profile_attributes_pane.add(profile_attributes_scroll, BorderLayout.CENTER); 432 432 433 profile_details_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary. newget("MEM.Profile_Details")), BorderFactory.createEmptyBorder(2,2,2,2)));433 profile_details_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("MEM.Profile_Details")), BorderFactory.createEmptyBorder(2,2,2,2))); 434 434 profile_details_pane.setLayout(new BorderLayout()); 435 435 //profile_details_pane.add(profile_name_pane, BorderLayout.NORTH); … … 601 601 JPanel center_pane = new JPanel(); 602 602 center_pane.setOpaque(false); 603 value = new ComboArea(Dictionary. newget("MEM.Values"), LABEL_SIZE);603 value = new ComboArea(Dictionary.get("MEM.Values"), LABEL_SIZE); 604 604 value.setOpaque(false); 605 605 … … 885 885 else { 886 886 cont = false; 887 JOptionPane.showMessageDialog(self, Dictionary. newget("MEM.Attribute_Already_Exists"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);887 JOptionPane.showMessageDialog(self, Dictionary.get("MEM.Attribute_Already_Exists"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE); 888 888 } 889 889 … … 917 917 else { 918 918 cont = false; 919 JOptionPane.showMessageDialog(self, Dictionary. newget("MEM.Attribute_Already_Exists"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);919 JOptionPane.showMessageDialog(self, Dictionary.get("MEM.Attribute_Already_Exists"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE); 920 920 } 921 921 … … 1073 1073 // Otherwise show an error message and do not proceed. 1074 1074 else { 1075 JOptionPane.showMessageDialog(self, Dictionary. newget("MEM.Element_Already_Exists"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);1075 JOptionPane.showMessageDialog(self, Dictionary.get("MEM.Element_Already_Exists"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE); 1076 1076 } 1077 1077 name_str = null; … … 1092 1092 // Warn the user that they can't do that dave. 1093 1093 else { 1094 JOptionPane.showMessageDialog(self, Dictionary. newget("MEM.Cannot_Add_Elements_To_Greenstone_MDS"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);1094 JOptionPane.showMessageDialog(self, Dictionary.get("MEM.Cannot_Add_Elements_To_Greenstone_MDS"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE); 1095 1095 } 1096 1096 } … … 1201 1201 // Otherwise warn the user and don't hide the prompt. 1202 1202 else { 1203 JOptionPane.showMessageDialog(self, Dictionary. newget("MEM.File_Already_Exists"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);1203 JOptionPane.showMessageDialog(self, Dictionary.get("MEM.File_Already_Exists"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE); 1204 1204 } 1205 1205 name_str = null; … … 1329 1329 // Otherwise show a warning. 1330 1330 else { 1331 JOptionPane.showMessageDialog(self, Dictionary. newget("MEM.Set_Already_Exists"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);1331 JOptionPane.showMessageDialog(self, Dictionary.get("MEM.Set_Already_Exists"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE); 1332 1332 } 1333 1333 name_str = null; … … 1652 1652 public void actionPerformed(ActionEvent event) { 1653 1653 if(current_attribute != -1) { 1654 int result = JOptionPane.showOptionDialog(self, Dictionary. newget("MEM.Confirm_Removal", Dictionary.newget("MEM.Attribute")), Dictionary.newget("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);1654 int result = JOptionPane.showOptionDialog(self, Dictionary.get("MEM.Confirm_Removal", Dictionary.get("MEM.Attribute")), Dictionary.get("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]); 1655 1655 // Remove this attribute 1656 1656 if(result == 0) { … … 1700 1700 public void actionPerformed(ActionEvent event) { 1701 1701 if(current_element != null) { 1702 int result = JOptionPane.showOptionDialog(self, Dictionary. newget("MEM.Confirm_Removal", Dictionary.newget("MEM.Element")), Dictionary.newget("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);1702 int result = JOptionPane.showOptionDialog(self, Dictionary.get("MEM.Confirm_Removal", Dictionary.get("MEM.Element")), Dictionary.get("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]); 1703 1703 // Remove this attribute 1704 1704 if(result == 0) { … … 1728 1728 public void actionPerformed(ActionEvent event) { 1729 1729 if(current_collection_file != null) { 1730 int result = JOptionPane.showOptionDialog(self, Dictionary. newget("MEM.Confirm_Removal", Dictionary.newget("MEM.File")), Dictionary.newget("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);1730 int result = JOptionPane.showOptionDialog(self, Dictionary.get("MEM.Confirm_Removal", Dictionary.get("MEM.File")), Dictionary.get("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]); 1731 1731 // Remove the current collection file profile from the profiler. 1732 1732 if(result == 0) { … … 1753 1753 public void actionPerformed(ActionEvent event) { 1754 1754 if(current_set != null) { 1755 int result = JOptionPane.showOptionDialog(self, Dictionary. newget("MEM.Confirm_Removal", Dictionary.newget("MEM.Set")), Dictionary.newget("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);1755 int result = JOptionPane.showOptionDialog(self, Dictionary.get("MEM.Confirm_Removal", Dictionary.get("MEM.Set")), Dictionary.get("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]); 1756 1756 // Remove the currently selected set 1757 1757 if(result == 0) { … … 1778 1778 public void actionPerformed(ActionEvent event) { 1779 1779 if(current_value_node != null) { 1780 int result = JOptionPane.showOptionDialog(self, Dictionary. newget("MEM.Confirm_Removal", Dictionary.newget("MEM.Value")), Dictionary.newget("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);1780 int result = JOptionPane.showOptionDialog(self, Dictionary.get("MEM.Confirm_Removal", Dictionary.get("MEM.Value")), Dictionary.get("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]); 1781 1781 // Remove the current selected value 1782 1782 if(result == 0) { … … 1909 1909 String action = Gatherer.c_man.msm.profiler.getAction(current_collection_file, source); 1910 1910 if (action == null) { 1911 action = Dictionary. newget("MEM.Ignore");1911 action = Dictionary.get("MEM.Ignore"); 1912 1912 } 1913 1913 attributes.add(new Attribute(source, action)); 1914 1914 } 1915 atm = new AttributeTableModel(attributes, Dictionary. newget("MEM.Source"), Dictionary.newget("MEM.Target"), Dictionary.newget("MEM.Ignore"));1915 atm = new AttributeTableModel(attributes, Dictionary.get("MEM.Source"), Dictionary.get("MEM.Target"), Dictionary.get("MEM.Ignore")); 1916 1916 //current_node.setModel(atm); 1917 1917 } … … 1927 1927 atm = current_node.getModel(); 1928 1928 if(atm == null) { 1929 atm = new AttributeTableModel(current_element.getAttributes(), Dictionary. newget("MEM.Name"), Dictionary.newget("MEM.Language_Code"), Dictionary.newget("MEM.Value"), "");1929 atm = new AttributeTableModel(current_element.getAttributes(), Dictionary.get("MEM.Name"), Dictionary.get("MEM.Language_Code"), Dictionary.get("MEM.Value"), ""); 1930 1930 //current_node.setModel(atm); 1931 1931 } … … 1965 1965 attribute = null; 1966 1966 } 1967 atm = new AttributeTableModel(attributes, Dictionary. newget("MEM.Name"), Dictionary.newget("MEM.Value"), "");1967 atm = new AttributeTableModel(attributes, Dictionary.get("MEM.Name"), Dictionary.get("MEM.Value"), ""); 1968 1968 //current_node.setModel(atm); 1969 1969 temp = null;
Note:
See TracChangeset
for help on using the changeset viewer.